Affects Version/s: 2.5.5, 2.6
Fix Version/s: None
Assembly plugin wrongly pack dependencies of project when classifier dependencies are defined in random order.
For the plugin pack it in right way it requires ordering dependencies precisely where dependency without the classifier is used before the dependency with it.
If wrong order is used then the result jar seems to contain both dependencies - with and without classifier. But the file without classifier is not contained and the content of it is equal to the one with the classifier.
For building Narayana project there is used pom.xml with
For this descriptor the content of the result zip file is
You can see the artifacts jbossxts-api and jbossxts are the same.
If ordering is changed
then the generated zip file contain correct data.
- git clone firstname.lastname@example.org:jbosstm/narayana.git
- cd narayana
- ./build.sh clean install -Pcommunity -DskipTests -Didlj-enabled=true
Now you can see
unzip -l narayana-full/target/narayana-full-5.*zip | grep xts
showing the same file.
Edit narayana-full/pom.xml to change the place where classfier is used for the jbossxts artifact.
You can do cd narayana-full; mvn clean install and when you checked the result zip there will be different content of both jbossxts files.
Discussed at https://issues.jboss.org/browse/JBTM-2679