maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Rosenvold (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (SUREFIRE-694) NPE when empty additionalClasspathElement
Date Thu, 03 Mar 2011 21:20:29 GMT

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

Kristian Rosenvold updated SUREFIRE-694:
----------------------------------------

    Fix Version/s:     (was: 2.7.3)
                   2.8

> NPE when empty additionalClasspathElement
> -----------------------------------------
>
>                 Key: SUREFIRE-694
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-694
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: JUnit 3.x support
>    Affects Versions: 2.7.2
>            Reporter: Michiel Kalkman
>            Assignee: Kristian Rosenvold
>            Priority: Trivial
>             Fix For: 2.8
>
>         Attachments: SUREFIRE-694.patch
>
>
> Just add to your pom something like:
>   <build>
>     <plugins>
>       <plugin>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <version>2.7.2</version>
>         <configuration>
>         <additionalClasspathElements>
>           <additionalClasspathElement>  </additionalClasspathElement>
>          </additionalClasspathElements>
> or
>   <additionalClasspathElement>${abc}</additionalClasspathElement>
> where ${abc} does not resolve.
> This results in a npe:
> [INFO] Trace
> java.lang.NullPointerException
>   at java.util.Hashtable.put(Hashtable.java:394)
>   at java.util.Properties.setProperty(Properties.java:143)
>   at org.apache.maven.surefire.booter.Classpath.setForkProperties(Classpath.java:139)
>   at org.apache.maven.surefire.booter.ClasspathConfiguration.setForkProperties(ClasspathConfiguration.java:89)
>   at org.apache.maven.plugin.surefire.booterclient.BooterSerializer.serialize(BooterSerializer.java:79)
>   at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:180)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message