File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven locale repo doesn Watch "Maven locale repo doesn New topic

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 ( -> [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,


Peter Johnson

Joined: May 14, 2008
Posts: 5811

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:
subject: Maven locale repo doesn't take in account with artifactory
Similar Threads
Private plugin repository for Maven project.
Maven Repo Location
Libraries not visible under projects java build path in eclipse
Enable dependency management is not working for me not even getting the maven folder created(eclipse
A set of questions on Maven.