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

Support Maven 4.0 #205

Open
niloc132 opened this issue Nov 5, 2022 · 1 comment
Open

Support Maven 4.0 #205

niloc132 opened this issue Nov 5, 2022 · 1 comment
Labels

Comments

@niloc132
Copy link
Member

niloc132 commented Nov 5, 2022

Presently, testing with 4.0.0-alpha-2 fails with this error

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce (enforce) on project j2cl-tools: Execution enforce of goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce: java.lang.NoSuchMethodError: 'void org.apache.maven.plugin.PluginParameterExpressionEvaluator.<init>(org.apache.maven.execution.MavenSession, org.apache.maven.plugin.MojoExecution, org.apache.maven.project.path.PathTranslator, org.codehaus.plexus.logging.Logger, org.apache.maven.project.MavenProject, java.util.Properties)'
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.4.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/plugins/maven-enforcer-plugin/1.4.1/maven-enforcer-plugin-1.4.1.jar
[ERROR] urls[1] = file:/home/colin/workspace/j2clmavenplugin/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[2] = file:/home/colin/workspace/j2clmavenplugin/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
[ERROR] urls[3] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/wagon/wagon-file/1.0-beta-6/wagon-file-1.0-beta-6.jar
[ERROR] urls[4] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/wagon/wagon-http-lightweight/1.0-beta-6/wagon-http-lightweight-1.0-beta-6.jar
[ERROR] urls[5] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/wagon/wagon-http/1.0-beta-6/wagon-http-1.0-beta-6.jar
[ERROR] urls[6] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/wagon/wagon-webdav-jackrabbit/1.0-beta-6/wagon-webdav-jackrabbit-1.0-beta-6.jar
[ERROR] urls[7] = file:/home/colin/workspace/j2clmavenplugin/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
[ERROR] urls[8] = file:/home/colin/workspace/j2clmavenplugin/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
[ERROR] urls[9] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar
[ERROR] urls[10] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar
[ERROR] urls[11] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar
[ERROR] urls[12] = file:/home/colin/workspace/j2clmavenplugin/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
[ERROR] urls[13] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/wagon/wagon-ssh-external/1.0-beta-6/wagon-ssh-external-1.0-beta-6.jar
[ERROR] urls[14] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/wagon/wagon-ssh-common/1.0-beta-6/wagon-ssh-common-1.0-beta-6.jar
[ERROR] urls[15] = file:/home/colin/workspace/j2clmavenplugin/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[16] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/wagon/wagon-ssh/1.0-beta-6/wagon-ssh-1.0-beta-6.jar
[ERROR] urls[17] = file:/home/colin/workspace/j2clmavenplugin/com/jcraft/jsch/0.1.38/jsch-0.1.38.jar
[ERROR] urls[18] = file:/home/colin/workspace/j2clmavenplugin/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[19] = file:/home/colin/workspace/j2clmavenplugin/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[20] = file:/home/colin/workspace/j2clmavenplugin/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar
[ERROR] urls[21] = file:/home/colin/workspace/j2clmavenplugin/commons-lang/commons-lang/2.3/commons-lang-2.3.jar
[ERROR] urls[22] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/enforcer/enforcer-api/1.4.1/enforcer-api-1.4.1.jar
[ERROR] urls[23] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/enforcer/enforcer-rules/1.4.1/enforcer-rules-1.4.1.jar
[ERROR] urls[24] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/shared/maven-common-artifact-filters/1.4/maven-common-artifact-filters-1.4.jar
[ERROR] urls[25] = file:/home/colin/workspace/j2clmavenplugin/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
[ERROR] urls[26] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/shared/maven-dependency-tree/2.2/maven-dependency-tree-2.2.jar
[ERROR] urls[27] = file:/home/colin/workspace/j2clmavenplugin/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[28] = file:/home/colin/workspace/j2clmavenplugin/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar
[ERROR] urls[29] = file:/home/colin/workspace/j2clmavenplugin/org/apache/maven/plugin-testing/maven-plugin-testing-harness/1.3/maven-plugin-testing-harness-1.3.jar
[ERROR] urls[30] = file:/home/colin/workspace/j2clmavenplugin/org/codehaus/plexus/plexus-archiver/2.2/plexus-archiver-2.2.jar
[ERROR] urls[31] = file:/home/colin/workspace/j2clmavenplugin/org/codehaus/plexus/plexus-io/2.0.4/plexus-io-2.0.4.jar
[ERROR] urls[32] = file:/home/colin/workspace/j2clmavenplugin/junit/junit/4.11/junit-4.11.jar
[ERROR] urls[33] = file:/home/colin/workspace/j2clmavenplugin/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
@niloc132 niloc132 added the maven label Nov 5, 2022
@xamde
Copy link
Contributor

xamde commented Oct 4, 2023

Hi, the maven-enforcer-plugin 1.4.1 was replaced by newer versions in 2021-08, latest version is 3.4.1 from 2023-09.
Googling around suggests, we should simply update the version

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