In your test case you should be able to do this. Enumeration<URL> enumeration = getClass().getClassLoader().getResources(resource);
HTH Jim On 9/26/07, Guillaume Boucherie <[EMAIL PROTECTED]> wrote: > > Oh I'm sorry I'm not clear. > In my project I have a functionality that search xml files with the same > name in the classpath and merge it before read it. > And to test it I must have jars that just contains xml file, I don't want > to > create a maven project just for this type of jar. > > -- > CletteBou > clettebou.miniville.fr > > > 2007/9/26, Tim Kettler <[EMAIL PROTECTED]>: > > > > Hi, > > > > you want <scope>test</scope> dependencies. From [1]: > > > > "test - this scope indicates that the dependency is not required for > > normal use of the application, and is only available for the test > > compilation and execution phases." > > > > -Tim > > > > [1] > > > > > http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html > > > > Guillaume Boucherie schrieb: > > > Hi, > > > > > > In the maven1 test plugin it's possible to add jar's in the classpath > > with > > > the properties maven.test.classpath > > > Does maven2 surefire plugin provide a way do to the same ? > > > Thanks > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >