jdeb
jdeb copied to clipboard
Add possibility to include all maven artifact dependencies to deb file
Please, add possibility to include all maven artifact dependencies to deb file
@Don4ik Have you looked into the maven shade plugin? (highly recommended) Or do you mean something else but the jars?
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 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.
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
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.
I guess one could look how the dependency plugin gets to the dependencies and turn it into a jdeb DataProducer.