Do you use a proxy to access it? I think what might be happening is that it's using a clean settings.xml & local repository for that build and re-downloading that. It probably shouldn't.
- Brett On 29/11/2011, at 12:23 AM, Per Arnold Blaasmo wrote: > Hi, > Sorry to bother you guys, but I have been fiddling with trying to build > Archiva and gets error trying to fetch one artifact dependency when > building. > > I have been able to build Archiva before, but this time I checked out a > fresh repository and tried to build it with maven 3. > > Below you see where it fails. > It fails whit 'connection refeused' when trying to download > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-plugin-2.4.3.pom. > > I do not see why, since I can download it in my browser without problem. > Also earlier in the process it downloads version 2.5 of the same. So why > is there a problem with version 2.4.3? > > Regards > Per A. > > > [INFO] > > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Archiva Consumers :: Consumers Archetype 1.4-M2-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ > archiva-consumer-archetype --- > [INFO] Deleting > /home/pablaasmo/workspace-archiva/archiva-aggregator/archiva/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/target > [INFO] > [INFO] --- maven-enforcer-plugin:1.0:enforce (default) @ > archiva-consumer-archetype --- > [INFO] > [INFO] --- maven-remote-resources-plugin:1.2:process (default) @ > archiva-consumer-archetype --- > [INFO] Setting property: classpath.resource.loader.class => > 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. > [INFO] Setting property: velocimacro.messages.on => 'false'. > [INFO] Setting property: resource.loader => 'classpath'. > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > [INFO] > [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ > archiva-consumer-archetype --- > [debug] execute contextualize > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 7 resources > [INFO] Copying 2 resources > [INFO] > [INFO] --- maven-resources-plugin:2.5:testResources > (default-testResources) @ archiva-consumer-archetype --- > [debug] execute contextualize > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 2 resources > [INFO] Copying 2 resources > [INFO] > [INFO] --- maven-archetype-plugin:2.2:jar (default-jar) @ > archiva-consumer-archetype --- > [INFO] Building archetype jar: > /home/pablaasmo/workspace-archiva/archiva-aggregator/archiva/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/target/archiva-consumer-archetype-1.4-M2-SNAPSHOT > [INFO] > [INFO] --- maven-archetype-plugin:2.2:integration-test > (default-integration-test) @ archiva-consumer-archetype --- > [INFO] Processing Archetype IT project: compile > [INFO] > ---------------------------------------------------------------------------- > [INFO] Using following parameters for creating project from Archetype: > archiva-consumer-archetype:1.4-M2-SNAPSHOT > [INFO] > ---------------------------------------------------------------------------- > [INFO] Parameter: groupId, Value: org.apache.archiva.consumer.its.compile > [INFO] Parameter: artifactId, Value: simple-consumer-compile > [INFO] Parameter: version, Value: 1.0-SNAPSHOT > [INFO] Parameter: package, Value: org.apache.archiva.consumer.its > [INFO] Parameter: packageInPathFormat, Value: > org/apache/archiva/consumer/its > [INFO] Parameter: package, Value: org.apache.archiva.consumer.its > [INFO] Parameter: version, Value: 1.0-SNAPSHOT > [INFO] Parameter: groupId, Value: org.apache.archiva.consumer.its.compile > [INFO] Parameter: artifactId, Value: simple-consumer-compile > [INFO] project created from Archetype in dir: > /home/pablaasmo/workspace-archiva/archiva-aggregator/archiva/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/target/test-classes/projects/compile/project/simple-consumer-compile > [INFO] Invoking post-archetype-generation goals: clean verify > [INFO] [INFO] Error stacktraces are turned on. > [INFO] [INFO] Scanning for projects... > [INFO] > [INFO] > > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] [INFO] Building Simple Archiva Consumer 1.4-M2-SNAPSHOT > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] Downloading: > file:///home/pablaasmo/.m2/repository/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom > [INFO] Downloaded: > file:///home/pablaasmo/.m2/repository/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom > (5 KB at 579.9 KB/sec) > [INFO] Downloading: > file:///home/pablaasmo/.m2/repository/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom > [INFO] Downloaded: > file:///home/pablaasmo/.m2/repository/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom > (13 KB at 2539.3 KB/sec) > [INFO] Downloading: > file:///home/pablaasmo/.m2/repository/org/apache/maven/maven-parent/16/maven-parent-16.pom > [INFO] Downloaded: > file:///home/pablaasmo/.m2/repository/org/apache/maven/maven-parent/16/maven-parent-16.pom > (23 KB at 5681.6 KB/sec) > [INFO] Downloading: > file:///home/pablaasmo/.m2/repository/org/apache/apache/7/apache-7.pom > [INFO] Downloaded: > file:///home/pablaasmo/.m2/repository/org/apache/apache/7/apache-7.pom > (15 KB at 4697.3 KB/sec) > [INFO] Downloading: > file:///home/pablaasmo/.m2/repository/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar > [INFO] Downloaded: > file:///home/pablaasmo/.m2/repository/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar > (23 KB at 5749.3 KB/sec) > [INFO] Downloading: > file:///home/pablaasmo/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-plugin-2.4.3.pom > [INFO] Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-plugin-2.4.3.pom > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] [INFO] BUILD FAILURE > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] [INFO] Total time: 0.479s > [INFO] [INFO] Finished at: Mon Nov 28 14:01:15 CET 2011 > [INFO] [INFO] Final Memory: 3M/179M > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] [ERROR] Plugin > org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its > dependencies could not be resolved: Failed to read artifact descriptor > for org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3: Could not > transfer artifact > org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from/to > central (http://repo1.maven.org/maven2): Error transferring file: > Connection refused -> [Help 1] > [INFO] org.apache.maven.plugin.PluginResolutionException: Plugin > org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its > dependencies could not be resolved: Failed to read artifact descriptor > for org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3 > > -- > Per Arnold Blåsmo > Senior Design Engineer, Atmel Norway > Tel: (+47) 72897-651 / Mobile: (+47) 901-63-657 / Fax: (+47) 72-88-43-99 > e-mail: [email protected] / g-talk: [email protected] / > www.atmel.com > > The information contained in this email message may be privileged, > confidential and/or protected from unauthorized disclosure. If you are not > the intended recipient, any dissemination, distribution or copying is > strictly prohibited. Please immediately notify the sender by reply if you > received this email in error. Thank you for your cooperation. > -- Brett Porter [email protected] http://brettporter.wordpress.com/ http://au.linkedin.com/in/brettporter
