Signed-off-by: Olivier Lamy <oliver.lamy@gmail.com>
This commit is contained in:
parent
93be234873
commit
c6264abed7
|
@ -60,6 +60,31 @@
|
|||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-random-dependency</id>
|
||||
<phase>generate-resources</phase>
|
||||
<goals>
|
||||
<goal>copy</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifactItems>
|
||||
<artifactItem>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-engine</artifactId>
|
||||
<version>@junit.version@</version>
|
||||
<type>jar</type>
|
||||
<outputDirectory>${project.build.directory}/dependency</outputDirectory>
|
||||
<destFileName>junit-jupiter-engine.jar</destFileName>
|
||||
</artifactItem>
|
||||
</artifactItems>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
|
@ -92,6 +117,9 @@
|
|||
<goal>start</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<webApp>
|
||||
<extraClasspath>${project.build.directory}/dependency/junit-jupiter-engine.jar</extraClasspath>
|
||||
</webApp>
|
||||
<contextXml>${basedir}/src/config/context.xml</contextXml>
|
||||
<systemProperties>
|
||||
<jetty.port.file>${jetty.port.file}</jetty.port.file>
|
||||
|
|
|
@ -503,4 +503,11 @@ public class MavenWebAppContext extends WebAppContext
|
|||
LOG.warn("Problem initializing cdi", e);
|
||||
}
|
||||
}
|
||||
|
||||
// need to be overridden to avoid Maven reflection issues with super class and override method
|
||||
public void setExtraClasspath(String extraClasspath) throws IOException
|
||||
{
|
||||
super.setExtraClasspath(extraClasspath);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue