I tried splitting it into 2 sets of quotes but that didnt change anything.
I did a little more digging and it seems the -Darguments line is being
overridden by maven somewhere
In the run logs I am seeing this
15:02:01 [DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare' with basic
configurator -->
15:02:01 [DEBUG]   (f) addSchema = true
15:02:01 [DEBUG]   (f) allowReleasePluginSnapshot = false
15:02:01 [DEBUG]   (f) allowTimestampedSnapshots = false
15:02:01 [DEBUG]   (f) arguments = -Dmaven.test.skip.exec
15:02:01 [DEBUG]   (f) autoVersionSubmodules = false
15:02:01 [DEBUG]   (s) basedir = /a/workspace/HBase-0.98.4
15:02:01 [DEBUG]   (f) commitByProject = false

Seems like the arguments is being overridden somewhere and the actual
command that is being executed is

 Executing: /bin/sh -c cd /a/workspace/HBase-0.98.4.release
 && /
 a/tools/hudson.tasks.Maven_MavenInstallation/maven3/bin/mvn
 -B -X -D maven.repo.local=/a/.m2/repository
 -s /tmp/release-settings839094365501163152.xml -D
 maven.test.skip.exec=true -P apache-release deploy

 Any ideas on why the command I'm using is getting
 overridden by maven?
 Unfortunately signing the artifact during release does not
 seem to be an option that is available for me right now.




Thanks,
Enoch Hsu



From:   Mike Drob <[email protected]>
To:     dev <[email protected]>,
Cc:     Enoch Hsu/Silicon Valley/IBM@IBMUS
Date:   08/24/2014 08:30 AM
Subject:        Re: Maven Release to private repository GPG signing



It looks like he already has -X in there.


Enoch,

The bit where you have "-Darguments=-DskipTests -Dgpg.skip=true" might need
to be split into two sets of quotes. Not sure how friendly maven is towards
the command lines.


Mike


On Sat, Aug 23, 2014 at 12:52 AM, stack <[email protected]> wrote:

> Enoch
>
> That looms like some maven mess.  Pass a -X and see if it gives you some
> more of a clue.  Otherwise why not just sign the artifacts since we know
> that works?
> On Aug 22, 2014 10:03 AM, "Enoch Hsu" <[email protected]> wrote:
>
>>  This is the stack trace from mvn
>> *14:35:18* [INFO] [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-gpg-plugin:1.4:sign (default) on project
>> hbase: Exit code: 2 -> [Help 1]
>> *14:35:18* [INFO]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute
>> goal org.apache.maven.plugins:maven-gpg-plugin:1.4:sign (default) on
>> project hbase: Exit code: 2
>> *14:35:18* [INFO] at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:217)
>> *14:35:18* [INFO] at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:153)
>> *14:35:18* [INFO] at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:145)
>> *14:35:18* [INFO] at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:84)
>> *14:35:18* [INFO] at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:59)
>> *14:35:18* [INFO] at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild
(LifecycleStarter.java:183)
>> *14:35:18* [INFO] at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:161)
>> *14:35:18* [INFO] at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>> *14:35:18* [INFO] at
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>> *14:35:18* [INFO] at
>> org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>> *14:35:18* [INFO] at
>> org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>> *14:35:18* [INFO] at
>> org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>> *14:35:18* [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>> *14:35:18* [INFO] at
>> sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:94)
>> *14:35:18* [INFO] at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:55)
>> *14:35:18* [INFO] at java.lang.reflect.Method.invoke(Method.java:619)
>> *14:35:18* [INFO] at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:290)
>> *14:35:18* [INFO] at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:230)
>> *14:35:18* [INFO] at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:409)
>> *14:35:18* [INFO] at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:352)
>> *14:35:18* [INFO] Caused by:
>> org.apache.maven.plugin.MojoExecutionException: Exit code: 2
>> *14:35:18* [INFO] at
>> org.apache.maven.plugin.gpg.GpgSigner.generateSignatureForArtifact
(GpgSigner.java:254)
>> *14:35:18* [INFO] at
>> org.apache.maven.plugin.gpg.GpgSignAttachedMojo.execute
(GpgSignAttachedMojo.java:182)
>> *14:35:18* [INFO] at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:101)
>> *14:35:18* [INFO] at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:209)
>> *14:35:18* [INFO] ... 19 more
>> *14:35:18* [INFO] [ERROR]
>> *14:35:18* [INFO] [ERROR]
>> *14:35:18* [INFO] [ERROR] For more information about the errors and
>> possible solutions, please read the following articles:
>> *14:35:18* [INFO] [ERROR] [Help 1]
>>
*http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException*
>> <http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
>>
>> and im passing these arguments in
>> -X -Dresume=false release:prepare release:perform
>> -DworkingDirectory="${RELEASE_DIRECTORY}" "-Darguments=-DskipTests
>> -Dgpg.skip=true" -Phadoop-2.0
>>
>> Thanks,
>> Enoch Hsu
>>
>> [image: Inactive hide details for Stack ---08/22/2014 08:11:26 AM---On
>> Thu, Aug 21, 2014 at 9:55 AM, Enoch Hsu <[email protected]> wrote:]Stack
>> ---08/22/2014 08:11:26 AM---On Thu, Aug 21, 2014 at 9:55 AM, Enoch Hsu <
>> [email protected]> wrote: >
>>
>> From: Stack <[email protected]>
>> To: HBase Dev List <[email protected]>,
>> Date: 08/22/2014 08:11 AM
>> Subject: Re: Maven Release to private repository GPG signing
>> Sent by: [email protected]
>> ------------------------------
>>
>>
>>
>> On Thu, Aug 21, 2014 at 9:55 AM, Enoch Hsu <[email protected]> wrote:
>>
>> >
>> >
>> > Hi,
>> >
>> > I'm not sure if this is the right place to ask this. But I am trying
to
>> do
>> > a release build of HBase0.98.4 into a private repository. However, I
am
>> > unable to skip the gpg signing process using -Dgpg.skip=true argument
>> which
>> > is causing the maven release to fail.
>> > Does anyone know how to bypass this issue? or what is causing it?
>> >
>>
>> What does the failure look like?  Why not just sign the artifacts?
>>
>> St.Ack
>>
>>

Reply via email to