[ 
https://issues.apache.org/jira/browse/SUREFIRE-1861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17237692#comment-17237692
 ] 

Ernst Reissner commented on SUREFIRE-1861:
------------------------------------------

You wont believe: I found this site before but to be honest: cannot understand 
it really.

It seems as if it talks about technical realization.

It is not a user documentation, is it?

I tried several configurations also with system class loader.. No success.

I tried also

```

mvn -X integraton-test

```

and the debugging looks as follows:

```

{color:#000000}[{color}{color:#54ffff}DEBUG{color}{color:#000000}] Configuring 
mojo org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M5:verify from plugin 
realm ClassRealm[plugin>org.apach{color}
e.maven.plugins:maven-failsafe-plugin:3.0.0-M5, parent: 
jdk.internal.loader.ClassLoaders$AppClassLoader@277050dc] 
[{color:#54ffff}DEBUG{color}{color:#000000}] Configuring mojo 
'org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M5:verify' with basic 
configurator --> {color}
[{color:#54ffff}DEBUG{color}{color:#000000}]   (s) basedir = 
/home/ernst/OpenSource/OctaveInJavaGit/octaveInJava/javaoctave {color}
[{color:#54ffff}DEBUG{color}{color:#000000}]   (s) reportsDirectory = 
/home/ernst/OpenSource/OctaveInJavaGit/octaveInJava/javaoctave/target/failsafe-reports
 {color}
[{color:#54ffff}DEBUG{color}{color:#000000}]   (f) session = 
org.apache.maven.execution.MavenSession@7df76d99 {color}
[{color:#54ffff}DEBUG{color}{color:#000000}]   (s) skip = false {color}
[{color:#54ffff}DEBUG{color}{color:#000000}]   (f) summaryFile = 
/home/ernst/OpenSource/OctaveInJavaGit/octaveInJava/javaoctave/target/failsafe-reports/failsafe-summary.x{color}
ml 
[{color:#54ffff}DEBUG{color}{color:#000000}]   (s) testClassesDirectory = 
/home/ernst/OpenSource/OctaveInJavaGit/octaveInJava/javaoctave/target/test-classes
 {color}
[{color:#54ffff}DEBUG{color}{color:#000000}]   (s) testFailureIgnore = false 
{color}
[{color:#54ffff}DEBUG{color}{color:#000000}] -- end configuration -- {color}
[{color:#54ffff}DEBUG{color}{color:#000000}] Failsafe report directory: 
/home/ernst/OpenSource/OctaveInJavaGit/octaveInJava/javaoctave/target/failsafe-reports
 {color}


```

The point isthat the `testClassesDirectory` is not the jar which has been 
created. 

But this I would expect

> failsafe shall use jar
> ----------------------
>
>                 Key: SUREFIRE-1861
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1861
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Failsafe Plugin
>    Affects Versions: 3.0.0-M5
>         Environment: all 
>            Reporter: Ernst Reissner
>            Priority: Critical
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> To run tests based on information stored in jar only but not in 
> testClassesDirectory,
> the plugin shall load classes from the jar instead.
> That way, one could check also presence of vendor information,
> or versions, or git state or whatsoever meta information
> to be supplied to the user and stored in the jar.
>  
> The jar is always available though since we are in a late lifecycle phase.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to