I believe that this has been fixed by
http://jira.codehaus.org/browse/MNG-2877 in Maven 2.0.6.

-----Original Message-----
From: Jim Bethancourt [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 24, 2007 5:02 PM
To: Maven Users List; Maven Developers List
Subject: Re: Unit Test inheritance in a multi-pom project?

Hi GreJ,
I believe that is correct.  A mvn install must be done in order to make
the
test jars available on the classpath to compile against for the
inherited
tests.  I agree that it is unfortunate that an install must be done in
order
to run the tests.

Maven developers,
Should I submit a feature request on Jira?  It would be something to the
effect like "Test jars / test-classes source directories need to be
available on the classpath within the reactor during the test-compile
phase
so users don't need to perform an install in order to compile against
code
in other test-jars / test-classes source directories"  How's that sound?

It would also be handy to have transitive dependency management of the
test-jars, but that should probably be for another feature request.

Thanks,
Jim

On 3/23/07, GreJ <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Thanks for your answer,
>
> I do several tests, and in fact it doesn't work without install. The
test
> jar really needed to be installed in the local repository(?).
>
> This is my project layout
>
> -Root
> +sslServer
> +client
>
> client must use the test-jar generated by the sslServer module. So
here is
> the dependencies of the client module :
> <dependencies>
>                 <dependency>
>                         <artifactId>sslServer</artifactId>
>                         <groupId>org.inpres</groupId>
>                         <version>1.0</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.inpres</groupId>
>                         <artifactId>aw-sslServer</artifactId>
>                         <version>1.0</version>
>                         <type>test-jar</type>
>                 </dependency>
>         </dependencies>
>
> There is no problem to resolvethe dependency to the
org.inpres:sslServer.
> By
> compile, or package, there is no problem. But the test-jar ist not
found
> while no install is called.
> It's pitty to need to run the install and so to install all the jars
if we
> just need to compile the tests :(
> Is there a praticular reason that the sslServer dependency is found by
> compile or packaging, but not the tests?
> My aim is just to compile or run the tests, where the tests of the
client
> need classes from the sslServer...
> --
> View this message in context:
>
http://www.nabble.com/Unit-Test-inheritance-in-a-multi-pom-project--tf34
42738s177.html#a9644535
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to