Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ee4j-build] Maven build signing issue

Today I received notification that all Jenkins instances are now configured.

I ensured that my POM.xml has the following:
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>1.6</version>
                <executions>
                    <execution>
                        <id>sign-artifacts</id>
		        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

And in my Jenkins maven job I did the following:
Provided Configuration files
   Managed Files
                 File:   settings-security.xml
                 Target:  /home/jenkins/.m2/
and
   Settings file:     provided settings.xml
           Provided Settings:   settings-jakartaee-stable.xml
   Global Settings file:    Use default maven global settings

But I still get the following error when I submit my build:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign (sign-artifacts) on project jakarta.enterprise.deploy-api: Exit code: 2 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign (sign-artifacts) on project jakarta.enterprise.deploy-api: Exit code: 2
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)

Back to the top