You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org> on 2012/08/18 21:43:21 UTC

[jira] (SUREFIRE-860) additionalClasspathElement doesn't work for folders with jar filers

     [ https://jira.codehaus.org/browse/SUREFIRE-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold updated SUREFIRE-860:
----------------------------------------

    Issue Type: Improvement  (was: Bug)
    
> additionalClasspathElement doesn't work for folders with jar filers
> -------------------------------------------------------------------
>
>                 Key: SUREFIRE-860
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-860
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.12
>         Environment: windows maven2 maven3
>            Reporter: necromantiarian
>
> used such config
> <version>2.12</version>
> <configuration>
>  <additionalClasspathElements>
>    <additionalClasspathElement>C:/mycompany/lib/*.jar</additionalClasspathElement>
>  </additionalClasspathElements>
> </configuration>
> wanted to include a lot of *.jar files to classpath
> observed:
> surefire.test.class.path=D:\zf\workspace\test\target\test-classes;D:\zf\workspace\test\target\classes;C:\Users\myuser\.m2\repository\junit\junit\4.10\junit-4.10.jar;C:\Users\myuser\.m2\repository\org\hamcrest\hamcrest-core\1.1\hamcrest-core-1.1.jar;C:/mycompany/lib/*.jar
> and got ClassNotFoundException
> expected:
> the classes to be found and all the jars in classpath, just like maven libs
> note:
> tried also  <additionalClasspathElement>C:/mycompany/lib/</additionalClasspathElement>
> tried older versions of plugin too
> Am i doing smth wrong ?
> please advise

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira