You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use plexus-compiler-eclipse 2.9.0 with maven-compiler-plugin 3.8.1 leads to
org.apache.maven.plugin.PluginContainerException: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile: java.lang.NoSuchMethodError: 'java.lang.String org.codehaus.plexus.compiler.CompilerConfiguration.getWarnings()'
with stack trace
Caused by: java.lang.NoSuchMethodError: 'java.lang.String org.codehaus.plexus.compiler.CompilerConfiguration.getWarnings()'
15:24:41 at org.codehaus.plexus.compiler.eclipse.EclipseJavaCompiler.performCompile (EclipseJavaCompiler.java:132)
15:24:41 at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1134)
15:24:41 at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:187)
plexus-compiler-eclipse 2.9.0 depends on plexus-compiler-api 2.9.0, but doesn't declare this dependency in the pom.xml. So one ends up with inconsistent versions.
Users would have to override the maven-compiler-plugin config by not only adding the dependency to plexus-compiler-eclipse:2.9.0 but also to plexus-compiler-api:2.9.0.
I think the dependency should be declared.
The text was updated successfully, but these errors were encountered:
plexus-compiler-eclipse 2.9.0 depends on plexus-compiler-api 2.9.0
or newer since it makes use of CompilerConfiguration.getWarnings().
Declare the dependency to match the API the plug-in is actually built
against, ensuring that maven-compiler-plugin will also pull in the
correct API version when people use plexus-compiler-eclipse.
plexus-compiler-eclipse 2.9.0 depends on plexus-compiler-api 2.9.0
or newer since it makes use of CompilerConfiguration.getWarnings().
Declare the dependency to match the API the plug-in is actually built
against, ensuring that maven-compiler-plugin will also pull in the
correct API version when people use plexus-compiler-eclipse.
Trying to use plexus-compiler-eclipse 2.9.0 with maven-compiler-plugin 3.8.1 leads to
with stack trace
and reports
plexus-compiler-eclipse 2.9.0 depends on plexus-compiler-api 2.9.0, but doesn't declare this dependency in the pom.xml. So one ends up with inconsistent versions.
Users would have to override the maven-compiler-plugin config by not only adding the dependency to plexus-compiler-eclipse:2.9.0 but also to plexus-compiler-api:2.9.0.
I think the dependency should be declared.
The text was updated successfully, but these errors were encountered: