Dear all,

I have a project which depends of two library A and B. Both (jar) have
a directory named META-INF/services/ with in a file named "config" for
example. However the content of the file "config" is different for the
two libraries.

My project use the assembly plugin with one-jar goal. When I perform
an assembly, I get my-project-onejar.jar within a
META-INF/services/config file which is the content of the file from
the library B. My problem is that I want to have the content of the
file from the library A.
I think this problem occurs because the add operation is performed by
using the lexicographic order on the groupId associated with
libraries. Like groupId(A) < groupId(B) the one-jar goal add first the
config file from A and then it is replaced by the config file of B.

Does someone know where to find the one-jar.xml descriptor and how I
can edit it in order to exclude file from a specific library
identified by a groupId and an artifactId ?

I try to do something like that :

<fileset from="B">
  <excludes>
    <exclude>META-INF/services/config</exclude>
  </excludes>
</fileset>

In this case B will not replace the existing file from A.

How does someone has an another idea ?

Thanks.

Kind Regards
Laurent

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to