This commit is contained in:
Jason van Zyl 2007-03-02 20:36:58 +00:00
parent cf8cb43998
commit 6fd5ead5d5
3 changed files with 17 additions and 17 deletions

View File

@ -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

View File

@ -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

View File

@ -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>