You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by og...@apache.org on 2009/04/09 00:40:24 UTC
svn commit: r763438 - in /maven/components/trunk: ./
maven-core/src/main/java/org/apache/maven/plugin/ maven-repository-mercury/
maven-repository-mercury/src/main/java/org/apache/maven/repository/mercury/
maven-repository/src/main/java/org/apache/maven...
Author: ogusakov
Date: Wed Apr 8 22:40:24 2009
New Revision: 763438
URL: http://svn.apache.org/viewvc?rev=763438&view=rev
Log:
switched to mercury-alpha-7-SN dependency to enable managed version maps, the lifecycle UTs pass
Added:
maven/components/trunk/README.bootstrap.mercury.txt (with props)
Modified:
maven/components/trunk/build-mercury.xml
maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
maven/components/trunk/maven-repository-mercury/pom.xml
maven/components/trunk/maven-repository-mercury/src/main/java/org/apache/maven/repository/mercury/MercuryAdaptor.java
maven/components/trunk/maven-repository-mercury/src/main/java/org/apache/maven/repository/mercury/MercuryRepositorySystem.java
maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/LegacyRepositorySystem.java
maven/components/trunk/pom.xml
Added: maven/components/trunk/README.bootstrap.mercury.txt
URL: http://svn.apache.org/viewvc/maven/components/trunk/README.bootstrap.mercury.txt?rev=763438&view=auto
==============================================================================
--- maven/components/trunk/README.bootstrap.mercury.txt (added)
+++ maven/components/trunk/README.bootstrap.mercury.txt Wed Apr 8 22:40:24 2009
@@ -0,0 +1,48 @@
+BOOTSTRAPPING BASICS
+-----------------------
+
+You'll need:
+
+- Java 1.5
+- Ant 1.6.5 or later
+
+First, give Ant a location into which the completed Maven distro should be installed:
+
+ export M2_HOME=$HOME/apps/maven/apache-maven-3.0-SNAPSHOT
+
+Then, run Ant:
+
+ ant -f build-mercury.xml
+
+You can use additiona options on ant command line:
+
+-Dmaven.repo.update.policy={never|always|daily}
+-Dmaven.repo.system={mercury|legacy}
+-Dmaven.home=$HOME/apps/maven/apache-maven-3.0-SNAPSHOT
+
+if you'd like to debug the bootstrap from Eclipse, issue the following command:
+
+export ANT_OPTS='-Dmercury.log.level=info -Dmercury.dump.tree=../forest'
+export ANT_OPTS=$ANT_OPTS' -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000'
+
+the additional options:
+-Dmercury.log.level={info|warn|error|debug} - defines mercury verbocity
+-Dmercury.dump.tree=../forest - tells mercury to spit all the resolved trees into files ../forest-xxx.xml, where xxx is a timestamp
+
+Then connect Eclipse debugging session to local port 8000
+
+for example:
+
+For the first time - run the following, it will update the local repo
+
+export ANT_OPTS='-Dmercury.log.level=info -Dmercury.dump.tree=../forest'
+export ANT_OPTS=$ANT_OPTS' -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000'
+ant -f build-mercury.xml -Dmaven.repo.update.policy=always
+
+then you can run
+
+ant -f build-mercury.xml -Dmaven.repo.update.policy=never -Dmaven.repo.system=mercury
+
+to debug the bootstrap
+
+
\ No newline at end of file
Propchange: maven/components/trunk/README.bootstrap.mercury.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/components/trunk/README.bootstrap.mercury.txt
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Modified: maven/components/trunk/build-mercury.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/build-mercury.xml?rev=763438&r1=763437&r2=763438&view=diff
==============================================================================
--- maven/components/trunk/build-mercury.xml (original)
+++ maven/components/trunk/build-mercury.xml Wed Apr 8 22:40:24 2009
@@ -173,10 +173,10 @@
<property name="mc" refid="mercury.classpath"/>
<echo>mercury.classpath=${mc}</echo>
<echo>========================================================================</echo>
-<!--
--->
+<!--
<delete file="${basedir}/dependencies.xml"/>
+-->
<tstamp><format property="modello.start.time" pattern="${tsFormat}"/></tstamp>
@@ -297,18 +297,20 @@
<target name="maven-compile" depends="compile-boot,process-classes" description="compiles Maven using the bootstrap Maven, skipping automated tests">
<java fork="true" classname="org.apache.maven.cli.MavenCli" failonerror="true">
<classpath refid="maven.classpath"/>
- <arg value="-e"/>
+ <arg value="-X"/>
<arg value="-B"/>
<arg value="clean"/>
<arg value="install"/>
<arg value="-Dmaven.repo.local=${maven.repo.local}"/>
<arg value="-Dsurefire.useFile=${surefire.useFile}"/>
-<!-- <debug-the-bootstrap>
-
+<!--
+<debug-the-bootstrap>
+-->
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xnoagent"/>
<jvmarg value="-Djava.compiler=NONE"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"/>
+<!--
</debug-the-bootstrap>
-->
</java>
Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java?rev=763438&r1=763437&r2=763438&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java (original)
+++ maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java Wed Apr 8 22:40:24 2009
@@ -426,10 +426,8 @@
Set<Artifact> resolved = new LinkedHashSet<Artifact>();
- for ( Iterator<Artifact> it = result.getArtifacts().iterator(); it.hasNext(); )
+ for ( Artifact artifact : result.getArtifacts() )
{
- Artifact artifact = it.next();
-
if ( !artifact.equals( pluginArtifact ) )
{
artifact = project.replaceWithActiveArtifact( artifact );
Modified: maven/components/trunk/maven-repository-mercury/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-repository-mercury/pom.xml?rev=763438&r1=763437&r2=763438&view=diff
==============================================================================
--- maven/components/trunk/maven-repository-mercury/pom.xml (original)
+++ maven/components/trunk/maven-repository-mercury/pom.xml Wed Apr 8 22:40:24 2009
@@ -31,7 +31,7 @@
<description>Mercury implementation for the Maven Repository System</description>
<properties>
- <mercury.version>1.0-alpha-6-SNAPSHOT</mercury.version>
+ <mercury.version>1.0-alpha-7-SNAPSHOT</mercury.version>
</properties>
<dependencies>
Modified: maven/components/trunk/maven-repository-mercury/src/main/java/org/apache/maven/repository/mercury/MercuryAdaptor.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-repository-mercury/src/main/java/org/apache/maven/repository/mercury/MercuryAdaptor.java?rev=763438&r1=763437&r2=763438&view=diff
==============================================================================
--- maven/components/trunk/maven-repository-mercury/src/main/java/org/apache/maven/repository/mercury/MercuryAdaptor.java (original)
+++ maven/components/trunk/maven-repository-mercury/src/main/java/org/apache/maven/repository/mercury/MercuryAdaptor.java Wed Apr 8 22:40:24 2009
@@ -36,6 +36,8 @@
import org.apache.maven.artifact.factory.ArtifactFactory;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
+import org.apache.maven.artifact.resolver.filter.ExcludesArtifactFilter;
+import org.apache.maven.artifact.resolver.filter.IncludesArtifactFilter;
import org.apache.maven.artifact.resolver.filter.ScopeArtifactFilter;
import org.apache.maven.mercury.artifact.ArtifactMetadata;
import org.apache.maven.mercury.artifact.ArtifactScopeEnum;
@@ -60,7 +62,7 @@
private static Map<String, Repository> _repos = Collections.synchronizedMap( new HashMap<String, Repository>() );
public static List<Repository> toMercuryRepos( ArtifactRepository localRepository,
- List<ArtifactRepository> remoteRepositories,
+ List<?> remoteRepositories,
DependencyProcessor dependencyProcessor
)
{
@@ -99,9 +101,25 @@
if ( !Util.isEmpty( remoteRepositories ) )
{
- for ( ArtifactRepository ar : remoteRepositories )
+ for ( Object o : remoteRepositories )
{
- String url = ar.getUrl();
+ String url;
+ String id;
+
+ if( ArtifactRepository.class.isAssignableFrom( o.getClass() ))
+ {
+ ArtifactRepository ar = (ArtifactRepository) o;
+ url = ar.getUrl();
+ id = ar.getId();
+ }
+ else if( org.apache.maven.model.Repository.class.isAssignableFrom( o.getClass() ))
+ {
+ org.apache.maven.model.Repository ar = (org.apache.maven.model.Repository) o;
+ url = ar.getUrl();
+ id = ar.getId();
+ }
+ else
+ throw new IllegalArgumentException( "found illegal class in the remote repository list - " + o.getClass().getName() );
RemoteRepositoryM2 rr = (RemoteRepositoryM2) _repos.get( url );
@@ -110,7 +128,7 @@
Server server;
try
{
- server = new Server( ar.getId(), new URL( url ) );
+ server = new Server( id, new URL( url ) );
}
catch ( MalformedURLException e )
{
@@ -134,18 +152,22 @@
return res;
}
- public static ArtifactMetadata toMercuryBasicMetadata( Artifact a )
+ private static void setInExClusion( ArtifactMetadata md, List<String> patterns, boolean inc )
{
- ArtifactMetadata md = new ArtifactMetadata();
- md.setGroupId( a.getGroupId() );
- md.setArtifactId( a.getArtifactId() );
- md.setVersion( a.getVersion() );
- md.setType( a.getType() );
- md.setScope( a.getScope() );
-
- return md;
+ if( Util.isEmpty( patterns ) )
+ return;
+
+ List<ArtifactMetadata> lusions = new ArrayList<ArtifactMetadata>( patterns.size() );
+
+ for( String pattern : patterns )
+ lusions.add( new ArtifactMetadata(pattern) );
+
+ if( inc )
+ md.setInclusions( lusions );
+ else
+ md.setExclusions( lusions );
}
-
+
public static ArtifactMetadata toMercuryMetadata( Artifact a )
{
ArtifactMetadata md = new ArtifactMetadata();
@@ -154,21 +176,46 @@
md.setVersion( a.getVersion() );
md.setType( a.getType() );
md.setScope( a.getScope() );
-
+
+ if( "test-jar".equals( a.getType() ) )
+ {
+ md.setType( "jar" );
+ md.setClassifier( "tests" );
+ }
+
+ ArtifactFilter af = a.getDependencyFilter();
+
+ if( af != null )
+ {
+ if( ExcludesArtifactFilter.class.isAssignableFrom( af.getClass() ) )
+ {
+ setInExClusion( md, ((ExcludesArtifactFilter)af).getPatterns(), false );
+ }
+ else if( IncludesArtifactFilter.class.isAssignableFrom( af.getClass() ) )
+ {
+ setInExClusion( md, ((IncludesArtifactFilter)af).getPatterns(), true );
+ }
+ }
return md;
}
public static Artifact toMavenArtifact( ArtifactFactory af, org.apache.maven.mercury.artifact.Artifact a )
{
- Artifact ma = a.getClassifier() == null
- ? af.createArtifact( a.getGroupId(), a.getArtifactId(), a.getVersion(), a.getScope(), a.getType() )
- : af.createArtifactWithClassifier( a.getGroupId(), a.getArtifactId(), a.getVersion(), a.getType(), a.getClassifier() )
+ boolean isTestJar = "test-jar".equals( a.getType() );
+
+ String type = isTestJar ? "jar" : a.getType();
+
+ String classifier = isTestJar ? "tests" : a.getType();
+
+ Artifact ma = classifier == null
+ ? af.createArtifact( a.getGroupId(), a.getArtifactId(), a.getVersion(), a.getScope(), type )
+ : af.createArtifactWithClassifier( a.getGroupId(), a.getArtifactId(), a.getVersion(), type, classifier )
;
ma.setScope( a.getScope() );
ma.setFile( a.getFile() );
- ma.setResolved( true );
+ ma.setResolved( a.getFile() != null );
ma.setResolvedVersion( a.getVersion() );
@@ -177,9 +224,15 @@
public static Artifact toMavenArtifact( ArtifactFactory af, org.apache.maven.mercury.artifact.ArtifactMetadata a )
{
- Artifact ma = a.getClassifier() == null
- ? af.createArtifact( a.getGroupId(), a.getArtifactId(), a.getVersion(), a.getScope(), a.getType() )
- : af.createArtifactWithClassifier( a.getGroupId(), a.getArtifactId(), a.getVersion(), a.getType(), a.getClassifier() )
+ boolean isTestJar = "test-jar".equals( a.getType() );
+
+ String type = isTestJar ? "jar" : a.getType();
+
+ String classifier = isTestJar ? "tests" : a.getType();
+
+ Artifact ma = classifier == null
+ ? af.createArtifact( a.getGroupId(), a.getArtifactId(), a.getVersion(), a.getScope(), type )
+ : af.createArtifactWithClassifier( a.getGroupId(), a.getArtifactId(), a.getVersion(), type, classifier )
;
ma.setScope( a.getScope() );
@@ -199,6 +252,12 @@
mmd.setVersion( md.getVersion() );
mmd.setClassifier( md.getClassifier() );
mmd.setType( md.getType() );
+
+ if( "test-jar".equals( md.getType() ) )
+ {
+ mmd.setType( "jar" );
+ mmd.setClassifier( "tests" );
+ }
return mmd;
}
@@ -211,6 +270,12 @@
mmd.setVersion( md.getVersion() );
mmd.setClassifier( md.getClassifier() );
mmd.setType( md.getType() );
+
+ if( "test-jar".equals( md.getType() ) )
+ {
+ mmd.setType( "jar" );
+ mmd.setClassifier( "tests" );
+ }
return mmd;
}
@@ -223,6 +288,12 @@
mmd.setVersion( md.getVersion() );
mmd.setClassifier( md.getClassifier() );
mmd.setType( md.getType() );
+
+ if( "test-jar".equals( md.getType() ) )
+ {
+ mmd.setType( "jar" );
+ mmd.setClassifier( "tests" );
+ }
return mmd;
}
@@ -278,10 +349,10 @@
scopeStr = ((ScopeArtifactFilter)filter).getScope();
}
- if( "org.apache.maven.plugins:maven-remote-resources-plugin".equals(
- reqArtifact.getGroupId()+":"+reqArtifact.getArtifactId()
- )
- ) scopeStr = null;
+// if( "org.apache.maven.plugins:maven-remote-resources-plugin".equals(
+// reqArtifact.getGroupId()+":"+reqArtifact.getArtifactId()
+// )
+// ) scopeStr = null;
// else if( isPlugin )
// scopeStr = org.apache.maven.mercury.artifact.Artifact.SCOPE_RUNTIME;
@@ -296,11 +367,28 @@
return ArtifactScopeEnum.provided;
else if( org.apache.maven.mercury.artifact.Artifact.SCOPE_RUNTIME.equals( scopeStr ) )
return ArtifactScopeEnum.runtime;
+ else if( Artifact.SCOPE_RUNTIME_PLUS_SYSTEM.equals( scopeStr ) )
+ return ArtifactScopeEnum.runtime;
else if( org.apache.maven.mercury.artifact.Artifact.SCOPE_SYSTEM.equals( scopeStr ) )
return ArtifactScopeEnum.system;
}
return null;
}
+
+ public static Map<String,ArtifactMetadata> toMercuryVersionMap(Map<String,Artifact> map )
+ {
+ if( Util.isEmpty( map ) )
+ return null;
+
+ Map<String,ArtifactMetadata> res = new HashMap<String, ArtifactMetadata>( map.size() );
+
+ for( Entry<String, Artifact> e : map.entrySet() )
+ {
+ res.put( e.getKey(), toMercuryMetadata( e.getValue() ) );
+ }
+
+ return res;
+ }
}
Modified: maven/components/trunk/maven-repository-mercury/src/main/java/org/apache/maven/repository/mercury/MercuryRepositorySystem.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-repository-mercury/src/main/java/org/apache/maven/repository/mercury/MercuryRepositorySystem.java?rev=763438&r1=763437&r2=763438&view=diff
==============================================================================
--- maven/components/trunk/maven-repository-mercury/src/main/java/org/apache/maven/repository/mercury/MercuryRepositorySystem.java (original)
+++ maven/components/trunk/maven-repository-mercury/src/main/java/org/apache/maven/repository/mercury/MercuryRepositorySystem.java Wed Apr 8 22:40:24 2009
@@ -19,9 +19,14 @@
package org.apache.maven.repository.mercury;
+import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.factory.ArtifactFactory;
+import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
import org.apache.maven.artifact.resolver.ArtifactResolutionException;
import org.apache.maven.artifact.resolver.ArtifactResolutionRequest;
import org.apache.maven.artifact.resolver.ArtifactResolutionResult;
@@ -77,6 +82,8 @@
if ( request.getArtifact() == null )
throw new IllegalArgumentException( LANG.getMessage( "null.request.artifact" ) );
+
+ Map<String, ArtifactMetadata> versionMap = MercuryAdaptor.toMercuryVersionMap( (Map<String,Artifact>)request.getManagedVersionMap() );
ArtifactResolutionResult result = new ArtifactResolutionResult();
@@ -89,31 +96,90 @@
try
{
long start = System.currentTimeMillis();
- org.apache.maven.artifact.Artifact mavenRootArtifact = request.getArtifact();
- org.apache.maven.artifact.Artifact mavenPluginArtifact = mavenRootArtifact;
+
+ org.apache.maven.artifact.Artifact rootArtifact = request.getArtifact();
+
+ org.apache.maven.artifact.Artifact mavenPluginArtifact = rootArtifact;
+
+ Set<Artifact> artifacts = request.getArtifactDependencies();
- boolean isPlugin = "maven-plugin".equals( mavenRootArtifact.getType() );
+ boolean isPlugin = "maven-plugin".equals( rootArtifact.getType() );
- ArtifactScopeEnum scope = MercuryAdaptor.extractScope( mavenRootArtifact, isPlugin, request.getFilter() );
+ ArtifactScopeEnum scope = MercuryAdaptor.extractScope( rootArtifact, isPlugin, request.getFilter() );
if( isPlugin )
- mavenRootArtifact = createArtifact( mavenRootArtifact.getGroupId()
- , mavenRootArtifact.getArtifactId()
- , mavenRootArtifact.getVersion()
- , mavenRootArtifact.getScope()
+ rootArtifact = createArtifact( rootArtifact.getGroupId()
+ , rootArtifact.getArtifactId()
+ , rootArtifact.getVersion()
+ , rootArtifact.getScope()
, "jar"
);
- ArtifactMetadata rootMd = MercuryAdaptor.toMercuryMetadata( mavenRootArtifact );
+ ArtifactMetadata rootMd = MercuryAdaptor.toMercuryMetadata( rootArtifact );
+
+ org.apache.maven.artifact.Artifact root = null;
+
+ // copied from artifact resolver
+ if ( request.isResolveRoot() && rootArtifact.getFile() == null && Util.isEmpty( artifacts ) )
+ {
+ try
+ {
+ List<ArtifactMetadata> mercuryMetadataList = new ArrayList<ArtifactMetadata>(1);
+
+ mercuryMetadataList.add( rootMd );
+
+ List<org.apache.maven.mercury.artifact.Artifact> mercuryArtifactList =
+ _mercury.read( repos, mercuryMetadataList );
+
+ if( Util.isEmpty( mercuryArtifactList ) )
+ {
+ result.addErrorArtifactException( new ArtifactResolutionException( "scope="+scope, rootArtifact) );
+ return result;
+ }
+
+ root = isPlugin ? mavenPluginArtifact : rootArtifact;
+
+ org.apache.maven.mercury.artifact.Artifact a = mercuryArtifactList.get( 0 );
+
+ root.setFile( a.getFile() );
+ root.setResolved( true );
+ root.setResolvedVersion( a.getVersion() );
+
+ result.addArtifact( rootArtifact );
+ result.addRequestedArtifact( rootArtifact );
+ }
+ catch ( Exception e )
+ {
+ result.addMissingArtifact( request.getArtifact() );
+ return result;
+ }
+ }
+
+ if ( Util.isEmpty( artifacts ) )
+ {
+ return result;
+ }
- List<ArtifactMetadata> mercuryMetadataList = _mercury.resolve( repos, scope, rootMd );
+ List<ArtifactMetadata> mercuryMetadataList = null;
+
+ if ( Util.isEmpty( artifacts ) )
+ mercuryMetadataList = _mercury.resolve( repos, scope, rootMd );
+ else
+ {
+ List<ArtifactMetadata> query = new ArrayList<ArtifactMetadata>( artifacts.size() + 1 );
+
+ query.add( rootMd );
+
+ for( Artifact a : artifacts )
+ query.add( MercuryAdaptor.toMercuryMetadata( a ) );
+
+ mercuryMetadataList = _mercury.resolve( repos, scope, new ArtifactQueryList(query), null, null, versionMap );
+ }
List<org.apache.maven.mercury.artifact.Artifact> mercuryArtifactList =
_mercury.read( repos, mercuryMetadataList );
long diff = System.currentTimeMillis() - start;
-
- org.apache.maven.artifact.Artifact root = null;
if ( !Util.isEmpty( mercuryArtifactList ) )
{
@@ -121,26 +187,32 @@
{
if( a.getGroupId().equals( rootMd.getGroupId() ) && a.getArtifactId().equals( rootMd.getArtifactId() ) )
{ // root artifact processing
- root = isPlugin ? mavenPluginArtifact : mavenRootArtifact;
+ root = isPlugin ? mavenPluginArtifact : rootArtifact;
root.setFile( a.getFile() );
root.setResolved( true );
root.setResolvedVersion( a.getVersion() );
result.addArtifact( root );
+ result.addRequestedArtifact( root );
}
else
{
- result.addArtifact( MercuryAdaptor.toMavenArtifact( _artifactFactory, a ) );
+ Artifact ma = MercuryAdaptor.toMavenArtifact( _artifactFactory, a );
+
+ result.addArtifact( ma );
+ result.addRequestedArtifact( ma );
}
}
System.out.println("mercury: resolved("+diff+") "+root+"("+scope+") as file "+root.getFile() );
+//for( Artifact a: result.getArtifacts() )
+//System.out.println("mercury dependency: "+a+" as file "+a.getFile() );
}
else
{
- result.addMissingArtifact( mavenRootArtifact );
-System.out.println("mercury: missing artifact("+diff+") "+mavenRootArtifact+"("+scope+")" );
+ result.addMissingArtifact( rootArtifact );
+System.out.println("mercury: missing artifact("+diff+") "+rootArtifact+"("+scope+")" );
}
}
Modified: maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/LegacyRepositorySystem.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/LegacyRepositorySystem.java?rev=763438&r1=763437&r2=763438&view=diff
==============================================================================
--- maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/LegacyRepositorySystem.java (original)
+++ maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/LegacyRepositorySystem.java Wed Apr 8 22:40:24 2009
@@ -373,11 +373,14 @@
}
public ArtifactResolutionResult resolve( ArtifactResolutionRequest request )
- {
-
-//System.out.println("legacy: request with "+request.getRemoteRepostories().size()+" repos" );
+ {
+
+if(request.getRemoteRepostories() != null && request.getRemoteRepostories().size() > 10 )
+{
+ System.out.println("legacy: request with "+request.getRemoteRepostories().size()+" remote repositories" );
+}
ArtifactResolutionResult res = artifactResolver.resolve( request );
-//System.out.println( "legacy resolved: "+request.getArtifact() );
+
return res;
}
Modified: maven/components/trunk/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/pom.xml?rev=763438&r1=763437&r2=763438&view=diff
==============================================================================
--- maven/components/trunk/pom.xml (original)
+++ maven/components/trunk/pom.xml Wed Apr 8 22:40:24 2009
@@ -63,7 +63,7 @@
<plexusWebdavVersion>1.0</plexusWebdavVersion>
<wagonVersion>1.0-beta-5</wagonVersion>
<modelBuilderVersion>1.8</modelBuilderVersion>
- <mercuryVersion>1.0-alpha-6-SNAPSHOT</mercuryVersion>
+ <mercuryVersion>1.0-alpha-7-SNAPSHOT</mercuryVersion>
<mercuryMp3Version>1.0-alpha-1</mercuryMp3Version>
<securityDispatcherVersion>1.2</securityDispatcherVersion>
<woodstoxVersion>3.2.6</woodstoxVersion>