commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <>
Subject Re: [all] How to prevent mvn deploy to skip certain artifacts
Date Wed, 03 Apr 2013 10:19:57 GMT
On 04/03/2013 11:56 AM, sebb wrote:
> On 3 April 2013 10:49, Mladen Turk <> wrote:
>> On 04/03/2013 10:02 AM, Simone Tripodi wrote:
>>> Hi Mladen!
>>> artifacts produced by the assembly-plugin can be detached from the project
>>> by setting to `false` the `attach`[1] property.
>>> In that way, -(src|bin)\.(zip|tar\.gz) artifacts won't be deployed.
>> Seems exactly what I was looking for. Thanks!
>> So for daemon I would set attach=false to bin, native-src and src
>> assemblies
>> meaning only win and .jar would be deployed. Nice.
> Unfortunately that also detaches the archives from the hash generation
> process.
> So you need to add code (e.g. antrun) to create the hashes.

That's fine. I know how to use md5sum and gpg. No need for ant :)

Anyhow, gpg sign fails for commons-parent #28. #27 and earlier work.

gpg: DSA/SHA256 signature from: "0D498E23 Mladen Turk (Default signing key) <>"
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.460s
[INFO] Finished at: Wed Apr 03 12:17:27 CEST 2013
[INFO] Final Memory: 25M/230M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.4:sign (sign-artifacts)
on project commons-daemon: Exit code: 2 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.4:sign
(sign-artifacts) on project commons-daemon: Exit code: 2
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(
	at org.apache.maven.DefaultMaven.doExecute(
	at org.apache.maven.DefaultMaven.execute(
	at org.apache.maven.cli.MavenCli.execute(
	at org.apache.maven.cli.MavenCli.doMain(
	at org.apache.maven.cli.MavenCli.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(
Caused by: org.apache.maven.plugin.MojoExecutionException: Exit code: 2
	at org.apache.maven.plugin.gpg.GpgSigner.generateSignatureForArtifact(
	at org.apache.maven.plugin.gpg.GpgSignAttachedMojo.execute(
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
	... 19 more
[ERROR] Re-run Maven using the -X switch to enable full debug logging.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message