문제

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:

  1. 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).

  2. Delete the pom file and it's friends (the SHA1 and MD5 files). I did this through the UI.

  3. Upload the pom file through the artifact upload tab, using the same GAV information, with the artifact type being a pom file.

  4. Celebrated that it was this straightforward.

Hope that helps.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top