Ian i have tried to declare a dependency in POM.xml for a single artifact
which is in the nexus repository..
but when we run mvn package it shows this error
) mockobjects:com.mockobjects:jar:0.09
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=mockobjects
-DartifactId=com.mockobject
s -Dversion=0.09 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=mockobjects
-DartifactId=com.mockobjects
-Dversion=0.09 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[
id]
It not able to find the custom artifact though its present in the nexus
repos. Once when we run the mvn install command as shown then it compiles.
Is it a access issue or any other declarations we need to make or any
mistake made during artifact upload.
Could you pls guide us.
--
View this message in context:
http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23137616.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]