mauryat
mauryat

Reputation: 1646

How to deploy maven generated jar along with dependency directory to Nexus?

This is how my Maven target directory looks like:

target
|_ my-app-0.0.1.jar
|_ lib

When I run mvn release:peform, the jar file gets deployed onto the Nexus repository.

Any ideas how I can have the lib directory also on Nexus? Can I tar them as part of the deploy process?

I'm facing unresolvable problems with the maven-assembly-plugin, hence I need to have the dependencies outside the jar (which I achieved using maven-dependency-plugin).

Upvotes: 0

Views: 311

Answers (1)

Manfred Moser
Manfred Moser

Reputation: 29912

Use the Maven Assembly Plugin to create a tar.gz or zip archve with the desired structure instead of of creating a jar-with-dependencies. That artifact should be attached and therefore also be deployed to Nexus.

Upvotes: 1

Related Questions