Phillip Webb commented on SUREFIRE-1198:

The javadoc for {{classesDirectory}} appears to suggest that it could be used 
to specify an alternative JAR file, but this is not the case when the project 
artifact is set:

     * The path representing project <em>JAR</em> file, if exists; Otherwise 
the directory containing generated
     * classes of the project being tested. This will be included after the 
test classes in the test classpath.
    @Parameter( defaultValue = "${project.build.outputDirectory}" )
    private File classesDirectory;

> Failsafe does not allow to configure the jar file to use
> --------------------------------------------------------
>                 Key: SUREFIRE-1198
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1198
>             Project: Maven Surefire
>          Issue Type: Improvement
>            Reporter: Stephane Nicoll
> See [this Spring Boot 
> issue|https://github.com/spring-projects/spring-boot/issues/4510#issuecomment-159448634]
> It seems that SUREFIRE-855 does not allow {{target/classes}} to be used 
> anymore. Is there a reason why this behaviour was completely removed in 
> favour of only the jar file?
> It would be nice if we had an option to chose between the two (defaulting to 
> the jar)

This message was sent by Atlassian JIRA

Reply via email to