Re: Problems with maven-gpg-plugin

2010-02-09 Thread Jo Eduardo
Is this all the logs? Seems like its trying to perform mvn
performRelease=true, which is not a valid maven command. Try to find out
where that performRelease=true comes from and try to fix that. Also, it
seems that what you want to run is mvn -DperformRelease=true.

HTH,
-- 
Jo Eduardo
Twitter: http://twitter.com/joed

On Tue, Feb 9, 2010 at 7:21 PM, Karl Heinz Marbaise k...@soebes.de wrote:


 Hi,

 currently I'm trying to deploy signed artifacts into a nexus repo
 manager

 Based on the

 http://www.sonatype.com/people/2010/01/how-to-generate-pgp-signatures-with-maven/
 description  i configured the maven-gpg-plugin to be activated based on the
 release:perform ...

 pre
 profiles
profile
idrelease-sign-artifacts/id
activation
property
nameperformRelease/name
valuetrue/value
/property
/activation
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-gpg-plugin/artifactId
version1.0-alpha-4/version
executions
execution
idsign-artifacts/id
phaseverify/phase
goals
goalsign/goal
/goals
/execution
/executions
/plugin
/plugins
/build
/profile
 /profiles
 /pre


 so i call mvn release:prepare everything went well...so far so good...
 but than i'm trying to call mvn release:perform and the output hangs at the
 point [INFO] [INFO] [gpg:sign {execution: sign-artifacts}]...
 Ok i read the comment about the pgp.passphase parameter and changed the
 call
 into the following:

 premvn release:perform -Darguments=-Dgpg.passphrase=xx/pre
 But now the result is the following:
 pre
 $ mvn22 release:perform -Darguments=-Dgpg.passphrase=in\ dubio
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'release'.
 [INFO]
 
 [INFO] Building Guice :: Test
 [INFO]task-segment: [release:perform] (aggregator-style)
 [INFO]
 
 [INFO] [release:perform {execution: default-cli}]
 [INFO] Checking out the project to perform the release ...
 [INFO] Executing: /bin/sh -c cd /home/.../guice-test/target  svn
 --non-interactive checkout file:///home/.../tags/guice-test-0.0.2 checkout
 [INFO] Working directory: /home/.../guice-test/target
 [INFO] Executing goals 'deploy site-deploy'...
 [WARNING] Maven will be executed in interactive mode, but no input stream
 has been configured for this MavenInvoker instance.
 [INFO] [INFO] Scanning for projects...
 [INFO] [INFO]
 
 [INFO] [ERROR] BUILD FAILURE
 [INFO] [INFO]
 
 [INFO] [INFO] Invalid task 'performRelease=true': you must specify a valid
 lifecycle phase, or a goal in the format plugin:goal or
 pluginGroupId:pluginArtifactId:pluginVersion:goal
 [INFO] [INFO]
 
 [INFO] [INFO] For more information, run Maven with the -e switch
 [INFO] [INFO]
 
 [INFO] [INFO] Total time:  1 second
 [INFO] [INFO] Finished at: Tue Feb 09 11:24:47 CET 2010
 [INFO] [INFO] Final Memory: 5M/490M
 [INFO] [INFO]
 
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Maven execution failed, exit code: '1'

 /pre
 does someone has an idea what I'm doing wrong ?

 Kind regards
 Karl Heinz Marbaise
 --
 View this message in context:
 http://old.nabble.com/Problems-with-maven-gpg-plugin-tp27513746p27513746.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: Problems with maven-gpg-plugin

2010-02-09 Thread Karl Heinz Marbaise

Hi,

after investigating an debug -X output i found out that an incorrectly
escaped passphrase caused the problem ...My passphase had an space in it and
i tried to escape it (based on a hint in the Maven IRC chat on codehaus):

with blabal\ blabal...but this doesn't work...


pre
[DEBUG] Executing: /bin/sh -c cd /home/guice-test/target/checkout 
/homeg/apache-maven-2.2.1/bin/mvn -X -D
maven.repo.local=/home/.m2/repository -D gpg.passphrase=xx\ -D
performRelease=true -P xxx,nexus deploy site-deploy
[WARNING] Maven will be executed in interactive mode, but no input stream
has been configured for this MavenInvoker instance.
[INFO] + Error stacktraces are turned on.
[INFO] Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
[INFO] Java version: 1.6.0_07
[INFO] Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.7/jre
[INFO] Default locale: en_US, platform encoding: UTF-8
[INFO] OS name: linux version: 2.6.24.7-108.el5 arch: amd64 Family:
unix
[INFO] [DEBUG] Building Maven user-level plugin registry from:
'/home/.m2/plugin-registry.xml'
[INFO] [DEBUG] Building Maven global-level plugin registry from:
'/home/maven/conf/plugin-registry.xml'
[INFO] [INFO] Scanning for projects...
[INFO] [INFO]

[INFO] [ERROR] BUILD FAILURE
[INFO] [INFO]

[INFO] [INFO] Invalid task 'performRelease=true': you must specify a valid
lifecycle phase, or a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] [INFO]

[INFO] [DEBUG] Trace
[INFO] org.apache.maven.BuildFailureException: Invalid task
'performRelease=true': you must specify a valid lifecycle phase, or a goal
in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1830)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
[INFO]  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
[INFO]  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
[INFO]  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
[INFO]  at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
[INFO]  at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
[INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO]  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO]  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO]  at java.lang.reflect.Method.invoke(Method.java:597)
[INFO]  at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
[INFO]  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
[INFO]  at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
[INFO]  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] [INFO]

[INFO] [INFO] Total time:  1 second
[INFO] [INFO] Finished at: Tue Feb 09 13:06:30 CET 2010
[INFO] [INFO] Final Memory: 5M/490M
[INFO] [INFO]

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Maven execution failed, exit code: '1'

[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Maven execution
failed, exit code: '1'
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at