You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Vincent Massol (JIRA)" <ji...@codehaus.org> on 2005/06/04 14:34:22 UTC
[jira] Updated: (MPJAR-43) incorrect artifact relative path for inherited subproject pom
[ http://jira.codehaus.org/browse/MPJAR-43?page=all ]
Vincent Massol updated MPJAR-43:
--------------------------------
Fix Version: (was: 1.6)
Environment:
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-------------------
was:
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-------------------
"Fix version" is to be used by the assignee
> incorrect artifact relative path for inherited subproject pom
> -------------------------------------------------------------
>
> Key: MPJAR-43
> URL: http://jira.codehaus.org/browse/MPJAR-43
> Project: maven-jar-plugin
> Type: Bug
> Versions: 1.6
> Reporter: gax
>
> Original Estimate: 1 day
> Remaining: 1 day
>
> 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 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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org