You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "fabrizio giustina (JIRA)" <ji...@codehaus.org> on 2005/10/31 17:21:45 UTC

[jira] Created: (MNG-1379) Wrong path for artifacts with system scope

Wrong path for artifacts with system scope
------------------------------------------

         Key: MNG-1379
         URL: http://jira.codehaus.org/browse/MNG-1379
     Project: Maven 2
        Type: Bug
  Components: maven-core  
    Versions: 2.0    
 Reporter: fabrizio giustina



For system dependencies artifact.getFile() returns a wrong file. While dependency.getSystemPath() correctly returns the user-set path, artifact.getPath always returns the path in the local repository.

For example a dependency with system path = "/test.jar" will result in:
dependency.getSystemPath() = /test.jar
artifact.getFile().getAbsolutePath()= M2_REPO/groupid/artifactid/version/artifactid-1.0.jar

-- 
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


[jira] Updated: (MNG-1379) Wrong path for artifacts with system scope

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1379?page=all ]

John Casey updated MNG-1379:
----------------------------

    Fix Version:     (was: 2.0.1)
                 2.0.2

> Wrong path for artifacts with system scope
> ------------------------------------------
>
>          Key: MNG-1379
>          URL: http://jira.codehaus.org/browse/MNG-1379
>      Project: Maven 2
>         Type: Bug
>   Components: Plugins and Lifecycle
>     Versions: 2.0
>     Reporter: fabrizio giustina
>      Fix For: 2.0.1

>
>
> For system dependencies artifact.getFile() returns a wrong file. While dependency.getSystemPath() correctly returns the user-set path, artifact.getPath always returns the path in the local repository.
> For example a dependency with system path = "/test.jar" will result in:
> dependency.getSystemPath() = /test.jar
> artifact.getFile().getAbsolutePath()= M2_REPO/groupid/artifactid/version/artifactid-1.0.jar

-- 
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


[jira] Updated: (MNG-1379) Wrong path for artifacts with system scope

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1379?page=all ]

John Casey updated MNG-1379:
----------------------------

    Fix Version:     (was: 2.0.2)
                 2.0.1

will take a glance at this before releasing...

> Wrong path for artifacts with system scope
> ------------------------------------------
>
>          Key: MNG-1379
>          URL: http://jira.codehaus.org/browse/MNG-1379
>      Project: Maven 2
>         Type: Bug
>   Components: Plugins and Lifecycle
>     Versions: 2.0
>     Reporter: fabrizio giustina
>      Fix For: 2.0.1

>
>
> For system dependencies artifact.getFile() returns a wrong file. While dependency.getSystemPath() correctly returns the user-set path, artifact.getPath always returns the path in the local repository.
> For example a dependency with system path = "/test.jar" will result in:
> dependency.getSystemPath() = /test.jar
> artifact.getFile().getAbsolutePath()= M2_REPO/groupid/artifactid/version/artifactid-1.0.jar

-- 
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


[jira] Updated: (MNG-1379) Wrong path for artifacts with system scope

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1379?page=all ]

Brett Porter updated MNG-1379:
------------------------------

    Fix Version:     (was: 2.0.1)
                 2.0.2

> Wrong path for artifacts with system scope
> ------------------------------------------
>
>          Key: MNG-1379
>          URL: http://jira.codehaus.org/browse/MNG-1379
>      Project: Maven 2
>         Type: Bug

>   Components: Plugins and Lifecycle
>     Versions: 2.0
>     Reporter: fabrizio giustina
>      Fix For: 2.0.2

>
>
> For system dependencies artifact.getFile() returns a wrong file. While dependency.getSystemPath() correctly returns the user-set path, artifact.getPath always returns the path in the local repository.
> For example a dependency with system path = "/test.jar" will result in:
> dependency.getSystemPath() = /test.jar
> artifact.getFile().getAbsolutePath()= M2_REPO/groupid/artifactid/version/artifactid-1.0.jar

-- 
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


[jira] Commented: (MNG-1379) Wrong path for artifacts with system scope

Posted by "fabrizio giustina (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1379?page=comments#action_50602 ] 

fabrizio giustina commented on MNG-1379:
----------------------------------------

This is still broken in the continuum m2-20051110.160001 build.
Test #8 in eclipse plugin fails when commenting out the replacement of paths for system scoped artifacts.


> Wrong path for artifacts with system scope
> ------------------------------------------
>
>          Key: MNG-1379
>          URL: http://jira.codehaus.org/browse/MNG-1379
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>     Reporter: fabrizio giustina
>      Fix For: 2.0.1

>
>
> For system dependencies artifact.getFile() returns a wrong file. While dependency.getSystemPath() correctly returns the user-set path, artifact.getPath always returns the path in the local repository.
> For example a dependency with system path = "/test.jar" will result in:
> dependency.getSystemPath() = /test.jar
> artifact.getFile().getAbsolutePath()= M2_REPO/groupid/artifactid/version/artifactid-1.0.jar

-- 
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


[jira] Updated: (MNG-1379) Wrong path for artifacts with system scope

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1379?page=all ]

John Casey updated MNG-1379:
----------------------------

    Fix Version:     (was: 2.0.3)
                 2.0.4

> Wrong path for artifacts with system scope
> ------------------------------------------
>
>          Key: MNG-1379
>          URL: http://jira.codehaus.org/browse/MNG-1379
>      Project: Maven 2
>         Type: Bug

>   Components: Plugins and Lifecycle
>     Versions: 2.0
>     Reporter: fabrizio giustina
>      Fix For: 2.0.4

