File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven locale repo doesn't take in account with artifactory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven locale repo doesn Watch "Maven locale repo doesn New topic
Author

Maven locale repo doesn't take in account with artifactory

Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
Hello all, I have a 2 module like this:



my "myapp-install-wizard" depend of "myapp-webapp" SNAPSHOT,

I already have a "mvn clean install" of myapp-webapp SNAPSHOT I my locale .m2 repo
by when I try to compile my "myapp-install-wizard" the following stack trace is logged and my build failed:

[ERROR] Failed to execute goal on project myapp-install-wizard: Could not resolve dependencies for project com.myapp:myapp-install-wizard:jar:Head-SNAPSHOT: Could not find art
ifact com.myapp:myapp-webapp:jar:Head-SNAPSHOT in snapshot (http://192.168.1.160:8081/artifactory/libs-snapshot) -> [Help 1]

Normal I don't want to deploy my webapp snapshot in the artifactory, but I want to take the snapshot in my locale .m2 repository ... how I can force maven to take the snapshot in locale repo
if isn't found in remote artifactory repo ?

Thank & best regards,

Adrien


SCJP 5, SCDJWS 5
http://adrien-ruffie.blogspot.com
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Maven will always look in the local repository before going off to look in the remote repository (artifactory). Is yous snapshot in the local repository? Did you double-check that it's there? Did you built it (the snapshotted artifact) using "mvn install"?


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven locale repo doesn't take in account with artifactory