loloof64
loloof64

Reputation: 5392

Can I install several files into one artifact with Maven2 instal:install-file command

I'm developping application with JOGL2 and my favorite IDE Eclipse, also I want to use Maven2 for this purpose. Unfortunately, JOGL2 has no artifact yet. Also, I plan to deploy it as a runnable jar file.

So I want to install JOGL artifact locally : so i'll use the install:install-file command.

But I want to group several jars to make several artifacts, that is :

Is it possible ? (The official documentation does not mention the possibility or unpossibility to do so).

Thanks in advance

Upvotes: 2

Views: 1399

Answers (2)

Tomasz Nurkiewicz
Tomasz Nurkiewicz

Reputation: 340763

maven doesn't have support for that. You would have to unpack these JAR files and repackage them together.

maven does have support for merging JAR with dependencies (http://stackoverflow.com/questions/574594) - and it's done the way I mentioned above. But you are asking about merging two arbitrary JARs, which is not possible in maven.

Upvotes: 2

madhead
madhead

Reputation: 33422

Install all files as usual like file:jar:version. Than create pom with pom packaging and use gluegen-rt.jar and jogl.all.jar as dependencies in it (they must be already installed). After that use new pom as dependency in your project.

Upvotes: 3

Related Questions