• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven Error - Unable to find repo

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a strange error when trying to build a Meven project. Here is what I get!

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just added the version tag and got rid of the error. Thanks for the hint!
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is another example of the stack trace. It says checksum validation failed.

>
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I removed the Spring repository location from my pom.xml and it started downloading the correct jar files from the Maven central repositories.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic