maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Porter (JIRA)" <>
Subject [jira] Closed: (MNG-2045) Maven can't compile against sibling test-jar dependency in multiproject (Test Attached)
Date Tue, 26 Feb 2008 20:09:40 GMT


Brett Porter closed MNG-2045.

       Resolution: Fixed
    Fix Version/s:     (was: 2.0.9)

this was fixed in 2.0.8 -, it1021.tar.gz and the integration all test with it.

Please open a new issue with more specifics if you are still seeing the problem.

> Maven can't compile against sibling test-jar dependency in multiproject (Test Attached)
> ---------------------------------------------------------------------------------------
>                 Key: MNG-2045
>                 URL:
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: WinXP
>            Reporter: Brian Fox
>            Assignee: Brian Fox
>             Fix For: 2.0.8
>         Attachments: it1021.tar.gz,, MNG-2045-maven-project-r577340.patch1,
> I have 2 projects under a parent like so:
> --Parent
>         --- sample-jar
>         --- sample-jar-user
> sample-jar builds and installs a test-jar along with the normal jar. sample-jar-user
depends on the test-jar at compile time. When I build from the parent folder, the build fails
because it can't find the class. When I go to sample-jar-user and build, it works fine.
> In the attached test case, to reproduce:
> from the root folder, run mvn clean install - See it fail.
> cd sample-jar-user; mvn clean install - see it succeed.
> I remember reading somewhere that in multiprojects, maven attempts to locate the sibling
classes in the source tree instead of using the jars from the repository. I'm guessing the
problem is here that it's not looking in ../sample-jar/target/test-classes for this code,
but really one should expect this to come from the repository.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message