This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 5823
    
    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
 
Consider Paul's rocket mass heater.
 
subject: Maven locale repo doesn't take in account with artifactory