Author
Maven Error - Unable to find repo
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
I have a strange error when trying to build a Meven project. Here is what I get!
SCJP 1.4, SCWCD 1.4 - Hints for you , SCBCD Hints - Demnachst , SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Peter Johnson
author
Bartender
Joined: May 14, 2008
Posts: 5575
posted Dec 20, 2011 20:35:51
0
Which version of the tomcat-maven-plugin did you specify? Looks like there are only the 1.0 and 1.1 versions (and an alpha and beta) in Maven Central:
http://repo1.maven.org/maven2/org/codehaus/mojo/tomcat-maven-plugin/
JBoss In Action
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
Do I have to specify a version? I did as per this document:
http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
Just added the version tag and got rid of the error. Thanks for the hint!
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
I now face a series of errors when I tried to compile my project afresh.
My guess is that I have a wrong repository location specified. Can someone let me know what would be the correct repository location? I have the following defined as the repo location:
Do I have to specify any other location additionally?
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
Here is another example of the stack trace. It says checksum validation failed.
>
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
I removed the Spring repository location from my pom.xml and it started downloading the correct jar files from the Maven central repositories.
subject: Maven Error - Unable to find repo