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

Dependency on test-jar is not resolved with 'package' target, must use 'install'

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

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

Description

The multi-module project looks like this:
/ipb – this is where the build is run from
/ipb-base – this guy builds a test jar, ipb-base-1.0-SNAPSHOT-tests.jar
/ipb-something, it has some tests that use ipb-base-1.0-SNAPSHOT-tests.jar so its dependency looks like this:

<!-- regular stuff from base project -->
<dependency>
<groupId>com.exigen.ipb</groupId>
<artifactId>ipb-base</artifactId>
</dependency>
<!-- stuff for unit tests from base project -->
<dependency>
<groupId>com.exigen.ipb</groupId>
<artifactId>ipb-base</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>

Both /ipb-base and /ipb-something are packaged as jars.

Now when the build is run as 'mvn clean package' it cannot resolve the dependecy as it is not in the repo.

Runing build as 'mvn clean install' does the trick however this seems to be a workaround – one would expect 'clean package' to do the job.

Issue Links

depends upon

Bug - A problem which impairs or prevents the functions of the product. MJAR-75 [PATCH] Wrong artifact type attached to the project by the test-jar goal

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

Bug - A problem which impairs or prevents the functions of the product. MNG-2877 unable to resolve attached artifacts from reactor that are not in repo. (patch applied in svn and IT tests added)

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
duplicates

Bug - A problem which impairs or prevents the functions of the product. MNG-3043 Allow 'mvn test' to work with test-jar dependencies in a reactor

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Dainius Vaznys
Vote (1)
Watch (4)

Dates

  • Created:
    29/Jun/07 4:20 AM
    Updated:
    01/Nov/08 10:08 AM
    Resolved:
    29/Oct/07 6:10 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.