Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

mvn release and nifi-nar-bundles

avatar
Rising Star

Hi,

I created a maven project using the nifi-processor-bundle-archetype that contains some custom processors for my company. The problem I'm having is when I want to use the maven release plugin to create a release version and deploy it to our local repository I'm getting gpg errors. Is there any way to skip the gpg step? I don't need to sign my release for local use...

Thanks!

1 ACCEPTED SOLUTION

avatar
Expert Contributor

Please try appending '-Dgpg.skip' to your maven command.

View solution in original post

3 REPLIES 3

avatar
Expert Contributor

Please try appending '-Dgpg.skip' to your maven command.

avatar
Rising Star
mvn --batch-mode release:prepare release:perform -Darguments="-Dmaven.deploy.skip=true"  -Dgpg.skip

Nope. It still looks like it's trying to run it.

[INFO] [INFO] --- maven-gpg-plugin:1.5:sign (default) @ nifi-mycompany-bundle ---

[INFO] gpg: no default secret key: No secret key

[INFO] gpg: signing failed: No secret key

....[snip]

[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.5:sign (default) on project nifi-mycompany-bundle: Exit code: 2 -> [Help 1]

avatar
Rising Star

Bah! I just realized the error of my ways.

mvn --batch-mode release:prepare release:perform -Darguments="-Dmaven.deploy.skip=true -Dgpg.skip"