Hello, Yesterday I was asked to upgrade the version of maven-assembly-plugin in our local repository.
I settled on the 2.2 release, change the version in my toplevel pom to this value, and ran the command I expected to handle this for me. Output: =========================================================== C:\depot\SM\9.20\9.21>mvn -N [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Service Manager [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.2/maven-assembly-plugin-2.2.pom [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-assembly-plugin:pom:2.2' from repository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connec t Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.2/maven-assembly-plugin-2.2.pom [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-assembly-plugin:pom:2.2' from repository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connec t [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.plugins:maven-assembly-plugin Reason: POM 'org.apache.maven.plugins:maven-assembly-plugin' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-assembly-plugin:pom:2.2 from the specified remote repositories: central (http://repo1.maven.org/maven2) for project org.apache.maven.plugins:maven-assembly-plugin [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 43 seconds [INFO] Finished at: Wed Nov 10 10:37:26 PST 2010 [INFO] Final Memory: 6M/16M [INFO] ------------------------------------------------------------------------ =========================================================== Now, I paste the path used: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.2/ into a browser and I see the needed files without problem. I did not see how to fix this, and so I thought to manually do the install. I downloaded the jar file and the pom, and ran an install command: =========================================================== C:\depot\SM\9.20\9.21>mvn install:install-file -f http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.2/maven-assembly-plugin-2.2.pom -Dfile=c:/ACM_Mirror/tasks/000_AAA__cur rent/0055_Maven_Upgrade/maven-assembly-plugin-2.2.jar -DgroupId=org.apache.maven.plugins -DartifactId=maven-assembly-plugin -Dversion=2.2 -Dpackaging=jar -DlocalRepositoryPath=http://servicemanager.la bs.peregrine.com/nexus/content/groups/servicemanager-devel/ [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] task-segment: [install:install-file] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [install:install-file {execution: default-cli}] [INFO] Installing c:\ACM_Mirror\tasks\000_AAA__current\0055_Maven_Upgrade\maven-assembly-plugin-2.2.jar to C:\Users\hahnch\.m2\repository\org\apache\maven\plugins\maven-assembly-plugin\2.2\maven-assem bly-plugin-2.2.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Nov 10 10:35:41 PST 2010 [INFO] Final Memory: 3M/15M [INFO] ------------------------------------------------------------------------ =========================================================== As you see, that worked fine, but only installed the artifact to my local repository. After running the install command above, I thought to run "mvn -N deploy" but it keeps trying to reach the official Maven server, and failing. Any pointers appreciated, Chris P.S. When working from command line, I tried setting HTTP_PROXY and unsetting it too. My browser can see the files, so the URL and connectivity do not seem to be the problem. ________________________________ [cid:[email protected]] Christopher Hahn The Dude Software Production Engineering R&D Services, Hewlett-Packard Phone: 858-655-4096 Cell: 619-630-9791 [email protected]<mailto:[email protected]> Visit our SPE Portal<http://teams5.sharepoint.hp.com/teams/SPE/default.aspx> ________________________________
