Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException when using this extension this in a multi module project #301

Open
DAGRSAG opened this issue Apr 15, 2024 · 3 comments
Open
Assignees
Labels

Comments

@DAGRSAG
Copy link

DAGRSAG commented Apr 15, 2024

Hi,

I'm using your extension in a huge multi module project. My Maven version is 3.8.6 (unchanged). I'm updated your extension from 7.1.2 to the newest one (9.7.0). Since that the following error occurs:

[exec] Caused by: java.lang.ClassCastException: class org.codehaus.plexus.util.xml.Xpp3Dom cannot be cast to class org.codehaus.plexus.util.xml.Xpp3Dom (org.codehaus.plexus.util.xml.Xpp3Dom is in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @13221655; org.codehaus.plexus.util.xml.Xpp3Dom is in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @6d9fb2d1)
     [exec]     at me.qoomon.maven.gitversioning.GitVersioningModelProcessor.lambda$addBuildPlugin$11 (GitVersioningModelProcessor.java:613)

Before the version update everything worked fine

The code changes were added from 9.3.1 to 9.3.2 83a015e and related to #171

Best regards
Daniel

@DAGRSAG
Copy link
Author

DAGRSAG commented Apr 15, 2024

Can be related to https://issues.apache.org/jira/browse/MNG-7160

But also with Maven 3.9.5 I still get this CCE in combination with the extension

@qoomon qoomon self-assigned this Apr 15, 2024
@qoomon qoomon added the bug label Apr 15, 2024
@qoomon
Copy link
Owner

qoomon commented Apr 15, 2024

@DAGRSAG Could you create a repo with a most simple project setup to recreate this error?

@DAGRSAG
Copy link
Author

DAGRSAG commented Apr 15, 2024

I will try to create one.

For now I'm using the configuration within the extensions.xml

<classLoadingStrategy>parent-first</classLoadingStrategy>

and this also solves the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants