The following comment has been added to this issue:
Author: gax
Created: Fri, 4 Feb 2005 4:56 PM
Body:
this bug also appies to goal name="jar:install"
is it better fixed my the artifact plugin?
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPJAR-43?page=comments#action_29572
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPJAR-43
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPJAR-43
Summary: incorrect artifact relative path for inherited subproject pom
Type: Bug
Status: Unassigned
Priority: Major
Original Estimate: 1 day
Time Spent: Unknown
Remaining: 1 day
Project: maven-jar-plugin
Fix Fors:
1.6
Versions:
1.6
Assignee:
Reporter: gax
Created: Fri, 4 Feb 2005 4:51 PM
Updated: Fri, 4 Feb 2005 4:56 PM
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-------------------
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]