You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Graham Leggett <mi...@sharp.fm> on 2007/03/12 15:34:39 UTC
release:perform and classifier breakage
Hi all,
I am trying to do a release:perform on a project that creates a jar with a
classifier.
For some reason, as part of release:perform, install:install is called,
and when install:install is called _without_ being part of the build
lifecycle, it fails with the error below.
I tried configuring the install plugin to have a classifier, but to no avail.
I also tried setting the finalName to the name+version+classifier, but
also to no avail:
<finalName>${artifactId}-${version}-${os-platform}-${os-arch}</finalName>
Has anyone seen release:perform work with a classifier present?
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive
invocation.
[WARNING] Removing: jar from forked lifecycle, to prevent recursive
invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] Building jar:
/udd001/app/alchemy/development/native-new/trunk/target/checkout/alchemy-cdo/target/alchemy-cdo-4.0.6-sources.jar
[INFO] [install:install]
[INFO] No primary artifact to install, installing attached artifacts
instead.
[INFO] Installing
/udd001/app/alchemy/development/native-new/trunk/target/checkout/alchemy-cdo/target/alchemy-cdo-4.0.6-linux-Linux
amd64.jar to
/udd001/app/alchemy/.m2/repository/alchemy/alchemy-cdo/4.0.6/alchemy-cdo-4.0.6-linux-Linux
amd64.jar
[INFO] Installing
/udd001/app/alchemy/development/native-new/trunk/target/checkout/alchemy-cdo/target/alchemy-cdo-4.0.6-sources.jar
to
/udd001/app/alchemy/.m2/repository/alchemy/alchemy-cdo/4.0.6/alchemy-cdo-4.0.6-sources.jar
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error deploying artifact:
/udd001/app/alchemy/development/native-new/trunk/target/checkout/alchemy-cdo/target/classes
(Is a directory)
Regards,
Graham
--
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: release:perform and classifier breakage
Posted by Graham Leggett <mi...@sharp.fm>.
On Mon, March 12, 2007 4:34 pm, Graham Leggett wrote:
> Has anyone seen release:perform work with a classifier present?
I have managed to narrow this down to the deploy plugin. It seems the
deploy plugin cannot deploy a jar with a classifier. The stacktrace is
below.
[INFO] [jar:jar]
[INFO] Building jar:
/Users/minfrin/src/standard/alchemy/development/native/trunk/alchemy-cdo/target/alchemy-cdo-4.0.6-SNAPSHOT-macosx-ppc.jar
[INFO] [build-helper:attach-artifact {execution: attach-artifacts}]
[INFO] [install:install]
[INFO] No primary artifact to install, installing attached artifacts instead.
[INFO] Installing
/Users/minfrin/src/standard/alchemy/development/native/trunk/alchemy-cdo/target/alchemy-cdo-4.0.6-SNAPSHOT-macosx-ppc.jar
to
/Users/minfrin/.m2/repository/alchemy/alchemy-cdo/4.0.6-SNAPSHOT/alchemy-cdo-4.0.6-SNAPSHOT-macosx-ppc.jar
[INFO] Installing
/Users/minfrin/src/standard/alchemy/development/native/trunk/alchemy-cdo/target/alchemy-cdo-4.0.6-SNAPSHOT-macosx-ppc.jar
to
/Users/minfrin/.m2/repository/alchemy/alchemy-cdo/4.0.6-SNAPSHOT/alchemy-cdo-4.0.6-SNAPSHOT-macosx-ppc.jar
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from alchemy.scmb.co.za
WAGON_VERSION: 1.0-beta-2
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error deploying artifact:
/Users/minfrin/src/standard/alchemy/development/native/trunk/alchemy-cdo/target/classes
(No such file or directory)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
artifact:
/Users/minfrin/src/standard/alchemy/development/native/trunk/alchemy-cdo/target/classes
(No such file or directory)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying
artifact:
/Users/minfrin/src/standard/alchemy/development/native/trunk/alchemy-cdo/target/classes
(No such file or directory)
at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:174)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 16 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
Error deploying artifact:
/Users/minfrin/src/standard/alchemy/development/native/trunk/alchemy-cdo/target/classes
(No such file or directory)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:95)
at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:162)
... 18 more
Caused by: java.io.FileNotFoundException:
/Users/minfrin/src/standard/alchemy/development/native/trunk/alchemy-cdo/target/classes
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:820)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:74)
... 19 more
Regards,
Graham
--
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org