wood burning stoves*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven Error - Unable to find repo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven Error - Unable to find repo" Watch "Maven Error - Unable to find repo" New topic
Author

Maven Error - Unable to find repo

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

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, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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: 9345
    
    2

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: 9345
    
    2

Just added the version tag and got rid of the error. Thanks for the hint!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

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: 9345
    
    2

Here is another example of the stack trace. It says checksum validation failed.

>
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

I removed the Spring repository location from my pom.xml and it started downloading the correct jar files from the Maven central repositories.
 
Don't get me started about those stupid light bulbs.
 
subject: Maven Error - Unable to find repo
 
Similar Threads
springframework dependancy is missing.
com.sun.tools.jxc.maven2:maven-jaxb-schemagen-plugin not found
Cannot find parent error while "mvn compile"
Maven build error
maven: mvn clean ERROR