jdeb icon indicating copy to clipboard operation
jdeb copied to clipboard

Add possibility to include all maven artifact dependencies to deb file

Open Don4ik opened this issue 10 years ago • 6 comments

Please, add possibility to include all maven artifact dependencies to deb file

Don4ik avatar Feb 18 '15 17:02 Don4ik

@Don4ik Have you looked into the maven shade plugin? (highly recommended) Or do you mean something else but the jars?

tcurdt avatar Feb 19 '15 12:02 tcurdt

Thank you for fast reply. Currently we use shade plugin for it. But it is a bit slow. So the question: is it possible to just tell jdeb maven plugin to include all maven dependencies into deb?

Don4ik avatar Feb 19 '15 13:02 Don4ik

@Don4ik There is no easy/clean way of doing that with the current jdeb maven plugin as dependencies are located in your local maven repository.

It certainly something that could be added - but build speed is not a very good argument for the additional overhead of maintaining this feature.

I would personally recommend to keep using the the shade plugin. It comes with so many benefits I don't know why anyone would want to ship a product not using it.

tcurdt avatar Feb 19 '15 13:02 tcurdt

We use assembly plugin to copy dependencies to a folder (check dependencySet) option

We then add that folder as one of the mapper elements of jdeb plugin

praste avatar Feb 27 '15 03:02 praste

We use slightly different approach now. We use maven dependency plugin to put all dependencies in a folder. It seems like it is the fastest way.

Don4ik avatar Feb 27 '15 07:02 Don4ik

I guess one could look how the dependency plugin gets to the dependencies and turn it into a jdeb DataProducer.

tcurdt avatar Jan 23 '16 11:01 tcurdt