Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

mvn release and nifi-nar-bundles

Solved Go to solution

mvn release and nifi-nar-bundles

Contributor

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

Accepted Solutions

Re: mvn release and nifi-nar-bundles

Contributor

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

3 REPLIES 3

Re: mvn release and nifi-nar-bundles

Contributor

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

Highlighted

Re: mvn release and nifi-nar-bundles

Contributor
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]

Re: mvn release and nifi-nar-bundles

Contributor

Bah! I just realized the error of my ways.

mvn --batch-mode release:prepare release:perform -Darguments="-Dmaven.deploy.skip=true -Dgpg.skip"
Don't have an account?
Coming from Hortonworks? Activate your account here