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.
|
||||
|
||||
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-utils.version=1.4
|
||||
plexus-interactivity-api.version=1.0-alpha-4
|
||||
commons-cli.version=1.0
|
||||
commons-lang.version=2.1
|
||||
wagon.version=1.0-beta-3-SNAPSHOT
|
||||
wagon.version=1.0-beta-2
|
||||
jsch.version=0.1.27
|
||||
doxia.version=1.0-alpha-9-SNAPSHOT
|
||||
modello.version=1.0-alpha-13
|
||||
|
|
|
@ -84,7 +84,8 @@ public class DefaultMavenExecutionRequestDefaultsPopulator
|
|||
|
||||
private WagonManager wagonManager;
|
||||
|
||||
public MavenExecutionRequest populateDefaults( MavenExecutionRequest request, MavenEmbedder embedder )
|
||||
public MavenExecutionRequest populateDefaults( MavenExecutionRequest request,
|
||||
MavenEmbedder embedder )
|
||||
throws MavenEmbedderException
|
||||
{
|
||||
if ( request.getSettings() == null )
|
||||
|
@ -123,24 +124,21 @@ public class DefaultMavenExecutionRequestDefaultsPopulator
|
|||
|
||||
// Wagon
|
||||
|
||||
wagonManager.setOnline( !request.isOffline() );
|
||||
|
||||
if ( request.isOffline() )
|
||||
{
|
||||
getLogger().info( SystemWarnings.getOfflineWarning() );
|
||||
|
||||
if ( request.isOffline() )
|
||||
{
|
||||
wagonManager.setOnline( false );
|
||||
}
|
||||
else
|
||||
{
|
||||
wagonManager.setInteractive( request.isInteractiveMode() );
|
||||
wagonManager.setOnline( false );
|
||||
}
|
||||
else
|
||||
{
|
||||
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
|
||||
|
|
6
pom.xml
6
pom.xml
|
@ -133,10 +133,12 @@ under the License.
|
|||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<!--
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.2</version>
|
||||
</plugin>
|
||||
-->
|
||||
</plugins>
|
||||
</build>
|
||||
<modules>
|
||||
|
@ -162,7 +164,7 @@ under the License.
|
|||
<module>maven-embedder</module>
|
||||
</modules>
|
||||
<properties>
|
||||
<plexusVersion>1.0-alpha-16</plexusVersion>
|
||||
<plexusVersion>1.0-alpha-17</plexusVersion>
|
||||
<wagonVersion>1.0-beta-3-SNAPSHOT</wagonVersion>
|
||||
</properties>
|
||||
<dependencies>
|
||||
|
@ -193,7 +195,7 @@ under the License.
|
|||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-utils</artifactId>
|
||||
<version>1.4.1-SNAPSHOT</version>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
|
|
Loading…
Reference in New Issue