-
Mar 27th, 2012, 12:17 AM
#1
Failed to read artifact descriptor for org.codehaus.mojo:aspectj-maven-plugin:jar:1
Hi i am trying to run a simple "Hello World " programme in eclipse with maven .. my maven version is 3.0 and eclipse version is 3.6
when i try to run the command " mvn clean install " in the command prompt in my test folder directory, it is throwing the following error
D:\workspace_maven\HelloWorldSpring>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building HelloWorldSpring 0.1.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://maven.springframework.org/rel.../mojo/aspectj-
maven-plugin/1.0/aspectj-maven-plugin-1.0.pom
Downloading: http://maven.springframework.org/mil...us/mojo/aspect
j-maven-plugin/1.0/aspectj-maven-plugin-1.0.pom
Downloading: http://spring-roo-repository.springs.../org/codehaus/
mojo/aspectj-maven-plugin/1.0/aspectj-maven-plugin-1.0.pom
Downloading: http://download.java.net/maven/2/org...pectj-maven-pl
ugin/1.0/aspectj-maven-plugin-1.0.pom
Downloading: http://snapshots.jboss.org/maven2/or...spectj-maven-p
lugin/1.0/aspectj-maven-plugin-1.0.pom
Downloading: http://snapshots.repository.codehaus.../mojo/aspectj-
maven-plugin/1.0/aspectj-maven-plugin-1.0.pom
Downloading: http://repo1.maven.org/maven2/org/co...tj-maven-plugi
n/1.0/aspectj-maven-plugin-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.594s
[INFO] Finished at: Tue Mar 27 10:10:27 IST 2012
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "dev" could not be activated because it does not
exist.
[ERROR] Plugin org.codehaus.mojo:aspectj-maven-plugin:1.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:aspectj-maven-plugin:jar:1.0: Could not transfer artifact org.codehaus.mojo:aspectj-maven-plugin
om:1.0 from/to spring-maven-release (http://maven.springframework.org/release): Error transferring file: Server redirected too many times (20) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/d...utionException
-
Mar 27th, 2012, 05:23 AM
#2
Hi,
Also i have one doubt. the maven version i am using now is 3. but, according to the url in pom.xml all the maven plugins will be downloaded from
http://download.java.net/maven/2/org...ugin-2.4.1.pom
But, this site is outdated..so,which url should i use for maven 3?
I think this might be the reason for the error i had mentioned earlier.. Please suggest..
-
Apr 13th, 2012, 12:36 PM
#3
From a quick google on the 'server redirected too many times' problem the only thread I could find is that it was possibly a proxy related problem. I'm not a maven expert but maybe if you attach the pom here we can take a look at it. Have you tried comparing the pom you are using with one from an STS sample project (I'm presuming those samples work) - to see if it is setup differently?
cheers,
Andy
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules