You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/05/08 00:53:56 UTC

[jira] Closed: (MAVEN-1254) artifact relative path not correctly computed when override is on

Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Fri, 7 May 2004 6:52 PM

cannot reproduce: run 
maven -p src/test/touchstone-tests/project.xml touchstone-tests
and it works

how are you making the directory change without changing user.dir?
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1254

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1254
    Summary: artifact relative path not correctly computed when override is on
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: CANNOT REPRODUCE

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             core
   Fix Fors:
             1.0-rc3
   Versions:
             1.0-rc3

   Assignee: 
   Reporter: gilles dodinet

    Created: Sun, 2 May 2004 10:56 AM
    Updated: Fri, 7 May 2004 6:52 PM

Description:
line 77 in ArtifactListBuilder is :
artifact.setPath( new File( mavenJarProperty ).getAbsolutePath() );

this assumes project.xml is located in user.dir. thus if running from elsewhere, we have to explicitely change, then restore, user.dir property. 

i think this should be corrected by something like : 
artifact.setPath( new File( project.getFile().getParentFile(), mavenJarProperty ).getAbsolutePath() );


-- gd



---------------------------------------------------------------------
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org