mirror of https://github.com/apache/maven.git
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@513938 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cf8cb43998
commit
6fd5ead5d5
|
@ -16,13 +16,13 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
classworlds.version=1.2-alpha-7
|
classworlds.version=1.2-alpha-7
|
||||||
plexus.version=1.0-alpha-16
|
plexus.version=1.0-alpha-17
|
||||||
plexus-archiver.version=1.0-alpha-8
|
plexus-archiver.version=1.0-alpha-8
|
||||||
plexus-utils.version=1.4
|
plexus-utils.version=1.4
|
||||||
plexus-interactivity-api.version=1.0-alpha-4
|
plexus-interactivity-api.version=1.0-alpha-4
|
||||||
commons-cli.version=1.0
|
commons-cli.version=1.0
|
||||||
commons-lang.version=2.1
|
commons-lang.version=2.1
|
||||||
wagon.version=1.0-beta-3-SNAPSHOT
|
wagon.version=1.0-beta-2
|
||||||
jsch.version=0.1.27
|
jsch.version=0.1.27
|
||||||
doxia.version=1.0-alpha-9-SNAPSHOT
|
doxia.version=1.0-alpha-9-SNAPSHOT
|
||||||
modello.version=1.0-alpha-13
|
modello.version=1.0-alpha-13
|
||||||
|
|
|
@ -84,7 +84,8 @@ public class DefaultMavenExecutionRequestDefaultsPopulator
|
||||||
|
|
||||||
private WagonManager wagonManager;
|
private WagonManager wagonManager;
|
||||||
|
|
||||||
public MavenExecutionRequest populateDefaults( MavenExecutionRequest request, MavenEmbedder embedder )
|
public MavenExecutionRequest populateDefaults( MavenExecutionRequest request,
|
||||||
|
MavenEmbedder embedder )
|
||||||
throws MavenEmbedderException
|
throws MavenEmbedderException
|
||||||
{
|
{
|
||||||
if ( request.getSettings() == null )
|
if ( request.getSettings() == null )
|
||||||
|
@ -123,24 +124,21 @@ public class DefaultMavenExecutionRequestDefaultsPopulator
|
||||||
|
|
||||||
// Wagon
|
// Wagon
|
||||||
|
|
||||||
wagonManager.setOnline( !request.isOffline() );
|
|
||||||
|
|
||||||
if ( request.isOffline() )
|
if ( request.isOffline() )
|
||||||
{
|
{
|
||||||
getLogger().info( SystemWarnings.getOfflineWarning() );
|
getLogger().info( SystemWarnings.getOfflineWarning() );
|
||||||
|
|
||||||
if ( request.isOffline() )
|
wagonManager.setOnline( false );
|
||||||
{
|
}
|
||||||
wagonManager.setOnline( false );
|
else
|
||||||
}
|
{
|
||||||
else
|
wagonManager.setInteractive( request.isInteractiveMode() );
|
||||||
{
|
|
||||||
wagonManager.setInteractive( request.isInteractiveMode() );
|
|
||||||
|
|
||||||
wagonManager.addTransferListener( request.getTransferListener() );
|
System.out.println( "request.getTransferListener() = " + request.getTransferListener() );
|
||||||
|
|
||||||
wagonManager.setOnline( true );
|
wagonManager.addTransferListener( request.getTransferListener() );
|
||||||
}
|
|
||||||
|
wagonManager.setOnline( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
6
pom.xml
6
pom.xml
|
@ -133,10 +133,12 @@ under the License.
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<!--
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<version>2.2</version>
|
<version>2.2</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
-->
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<modules>
|
<modules>
|
||||||
|
@ -162,7 +164,7 @@ under the License.
|
||||||
<module>maven-embedder</module>
|
<module>maven-embedder</module>
|
||||||
</modules>
|
</modules>
|
||||||
<properties>
|
<properties>
|
||||||
<plexusVersion>1.0-alpha-16</plexusVersion>
|
<plexusVersion>1.0-alpha-17</plexusVersion>
|
||||||
<wagonVersion>1.0-beta-3-SNAPSHOT</wagonVersion>
|
<wagonVersion>1.0-beta-3-SNAPSHOT</wagonVersion>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -193,7 +195,7 @@ under the License.
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
<groupId>org.codehaus.plexus</groupId>
|
||||||
<artifactId>plexus-utils</artifactId>
|
<artifactId>plexus-utils</artifactId>
|
||||||
<version>1.4.1-SNAPSHOT</version>
|
<version>1.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-lang</groupId>
|
<groupId>commons-lang</groupId>
|
||||||
|
|
Loading…
Reference in New Issue