>
>
> For system dependencies artifact.getFile() returns a wrong file. While dependency.getSystemPath() correctly returns the user-set path, artifact.getPath always returns the path in the local repository.
> For example a dependency with system path = "/test.jar" will result in:
> dependency.getSystemPath() = /test.jar
> artifact.getFile().getAbsolutePath()= M2_REPO/groupid/artifactid/version/artifactid-1.0.jar

-- 
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


[jira] Commented: (MNG-1379) Wrong path for artifacts with system scope

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1379?page=comments#action_50258 ] 

John Casey commented on MNG-1379:
---------------------------------

is this a problem with the eclipse plugin??

> Wrong path for artifacts with system scope
> ------------------------------------------
>
>          Key: MNG-1379
>          URL: http://jira.codehaus.org/browse/MNG-1379
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>     Reporter: fabrizio giustina
>      Fix For: 2.0.1

>
>
> For system dependencies artifact.getFile() returns a wrong file. While dependency.getSystemPath() correctly returns the user-set path, artifact.getPath always returns the path in the local repository.
> For example a dependency with system path = "/test.jar" will result in:
> dependency.getSystemPath() = /test.jar
> artifact.getFile().getAbsolutePath()= M2_REPO/groupid/artifactid/version/artifactid-1.0.jar

-- 
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


[jira] Updated: (MNG-1379) Wrong path for artifacts with system scope

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1379?page=all ]

Brett Porter updated MNG-1379:
------------------------------

    Description: 
For system dependencies artifact.getFile() returns a wrong file. While dependency.getSystemPath() correctly returns the user-set path, artifact.getPath always returns the path in the local repository.

For example a dependency with system path = "/test.jar" will result in:
dependency.getSystemPath() = /test.jar
artifact.getFile().getAbsolutePath()= M2_REPO/groupid/artifactid/version/artifactid-1.0.jar

  was:

For system dependencies artifact.getFile() returns a wrong file. While dependency.getSystemPath() correctly returns the user-set path, artifact.getPath always returns the path in the local repository.

For example a dependency with system path = "/test.jar" will result in:
dependency.getSystemPath() = /test.jar
artifact.getFile().getAbsolutePath()= M2_REPO/groupid/artifactid/version/artifactid-1.0.jar

    Fix Version: 2.0.1
    Environment: 

> Wrong path for artifacts with system scope
> ------------------------------------------
>
>          Key: MNG-1379
>          URL: http://jira.codehaus.org/browse/MNG-1379
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>     Reporter: fabrizio giustina
>      Fix For: 2.0.1

>
>
> For system dependencies artifact.getFile() returns a wrong file. While dependency.getSystemPath() correctly returns the user-set path, artifact.getPath always returns the path in the local repository.
> For example a dependency with system path = "/test.jar" will result in:
> dependency.getSystemPath() = /test.jar
> artifact.getFile().getAbsolutePath()= M2_REPO/groupid/artifactid/version/artifactid-1.0.jar

-- 
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


[jira] Commented: (MNG-1379) Wrong path for artifacts with system scope

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1379?page=comments#action_50260 ] 

John Casey commented on MNG-1379:
---------------------------------

I just tested this with a (somewhat) out-of-date 2.0-beta-3-SNAPSHOT build of the maven-eclipse-plugin, and from what I could tell of the .classpath file, the system dependency was resolved to the correct file.

I'll wait a couple of days to see if anyone else can contradict the results I produced, then close it FIXED.

My POM:

<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.apache.maven.it</groupId>
  <artifactId>mng-1379</artifactId>
  <version>1.0-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>java</groupId>
      <artifactId>tools</artifactId>
      <version>1.4</version>
      <systemPath>${java.home}/../lib/tools.jar</systemPath>
      <scope>system</scope>
    </dependency>
  </dependencies>
</project>


> Wrong path for artifacts with system scope
> ------------------------------------------
>
>          Key: MNG-1379
>          URL: http://jira.codehaus.org/browse/MNG-1379
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>     Reporter: fabrizio giustina
>      Fix For: 2.0.1

>
>
> For system dependencies artifact.getFile() returns a wrong file. While dependency.getSystemPath() correctly returns the user-set path, artifact.getPath always returns the path in the local repository.
> For example a dependency with system path = "/test.jar" will result in:
> dependency.getSystemPath() = /test.jar
> artifact.getFile().getAbsolutePath()= M2_REPO/groupid/artifactid/version/artifactid-1.0.jar

-- 
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


[jira] Commented: (MNG-1379) Wrong path for artifacts with system scope

Posted by "fabrizio giustina (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1379?page=comments#action_50291 ] 

fabrizio giustina commented on MNG-1379:
----------------------------------------

The eclipse plugin in svn has been modified by replacing the path for system-scope artifacts with the path returned by dependency.getSystemPath().

You can check if everything is ok by getting the latest version from svn and commenting out the content of the fixSystemScopeArtifacts() method in EclipseUtils. Test #8 is related to this bug.
Has this been fixed in maven core? Which revision?

> Wrong path for artifacts with system scope
> ------------------------------------------
>
>          Key: MNG-1379
>          URL: http://jira.codehaus.org/browse/MNG-1379
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>     Reporter: fabrizio giustina
>      Fix For: 2.0.1

>
>
> For system dependencies artifact.getFile() returns a wrong file. While dependency.getSystemPath() correctly returns the user-set path, artifact.getPath always returns the path in the local repository.
> For example a dependency with system path = "/test.jar" will result in:
> dependency.getSystemPath() = /test.jar
> artifact.getFile().getAbsolutePath()= M2_REPO/groupid/artifactid/version/artifactid-1.0.jar

-- 
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