Hi Everyone,

I have two m2 projects. Both are snapshot versions. When i do mvn clean
install on first project (say A), it is installed into .m2 repository with
A-1.0-SNAPSHOT.jar file.

Now i specify A as dependency in project B's POM. When i try mvn clean
install for B, it says.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=com.omc.provisioning
-DartifactId=ProvisioningCommons-components -Dversion=1.0-7-SNAPSHOT
-Dpackaging=
jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:
    mvn deploy:deploy-file -DgroupId=com.dowjones.omc
-DartifactId=ProvisioningCommons-components -Dversion=1.0-7-SNAPSHOT
-Dpackaging=ja
r -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
        1)
com.dowjones.omc.provisioning:IdentityService-components:jar:1.6-2-SNAPSHOT
        2)
com.dowjones.omc.provisioning:ProvisioningCommons-components:jar:1.0-7-SNAPSHOT


 
com.dowjones.omc.provisioning:ProvisioningCommons-components:jar:1.0-7-SNAPSHOT
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


I thought that initially it check if artifacts present in .m2 repo then it
tries for external remote repos. But here it is strange. 

Any idea will be greatly appreciated.


Thanks
Pawan
-- 
View this message in context: 
http://old.nabble.com/Problem-for-access-local-.m2-installed-snapshot-dependency-tp27645686p27645686.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to