Skip to content

Release fails with Maven 4 #336

@froque

Description

@froque
$ mvn --version
Apache Maven 4.0.0-alpha-1-SNAPSHOT (1e95011a3088caeb6b0ad7a62becef542ab453a7)
Maven home: /opt/maven/apache-maven-4.0.0-alpha-1
Java version: 18.0.2-ea, vendor: Private Build, runtime: /usr/lib/jvm/java-18-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-47-generic", arch: "amd64", family: "unix"
$ mvn release:perform -Darguments="-DskipTests -Dgpg.keyname=XXXXXXXX"
...
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-gpg-plugin/3.0.1/maven-gpg-plugin-3.0.1.jar (60 kB at 2.2 MB/s)
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Summary for billy 6.0.0:
[INFO] [INFO] 
[INFO] [INFO] billy .............................................. FAILURE [  0.184 s]
[INFO] [INFO] billy core ......................................... SKIPPED
[INFO] [INFO] billy core JPA ..................................... SKIPPED
[INFO] [INFO] billy GIN .......................................... SKIPPED
[INFO] [INFO] billy portugal (PT Pack) ........................... SKIPPED
[INFO] [INFO] billy spain (ES Pack) .............................. SKIPPED
[INFO] [INFO] billy france (FR Pack) ............................. SKIPPED
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time:  7.041 s
[INFO] [INFO] Finished at: 2022-09-14T13:09:11+01:00
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] The maven-gpg-plugin is not supported by Maven 4. Verify if there is a compatible signing solution, add -Dmaven.experimental.buildconsumer=false or use Maven 3.
[INFO] [ERROR] 
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
[INFO] [ERROR] Re-run Maven using the '-X' switch to enable verbose output
[INFO] [ERROR] Error executing Maven.
[INFO] [ERROR] Cannot invoke "org.apache.maven.project.MavenProject.equals(Object)" because "firstFailedProject" is null
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] Reactor Summary for billy 6.0.1-SNAPSHOT:
[INFO] 
[INFO] billy ................................................................................................ FAILURE [ 18.879 s]
[INFO] billy core ........................................................................................... SKIPPED
[INFO] billy core JPA ....................................................................................... SKIPPED
[INFO] billy GIN ............................................................................................ SKIPPED
[INFO] billy portugal (PT Pack) ............................................................................. SKIPPED
[INFO] billy spain (ES Pack) ................................................................................ SKIPPED
[INFO] billy france (FR Pack) ............................................................................... SKIPPED
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] Total time:  19.132 s
[INFO] Finished at: 2022-09-14T13:09:11+01:00
[INFO] --------------------------------------------------------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:perform (default-cli) on project billy: Maven execution failed, exit code: '1' -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
[ERROR] Re-run Maven using the '-X' switch to enable verbose output
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions