Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.6
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
call to <artifact:install-snapshot> in
<goal name="jar:install-snapshot">
uses an relative path that the artifact plugin doest resolve correctly when inheritance or subprojects are involved and the "current" directory changes:
see line 448
http://cvs.apache.org/viewcvs.cgi/maven/src/plugins-build/artifact/src/main/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java?view=annotate
I have resolved my problem by changeing the jar:install-snapshot goal with
------snip line 250 of plugin.jelly------------------
<!-- ================================================================== -->
<!-- I N S T A L L S N A P S H O T -->
<!-- ================================================================== -->
<goal
name="jar:install-snapshot" prereqs="jar:jar"
description="Install a snapshot jar in the local repository">
<maven:makeAbsolutePath path="${maven.build.dir}/${maven.final.name}.jar"
basedir="${basedir}"
var="realArtifactPath"/>
<ant:echo>jar path=${realArtifactPath}</ant:echo>
<ant:echo>basedir=${basedir}</ant:echo>
<!--artifact:install-snapshot
artifact="${maven.build.dir}/${maven.final.name}.jar"
type="jar"
project="${pom}"
/-->
<artifact:install-snapshot
artifact="${realArtifactPath}"
type="jar"
project="${pom}"
/>
</goal>
------end snip line 250 of plugin.jelly------------------
this bug also appies to goal name="jar:install"
is it better fixed my the artifact plugin?