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

mixin-maven-plugin breaks with maven 4.0-alpha #26

Open
spachore opened this issue Jan 23, 2023 · 0 comments
Open

mixin-maven-plugin breaks with maven 4.0-alpha #26

spachore opened this issue Jan 23, 2023 · 0 comments

Comments

@spachore
Copy link

Hello,

mixin-maven-plugin breaks with apache maven 3.9 and 4.0-alpha. This issue could be resolved by adding plexus-utils dependency in the plugin.

The error during build of mixin-example is:

Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/util/StringUtils
        at com.github.odavid.maven.plugins.MixinModelCache.checkMixinVersion(MixinModelCache.java:96)
        at com.github.odavid.maven.plugins.MixinModelCache.getModel(MixinModelCache.java:46)
        at com.github.odavid.maven.plugins.MixinsProjectLoader.fillMixins(MixinsProjectLoader.java:231)
        at com.github.odavid.maven.plugins.MixinsProjectLoader.mergeMixins(MixinsProjectLoader.java:90)
        at com.github.odavid.maven.plugins.MixinMavenLifecycleParticipant.afterProjectsRead(MixinMavenLifecycleParticipant.java:72)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:221)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:171)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:99)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:820)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:269)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.util.StringUtils
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
        ... 19 more
spachore added a commit to spachore/maven-plugins that referenced this issue Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant