[Using Maven 1.1-beta-2]
I'm trying to use SNAPSHOT to get the latest version of an internally developed
JAR from our in-house remote repository . It appears to work (I.e. I do end up
with the latest version), but not without dumping a number of errors to the
screen about how it can't find my jar at maven-plugins.sourceforge.net. I have
the following in my personal build.properties:
maven.repo.remote=file:///export/home/kcbaltz/testRepo,http://www.ibiblio.org/maven/,http://maven-plugins.sf.net/maven,http://www.codeczar.com/maven
I would assume that if it found the SNAPSHOT in the testRepo repository, it
wouldn't search the rest. Is that a correct assumption? The error messages
are below:
Attempting to download copart-core-1.0-SNAPSHOT.jar.
Error getting URI host
org.apache.commons.httpclient.HttpException: Redirect from host
maven-plugins.sf.net to maven-plugins.sourceforge.net is not supported
at
org.apache.commons.httpclient.HttpMethodBase.checkValidRedirect(HttpMethodBase.java:1237)
at
org.apache.commons.httpclient.HttpMethodBase.processRedirectResponse(HttpMethodBase.java:1185)
at
org.apache.commons.httpclient.HttpMethodBase.isRetryNeeded(HttpMethodBase.java:967)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1089)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
at
org.apache.maven.wagon.providers.http.HttpWagon.get(HttpWagon.java:287)
at
org.apache.maven.wagon.providers.http.HttpWagon.getIfNewer(HttpWagon.java:234)
at
org.apache.maven.verifier.DependencyVerifier.getRemoteArtifact(DependencyVerifier.java:391)
at
org.apache.maven.verifier.DependencyVerifier.getDependencies(DependencyVerifier.java:291)
at
org.apache.maven.verifier.DependencyVerifier.satisfyDependencies(DependencyVerifier.java:182)
at
org.apache.maven.verifier.DependencyVerifier.verify(DependencyVerifier.java:99)
at org.apache.maven.project.Project.verifyDependencies(Project.java:569)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:663)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:511)
at org.apache.maven.cli.App.main(App.java:1258)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Invalid Redirect URI from:
http://maven-plugins.sf.net:80/maven//copart/jars/copart-core-1.0-SNAPSHOT.jar
to:
http://maven-plugins.sourceforge.net/maven//copart/jars/copart-core-1.0-SNAPSHOT.jar
Error retrieving artifact from [http://maven-plugins.sf.net/maven]:
org.apache.maven.wagon.TransferFailedException: Failed to trasfer file:
http://maven-plugins.sf.net/maven//copart/jars/copart-core-1.0-SNAPSHOT.jar.
Return code is: 302