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

Only partially compatible with maven 4-beta-3 #194

Open
lprimak opened this issue Aug 11, 2024 · 1 comment
Open

Only partially compatible with maven 4-beta-3 #194

lprimak opened this issue Aug 11, 2024 · 1 comment

Comments

@lprimak
Copy link

lprimak commented Aug 11, 2024

Describe the bug
The below exception occurs when running against maven 4-beta-3:

 [ERROR] Failed to execute goal org.simplify4u.plugins:sign-maven-plugin:1.0.1:sign (default-cli) on project depchain: Execution default-cli of goal org.simplify4u.plugins:sign-maven-plugin:1.0.1:sign failed: An API incompatibility was encountered while executing org.simplify4u.plugins:sign-maven-plugin:1.0.1:sign: java.lang.NoSuchMethodError: 'org.eclipse.aether.transform.FileTransformerManager org.eclipse.aether.RepositorySystemSession.getFileTransformerManager()'
    [ERROR] -----------------------------------------------------
    [ERROR] realm =    plugin>org.simplify4u.plugins:sign-maven-plugin:1.0.1
    [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
    [ERROR] urls[0] = file:/Users/software/.m2/repository/org/simplify4u/plugins/sign-maven-plugin/1.0.1/sign-maven-plugin-1.0.1.jar
    [ERROR] urls[1] = file:/Users/software/.m2/repository/org/codehaus/plexus/plexus-sec-dispatcher/2.0/plexus-sec-dispatcher-2.0.jar
    [ERROR] urls[2] = file:/Users/software/.m2/repository/org/codehaus/plexus/plexus-utils/3.4.1/plexus-utils-3.4.1.jar
    [ERROR] urls[3] = file:/Users/software/.m2/repository/org/codehaus/plexus/plexus-cipher/2.0/plexus-cipher-2.0.jar
    [ERROR] urls[4] = file:/Users/software/.m2/repository/org/bouncycastle/bcpg-jdk15on/1.70/bcpg-jdk15on-1.70.jar
    [ERROR] urls[5] = file:/Users/software/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.70/bcprov-jdk15on-1.70.jar
    [ERROR] urls[6] = file:/Users/software/.m2/repository/io/vavr/vavr/0.10.4/vavr-0.10.4.jar
    [ERROR] urls[7] = file:/Users/software/.m2/repository/io/vavr/vavr-match/0.10.4/vavr-match-0.10.4.jar
    [ERROR] Number of foreign imports: 1
    [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
@lprimak
Copy link
Author

lprimak commented Aug 11, 2024

FYI this happens only if plugin is invoked from the command line. It works as part of the release process

@lprimak lprimak changed the title Not compatible with maven 4-beta-3 Only partially compatible with maven 4-beta-3 Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant