Missed that. Thanks mike. I like your suggestion Michael On Aug 24, 2014 8:30 AM, "Mike Drob" <[email protected]> wrote:
> 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 > >> > >> >
