jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-3768

[regression] Class folder system dependency doesn't work anymore

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 2.1.0-M1
  • Fix Version/s: None
  • Component/s: Artifacts and Repositories
  • Labels:
    None
  • Environment:
    Any
  • Complexity:
    Intermediate

Description

My project use system dependencies pointing to class folders.

<dependency>
<groupId>class-folder</groupId>
<artifactId>class-folder</artifactId>
<version>N</version>
<scope>system</scope>
<systemPath>C:/appli/classes</systemPath>
</dependency>

Such class folders dependencies worked fine with maven 2.0.7
They are needed by my project as it relies on a legacy application not packaged into a jar file.

Root cause is located in file DefaultArtifactResolver.java:

if ( !systemFile.isFile() )

{ throw new ArtifactNotFoundException( "System artifact: " + artifact + " is not a file: " + systemFile, artifact ); }
  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    mng-3288.zip
    26/Sep/08 9:55 AM
    3 kB
    Benjamin Bentmann
    1. Java Source File
      core-it-suite\src\test\java\org\apache\maven\it\MavenITmng3288SystemScopeDirTest.java 2 kB
    2. Java Archive File
      core-it-suite\src\test\resources\mng-3288\lib\test.jar 0.3 kB
    3. XML File
      core-it-suite\src\test\resources\mng-3288\pom.xml 1 kB
    Download Zip
    Show
    Zip Archive
    mng-3288.zip
    26/Sep/08 9:55 AM
    3 kB
    Benjamin Bentmann
  2. Text File
    MNG-3768.patch.txt
    26/Sep/08 5:28 AM
    1.0 kB
    Francois Loison
  3. Hide
    Zip Archive
    mng-3768.zip
    26/Sep/08 9:55 AM
    2 kB
    Benjamin Bentmann
    1. Java Source File
      core-it-suite\src\test\java\org\apache\maven\it\MavenITmng3768SystemScopeClassDirTest.java 2 kB
    2. File
      core-it-suite\src\test\resources\mng-3768\classes\test.properties 0.0 kB
    3. XML File
      core-it-suite\src\test\resources\mng-3768\pom.xml 2 kB
    Download Zip
    Show
    Zip Archive
    mng-3768.zip
    26/Sep/08 9:55 AM
    2 kB
    Benjamin Bentmann
  4. Text File
    patch-MNG-3768-distribution.txt
    12/Oct/08 8:31 AM
    2 kB
    Francois Loison

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MNG-3288 Invalid systemPath allows build to continue--failing in later phase.

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Francois Loison added a comment - 26/Sep/08 5:28 AM

Patch proposal correcting issue.

Show
Francois Loison added a comment - 26/Sep/08 5:28 AM Patch proposal correcting issue.
Hide
Permalink
Benjamin Bentmann added a comment - 26/Sep/08 5:30 AM

Use case conflicts with MNG-3288

Show
Benjamin Bentmann added a comment - 26/Sep/08 5:30 AM Use case conflicts with MNG-3288
Hide
Permalink
Benjamin Bentmann added a comment - 26/Sep/08 9:55 AM

Integrations tests, one for each possible outcome of this.

Show
Benjamin Bentmann added a comment - 26/Sep/08 9:55 AM Integrations tests, one for each possible outcome of this.
Hide
Permalink
Francois Loison added a comment - 26/Sep/08 2:34 PM

Ok, I'll test the 2 integration tests you wrote and a a specific test for this use case.

Regards,
François

Show
Francois Loison added a comment - 26/Sep/08 2:34 PM Ok, I'll test the 2 integration tests you wrote and a a specific test for this use case. Regards, François
Hide
Permalink
Francois Loison added a comment - 12/Oct/08 8:27 AM

I tested fix OK using integration tests Benjamin provided.

I applied fix on:
components/branches/maven-2.1.x/maven-artifact-manager/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

I added Benjamin integration tests on:
core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java

New test case pass with fix.
I tested also that new test case fails without fix.

Other test results are unchanged with or without fix.

Regards,
François

Show
Francois Loison added a comment - 12/Oct/08 8:27 AM I tested fix OK using integration tests Benjamin provided. I applied fix on: components/branches/maven-2.1.x/maven-artifact-manager/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java I added Benjamin integration tests on: core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java New test case pass with fix. I tested also that new test case fails without fix. Other test results are unchanged with or without fix. Regards, François
Hide
Permalink
Francois Loison added a comment - 12/Oct/08 8:31 AM

Patch for bug MNG-3768 applicable to http://svn.apache.org/repos/asf/maven/components/branches/maven-2.1.x

Show
Francois Loison added a comment - 12/Oct/08 8:31 AM Patch for bug MNG-3768 applicable to http://svn.apache.org/repos/asf/maven/components/branches/maven-2.1.x
Hide
Permalink
Brett Porter added a comment - 06/Feb/09 4:11 AM

Francois... when I apply that patch, 3288 still fails. The cases are certainly incompatible.

Is there really no way you can package those classes into an artifact?

Show
Brett Porter added a comment - 06/Feb/09 4:11 AM Francois... when I apply that patch, 3288 still fails. The cases are certainly incompatible. Is there really no way you can package those classes into an artifact?
Hide
Permalink
Brett Porter added a comment - 12/Jan/10 10:52 AM

since there's no response and no votes, and the length of time this release has been out there - I think we should stick with the behaviour of MNG-3288

Show
Brett Porter added a comment - 12/Jan/10 10:52 AM since there's no response and no votes, and the length of time this release has been out there - I think we should stick with the behaviour of MNG-3288

People

  • Assignee:
    Unassigned
    Reporter:
    Francois Loison
Vote (0)
Watch (0)

Dates

  • Created:
    26/Sep/08 5:16 AM
    Updated:
    12/Jan/10 10:52 AM
    Resolved:
    12/Jan/10 10:52 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.