views:

49

answers:

2

Hi everyone, 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.

A: 

I'm not sure I understand what the problem is, but if you want to share this library and its dependencies with your own development group, you could set up your own shared repository and install it there.

But if you are trying to get it loaded to a remote repository (I'm assuming this is what nexus is), then you would need to have the 3rd party's permission to do so, at the very least.

Rulmeq
+1  A: 

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

Pascal Thivent
but assuming that my dependency needs other 3rd party dependencies, i need to upload them one by one, and then create the POM project to consolidate them into one single dependency (that can be dealt with).Is that right ?
ssaboum
@ssaboum: That's what I would do at least.
Pascal Thivent