You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Bain, Sinclair" <si...@PANACYA.com> on 2004/08/23 20:36:03 UTC

Runtime Dependencies Question

Hi 
Our project has a runtime(/test-time) dependency upon 
the <xerces-2.6.1.jar>. However when executing 
'maven test:test' the 2.6.1 version is not used. It 
appears that the <xerces-2.4.0.jar> from the 
'(%MAVEN_HOME%)/lib/endorsed' is used by maven.

Ant has the 'boolean' <includeAntRuntime> property 
however I have been unable to identify an equivalent in
maven.

How can I encourage my test cases to use the xerces 2.6.1 version 
which is in the local repository and specified in the project.xml as
follows:

	...
    <dependencies>
        <dependency>
            <groupId>xerces</groupId>
            <artifactId>xerces</artifactId>
            <version>2.6.1</version>
            <type>jar</type>
            <jar>xerces-2.6.1.jar</jar>
            <properties/>
        </dependency>
		...
    </dependencies>
	...

All help and suggestions are much appreciated.

Cheers!
sinclair


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Runtime Dependencies Question

Posted by "matthew.hawthorne" <ma...@apache.org>.
Bain, Sinclair wrote:
> Ant has the 'boolean' <includeAntRuntime> property 
> however I have been unable to identify an equivalent in
> maven.
> 
> How can I encourage my test cases to use the xerces 2.6.1 version 
> which is in the local repository and specified in the project.xml as
> follows:

Try setting maven.junit.fork=true

I'm not sure if this will do it, but it's worth a shot.  Check out some 
of the other
properties for the test plugin if this doesn't help.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org