Add plexus-xml as explicit dependency required by plexus-sec-dispatcher#40
Add plexus-xml as explicit dependency required by plexus-sec-dispatcher#40HannesWell wants to merge 1 commit intoapache:masterfrom
Conversation
Since version 4 the xml tools of plexus-utils have been moved into plexus-xml, but plexus-utils only has an optional dependency on it. Since org.sonatype.plexus:plexus-sec-dispatcher is compiled against plexus-utils version 1.5 it expects the xml classes to be available and fails with an 'java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader' in org.sonatype.plexus.components.sec.dispatcher.SecUtil.read(), when creating an instance of 'SecurityConfigurationXpp3Reader'.
|
Of course ideally And since I have not found any other report about this error I wonder if I do something wrong in the configuration of my jarsigner execution? But as far as I can tell, my configuration looks quite default. |
|
It is interesting that no integration tests fail of it .... |
Yes, absolutely. That's why I was wondering if I use a special configuration or alike. For me signing failed completely and immediately. |
|
Can you try reproduce it and add a test? |
I'm currently working on a reproducer. The problems are, and I think that's the reason why tests didn't discover it, only dummy |
|
@cstamas fyi |
|
@HannesWell which Maven version do you use? |
|
Otp, but need to look at this... |
Just created #41, but it currently does not fail as desired.
3.9.9 In general I have the impression it would be better to migrate off I first looked at If you can tell me a good way forward I would be interested to make the jarsigner plugin more robust and up-to-date. |
Would a proper way to get rid of it be the same as done in apache/maven-gpg-plugin#115 ? |
it is good way |
|
Maybe we could also add this to banned dependencies like with plexus container? |
yup yup yup |
|
The added dependency was done by @slachiewicz in #130. So I close this as it's no longer needed. |
Since version 4 the xml tools of plexus-utils have been moved into plexus-xml, but plexus-utils only has an optional dependency on it. Since org.sonatype.plexus:plexus-sec-dispatcher is compiled against plexus-utils version 1.5 it expects the xml classes to be available and fails with an
java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReaderin
org.sonatype.plexus.components.sec.dispatcher.SecUtil.read(), when creating an instance ofSecurityConfigurationXpp3Reader.The full stack-trace is