i'm 开发者_运维技巧trying to use Nexus + m2eclipse/maven-3 professionnally, and i've got a huge 3rd party library that needs a lot of dependencies.
Is there any ways to ease my pain by uploading to Nexus this third party library with all its dependencies linked, so that anyone who would need it would just have to add the maven-dependency-tag only for this huge library ?
Do i need to create the pom myself ?
thank you for your help.
Is there any ways to ease my pain by uploading to Nexus this third party library with all its dependencies linked, so that anyone who would need it would just have to add the maven-dependency-tag only for this huge library?
I'm not aware of such a facility.
Do I need to create the pom myself ?
I would not create the POM for the thirdparty dependency but I would indeed consolidate dependencies in a single POM project (and upload it to Nexus).
For future visitors, I was able to add a dependency to a 3rd party artifact within nexus, if you wish to do it this way. I followed the following steps:
Create the pom file you want for the 3rd party dependency (I downloaded the existing, auto-generated pom in nexus, then added the dependency that I wanted).
Delete the pom file and it's friends (the SHA1 and MD5 files). I did this through the UI.
Upload the pom file through the artifact upload tab, using the same GAV information, with the artifact type being a pom file.
Celebrated that it was this straightforward.
Hope that helps.
精彩评论