TakahikoKawasaki/nv-i18n

Build failure: "signing failed: secret key not available"

Closed this issue · 1 comments

Could digitally signing the jarfile be optional?

Build of master branch fails due to signing failure because secret key "E3F58E5C" is not available:

derek@derek-lubuntu:~/Projects/nv-i18n.takahiko$ mvn clean install
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.neovisionaries:nv-i18n:bundle:1.23-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-site-plugin is missing. @ line 73, column 29
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Neo Visionaries Internationalization Package 1.23-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ nv-i18n ---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ nv-i18n ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/derek/Projects/nv-i18n.takahiko/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ nv-i18n ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to /home/derek/Projects/nv-i18n.takahiko/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ nv-i18n ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/derek/Projects/nv-i18n.takahiko/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ nv-i18n ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to /home/derek/Projects/nv-i18n.takahiko/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ nv-i18n ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.neovisionaries.i18n.ScriptCodeTest
[INFO] Tests run: 52, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.193 s - in com.neovisionaries.i18n.ScriptCodeTest
[INFO] Running com.neovisionaries.i18n.LanguageCodeTest
[INFO] Tests run: 121, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.276 s - in com.neovisionaries.i18n.LanguageCodeTest
[INFO] Running com.neovisionaries.i18n.CountryCodeTest
[INFO] Tests run: 41, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 s - in com.neovisionaries.i18n.CountryCodeTest
[INFO] Running com.neovisionaries.i18n.LocaleCodeTest
[INFO] Tests run: 45, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.044 s - in com.neovisionaries.i18n.LocaleCodeTest
[INFO] Running com.neovisionaries.i18n.CurrencyCodeTest
[INFO] Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.048 s - in com.neovisionaries.i18n.CurrencyCodeTest
[INFO] Running com.neovisionaries.i18n.LanguageAlpha3CodeTest
[INFO] Tests run: 183, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.093 s - in com.neovisionaries.i18n.LanguageAlpha3CodeTest
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 459, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-bundle-plugin:2.5.3:bundle (default-bundle) @ nv-i18n ---
[INFO] 
[INFO] --- maven-source-plugin:2.3:jar-no-fork (attach-sources) @ nv-i18n ---
[INFO] Building jar: /home/derek/Projects/nv-i18n.takahiko/target/nv-i18n-1.23-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- maven-javadoc-plugin:2.10.1:jar (attach-javadocs) @ nv-i18n ---
[INFO] 
Loading source files for package com.neovisionaries.i18n...
Constructing Javadoc information...
Standard Doclet version 1.8.0_131
Building tree for all the packages and classes...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/CountryCode.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/CountryCode.Assignment.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/CurrencyCode.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/LanguageAlpha3Code.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/LanguageAlpha3Code.Usage.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/LanguageCode.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/LocaleCode.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/ScriptCode.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/package-frame.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/package-summary.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/package-tree.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/constant-values.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/class-use/LocaleCode.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/class-use/ScriptCode.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/class-use/LanguageCode.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/class-use/LanguageAlpha3Code.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/class-use/LanguageAlpha3Code.Usage.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/class-use/CurrencyCode.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/class-use/CountryCode.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/class-use/CountryCode.Assignment.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/com/neovisionaries/i18n/package-use.html...
Building index for all the packages and classes...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/overview-tree.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/index-all.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/deprecated-list.html...
Building index for all classes...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/allclasses-frame.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/allclasses-noframe.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/index.html...
Generating /home/derek/Projects/nv-i18n.takahiko/target/apidocs/help-doc.html...
[INFO] Building jar: /home/derek/Projects/nv-i18n.takahiko/target/nv-i18n-1.23-SNAPSHOT-javadoc.jar
[INFO] 
[INFO] --- maven-gpg-plugin:1.5:sign (sign-artifacts) @ nv-i18n ---
gpg: skipped "E3F58E5C": secret key not available
gpg: signing failed: secret key not available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.933 s
[INFO] Finished at: 2017-08-17T16:26:13-04:00
[INFO] Final Memory: 22M/90M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.5:sign (sign-artifacts) on project nv-i18n: Exit code: 2 -> [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 full debug logging.
[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

It is, just add -Dgpg.skip to your Maven call