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 Surefire
  • SUREFIRE-113

surefire-providers-2.0.pom contains strange dependencies which generate error

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.3
  • Component/s: None
  • Labels:
    None

Description

This pom contains :
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>surefire-api</artifactId>
<version>${project.version}</version>
</dependency>

This generate strange error in certain case.
I have replaced with :
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-api</artifactId>
<version>2.0</version>
</dependency
And works fine.
The stack trace says
WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

[DEBUG] Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:

mvn install:install-file -DgroupId=org.apache.maven.surefire -DartifactId=surefire-api \
-Dversion=2.4.1 -Dpackaging=jar -Dfile=/path/to/file

Path to dependency:

1) dummy:dummy:jar:1.0

2) org.apache.maven.surefire:surefire-junit:jar:2.0

3) org.apache.maven.surefire:surefire-api:jar:2.4.1

org.apache.maven.surefire:surefire-api:jar:2.4.1

from the specified remote repositories:

rec-ap2 (http://57.200.214.247/maven2),
central (http://repo1.maven.org/maven2),
continuum-repo-snapshots (http://57.200.214.247/continuum-repo/),
apache.snapshots (http://svn.apache.org/maven-snapshot-repository),
rec-ap2-snapshots (http://57.200.214.247/snapshots)

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    log.txt
    30/May/06 1:05 PM
    159 kB
    Olivier Lamy
  2. Hide
    Zip Archive
    poms.zip
    30/May/06 2:34 PM
    315 kB
    Olivier Lamy
    1. XML File
      pom.xml 4 kB
    2. XML File
      dotw-api/pom.xml 4 kB
    3. XML File
      dotw-html/pom.xml 2 kB
    4. XML File
      dotw-jaxb-package/pom.xml 3 kB
    5. XML File
      dotw-site/pom.xml 2 kB
    6. XML File
      dotw-webapp/pom.xml 13 kB
    Download Zip
    Show
    Zip Archive
    poms.zip
    30/May/06 2:34 PM
    315 kB
    Olivier Lamy

Issue Links

is duplicated by

Bug - A problem which impairs or prevents the functions of the product. SUREFIRE-218 Unable to use 2.3-SNAPSHOT

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-2339 ${project.*} are interpreted in the wrong place

  • Critical - Crashes, loss of data, severe memory leak.
  • 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
Olivier Lamy added a comment - 30/May/06 1:05 PM

Attached the full stack trace.
This happend in the situation
pom.xml
module / pom.xml

Building mvn clean install from root works.
Just checkout the the module running mvn clean install then the stack trace appends.
Thanks to check and/or fix
–
Olivier

Show
Olivier Lamy added a comment - 30/May/06 1:05 PM Attached the full stack trace. This happend in the situation pom.xml module / pom.xml Building mvn clean install from root works. Just checkout the the module running mvn clean install then the stack trace appends. Thanks to check and/or fix – Olivier
Hide
Permalink
Carlos Sanchez added a comment - 30/May/06 1:12 PM

Can you attach the poms?

Show
Carlos Sanchez added a comment - 30/May/06 1:12 PM Can you attach the poms?
Hide
Permalink
Olivier Lamy added a comment - 30/May/06 1:15 PM

You want my poms ? or the surefire's in my repo ?

Show
Olivier Lamy added a comment - 30/May/06 1:15 PM You want my poms ? or the surefire's in my repo ?
Hide
Permalink
Carlos Sanchez added a comment - 30/May/06 1:37 PM

show me your poms

Show
Carlos Sanchez added a comment - 30/May/06 1:37 PM show me your poms
Hide
Permalink
Olivier Lamy added a comment - 30/May/06 2:34 PM

here my poms.

Show
Olivier Lamy added a comment - 30/May/06 2:34 PM here my poms.
Hide
Permalink
Olivier Lamy added a comment - 30/May/06 3:19 PM

The case happens when just checkout dotw-webapp module.
Not with all modules build.

Show
Olivier Lamy added a comment - 30/May/06 3:19 PM The case happens when just checkout dotw-webapp module. Not with all modules build.
Hide
Permalink
Brett Porter added a comment - 30/May/06 4:19 PM

the pom is valid. Maybe there is an issue in surefire's resolution - it'll need to be investigated. I've never seen this myself.

Show
Brett Porter added a comment - 30/May/06 4:19 PM the pom is valid. Maybe there is an issue in surefire's resolution - it'll need to be investigated. I've never seen this myself.
Hide
Permalink
Olivier Lamy added a comment - 31/May/06 2:21 AM

Hi,
Arghhh this kind of error always appends to me
IMHO, it's more a MNG issue than a surefire one.
Note, I have already seen this properties resolution trouble with transitive dependencies in some internal projects.
I don't remember the case as I believe it was something like :
pom.xml (foo:parent:1.0-SNAPSHOT)
api/pom.xml (foo:api:${project.parent.version})
impl1/pom.xml (foo:impl:${project.parent.version})

In the root pom, I defined a dependency in dependencyManagement
with foo:api:${project.version}
version in api/pom.xml and impl1/pom.xml defined with ${project.parent.version}.
a dependency in impl1/pom.xml to foo:api.
This configuration generated same trouble when using foo:impl:${version.number} in a other project.
I will try to provide a test (if enough time).
–
Olivier
Thanks for investigation my workaround is to set surefire version to 2.1.3 in the module called dotw-webapp.

Show
Olivier Lamy added a comment - 31/May/06 2:21 AM Hi, Arghhh this kind of error always appends to me IMHO, it's more a MNG issue than a surefire one. Note, I have already seen this properties resolution trouble with transitive dependencies in some internal projects. I don't remember the case as I believe it was something like : pom.xml (foo:parent:1.0-SNAPSHOT) api/pom.xml (foo:api:${project.parent.version}) impl1/pom.xml (foo:impl:${project.parent.version}) In the root pom, I defined a dependency in dependencyManagement with foo:api:${project.version} version in api/pom.xml and impl1/pom.xml defined with ${project.parent.version}. a dependency in impl1/pom.xml to foo:api. This configuration generated same trouble when using foo:impl:${version.number} in a other project. I will try to provide a test (if enough time). – Olivier Thanks for investigation my workaround is to set surefire version to 2.1.3 in the module called dotw-webapp.
Hide
Permalink
Olivier Lamy added a comment - 31/May/06 2:24 AM

I don't know if related but look at http://jira.codehaus.org/browse/MNGECLIPSE-20
I see the same magic number 2.4.1 ?
–
Olivier

Show
Olivier Lamy added a comment - 31/May/06 2:24 AM I don't know if related but look at http://jira.codehaus.org/browse/MNGECLIPSE-20 I see the same magic number 2.4.1 ? – Olivier
Hide
Permalink
Olivier Lamy added a comment - 02/Jun/06 2:34 AM

IMO this is probably related too http://jira.codehaus.org/browse/MNG-2339.
–
Olivier

Show
Olivier Lamy added a comment - 02/Jun/06 2:34 AM IMO this is probably related too http://jira.codehaus.org/browse/MNG-2339. – Olivier
Hide
Permalink
Brett Porter added a comment - 23/Jan/07 9:06 PM

this needs to be fixed in Maven itself.

We've already changed the POM to avoid the problem

Show
Brett Porter added a comment - 23/Jan/07 9:06 PM this needs to be fixed in Maven itself. We've already changed the POM to avoid the problem

People

  • Assignee:
    Brett Porter
    Reporter:
    Olivier Lamy
Vote (0)
Watch (0)

Dates

  • Created:
    30/May/06 1:03 PM
    Updated:
    23/Jan/07 9:06 PM
    Resolved:
    23/Jan/07 9:06 PM
  • 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.