[
http://jira.codehaus.org/browse/SUREFIRE-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103621
]
Nick Bower commented on SUREFIRE-117:
-------------------------------------
I've also encountered the need to load resources from the classpath in unit
tests so gave the latest plugin (2.3) and the <useSystemClassLoader>
configuration a try but ran into this error;
[INFO] Surefire report directory: c:\Documents and Settings\nick\workspace\DataF
eeds\target\surefire-reports
[INFO] Building jar: c:\DOCUME~1\nick\LOCALS~1\Temp\surefirebooter59155.jar
java.lang.NoClassDefFoundError: org/apache/maven/surefire/booter/SurefireBooter
Exception in thread "main"
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
I'm using XP.
> ability to add dependency to jvm's classpath rather in surefirebooter
> classloader
> ---------------------------------------------------------------------------------
>
> Key: SUREFIRE-117
> URL: http://jira.codehaus.org/browse/SUREFIRE-117
> Project: Maven Surefire
> Issue Type: Bug
> Affects Versions: 2.0 (2.2 plugin)
> Environment: xp
> Reporter: Dan Tran
> Assignee: Kenney Westerhof
> Fix For: 2.4
>
> Attachments: MSUREFIRE-121-booter.patch, MSUREFIRE-121.plugin.patch,
> MSUREFIRE-121.plugin.patch2, MSUREFIRE-121.plugin.patch3
>
>
> I have a usecase where i have a jar file got loaded by -Xbootclasspath, that
> jar file then loads classes from another jar ( my dependency)
> expected in the classpath.
> The problem is that surefire plugin does not add my dependencies at JVM
> commanline thru -classpath option, but after the JVM starts
--
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