You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Tran (JIRA)" <ji...@codehaus.org> on 2007/02/24 18:44:15 UTC

[jira] Commented: (SUREFIRE-117) ability to add dependency to jvm's classpath rather in surefirebooter classloader

    [ http://jira.codehaus.org/browse/SUREFIRE-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_88442 ] 

Dan Tran commented on SUREFIRE-117:
-----------------------------------

looking further, Kenney's approach of using java -jar to load a temp jar with Main-Class and Class-Path setup in manifest file is correct.
However, it is currently not working here is error when attempt to enable loadSystemClassLoader=true
<error>
[INFO] Building jar: C:\DOCUME~1\dtran\LOCALS~1\Temp\surefirebooter45181.jar
java.lang.NoClassDefFoundError: org/apache/maven/surefire/booter/SurefireBooter
Exception in thread "main"
</error>

here is the manifes file:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: 1.5.0_08-b03 (Sun Microsystems Inc.)
Main-Class: org.apache.maven.surefire.booter.SurefireBooter
Class-Path: c:\dev\maven-repo\org\apache\maven\surefire\surefire-boote
 r\2.4-SNAPSHOT\surefire-booter-2.4-SNAPSHOT.jar c:\dev\maven-repo\org
 \codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alph
 a-7.jar c:\dev\maven-repo\junit\junit\3.8.1\junit-3.8.1.jar c:\dev\ma
 ven-repo\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\ple
 xus-container-default-1.0-alpha-8.jar c:\dev\maven-repo\classworlds\c
 lassworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar c:\dev\maven-repo\
 org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar c:\dev\mave
 n-repo\org\apache\maven\surefire\surefire-api\2.4-SNAPSHOT\surefire-a
 pi-2.4-SNAPSHOT.jar c:\dev\maven-repo\commons-lang\commons-lang\2.1\c
 ommons-lang-2.1.jar C:\dev\mojo\maven-native\maven-native-api\target\
 classes/ C:\dev\mojo\maven-native\maven-native-api\target\test-classe
 s/ c:\dev\maven-repo\junit\junit\3.8.1\junit-3.8.1.jar c:\dev\maven-r
 epo\org\codehaus\plexus\plexus-container-default\1.0-alpha-9\plexus-c
 ontainer-default-1.0-alpha-9.jar c:\dev\maven-repo\classworlds\classw
 orlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar c:\dev\maven-repo\org\c
 odehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar c:\dev\maven-rep
 o\bcel\bcel\5.1\bcel-5.1.jar c:\dev\maven-repo\org\apache\maven\maven
 -plugin-api\2.0\maven-plugin-api-2.0.jar



The manifest looks good, but I am still not able to find out while it encounters
class not found exception thou

still looking....


> 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
>         Assigned To: 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