Maven unpack only some dependencies

137 Views Asked by At

Having the a maven project with a lot of dependencies I want unpack only some of them. Can I somehow group my dependencies so I can unpack only those by referencing the group?

I have found sort of a way but it seems a hassle:

Using dependencyfilesets I would be able to iterate over all maven's classpath maven.project.dependencies using a fileset. And each project would contain a properties file which could indicate that the project should be unpacked or not. I'm afraid that overwriting maven properties for each iteration over the classpath could be faulty.

I'm hoping for suggestions on what would be the best maven way, I also found maven ant tasks that seems able to do the job but I am not considering using anything else than antrun/ant-contrib.

Small history: This is a migration from a ant project that uses something similar to a pom file but groupes dependencies and has different behavior per group. The dependencies contain java and javascript. I am interested in the javascript sources.

0

There are 0 best solutions below