Wednesday, August 11, 2010

STS SpringSource 2.3.3M2 - maven aspectj plugin error

When I downloaded the STS spring tools, I had this annoying error caused by the milestone repositories not being included.

So, add this to your pom.xml (didn't try this)

spring-maven-milestone
Spring Maven Milestone Repository
http://maven.springframework.org/milestone


This actually worked - you can manually download the .jar file needed and place it in your m2 (maven 2) local cache at C:\Documents and Settings\tsomerville\.m2\repository\org\aspectj\as pectjtools\1.6.10.M1\aspectjtools-1.6.10.M1.jar

The full bug report is available here, as it took me a while to find it... https://jira.springframework.org/browse/ROO-1111

Here was the error ...
1) org.aspectj:aspectjtools:jar:1.6.10.M1    Try downloading the file manually from the project website.    Then, install it using the command:        mvn install:install-file -DgroupId=org.aspectj -DartifactId=aspectjtools -Dversion=1.6.10.M1 -Dpackaging=jar -Dfile=/path/to/file    Alternatively, if you host your own repository you can deploy the file there:        mvn deploy:deploy-file -DgroupId=org.aspectj -DartifactId=aspectjtools -Dversion=1.6.10.M1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]    Path to dependency:     1) org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0    2) org.aspectj:aspectjtools:jar:1.6.10.M1 ---------- 1 required artifact is missing.  for artifact:    org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0  from the specified remote repositories:   central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

No comments: