Jetty 10.0.x fix surefire arg line (to avoid locale dependent build) (#3183)
* surefire.argLine replaced by jetty.surefire.argLine Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
parent
f4cf671b27
commit
0dcdcc7baf
|
@ -22,7 +22,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine}
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-reads org.eclipse.jetty.alpn.java.server=org.eclipse.jetty.server
|
||||
</argLine>
|
||||
</configuration>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine}
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-opens org.eclipse.jetty.annotations/org.eclipse.jetty.annotations.resources=org.eclipse.jetty.plus
|
||||
</argLine>
|
||||
</configuration>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine}
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-reads org.eclipse.jetty.client=javax.servlet.api
|
||||
--add-modules java.security.jgss
|
||||
--add-modules javax.servlet.api
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine}
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-modules org.eclipse.jetty.jmx
|
||||
--add-reads org.eclipse.jetty.deploy=org.eclipse.jetty.http
|
||||
</argLine>
|
||||
|
|
|
@ -44,7 +44,10 @@
|
|||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>@{argLine} --add-modules javax.servlet.api</argLine>
|
||||
<argLine>
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-modules javax.servlet.api
|
||||
</argLine>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine}
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-reads org.eclipse.jetty.http2.client=javax.servlet.api
|
||||
--add-modules javax.servlet.api
|
||||
</argLine>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine}
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-reads org.eclipse.jetty.http2.http.client.transport=javax.servlet.api
|
||||
--add-modules javax.servlet.api
|
||||
</argLine>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine}
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-reads org.eclipse.jetty.http2.server=javax.servlet.api
|
||||
--add-modules javax.servlet.api
|
||||
</argLine>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine}
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-opens org.eclipse.jetty.jmx/org.eclipse.jetty.jmx=ALL-UNNAMED
|
||||
--add-opens org.eclipse.jetty.jmx/org.eclipse.jetty.util.log.jmx=ALL-UNNAMED
|
||||
</argLine>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine}
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--patch-module javax.servlet.api=${jetty-schemas-jar}
|
||||
</argLine>
|
||||
</configuration>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine}
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-modules javax.servlet.api
|
||||
--add-modules org.eclipse.jetty.util
|
||||
--add-modules org.eclipse.jetty.io
|
||||
|
|
|
@ -64,7 +64,10 @@
|
|||
<systemPropertyVariables>
|
||||
<mavenRepoPath>${settings.localRepository}</mavenRepoPath>
|
||||
</systemPropertyVariables>
|
||||
<argLine>@{argLine} --add-modules javax.servlet.api,org.slf4j</argLine>
|
||||
<argLine>
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-modules javax.servlet.api,org.slf4j
|
||||
</argLine>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine}
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-modules org.eclipse.jetty.jmx
|
||||
</argLine>
|
||||
<useManifestOnlyJar>false</useManifestOnlyJar>
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine}
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
--add-reads org.eclipse.jetty.websocket.javax.common=org.eclipse.jetty.websocket.javax.server
|
||||
</argLine>
|
||||
</configuration>
|
||||
|
|
6
pom.xml
6
pom.xml
|
@ -67,6 +67,8 @@
|
|||
<!-- enable or not TestTracker junit5 extension i.e log message when test method is starting -->
|
||||
<jetty.testtracker.log>false</jetty.testtracker.log>
|
||||
|
||||
<jetty.surefire.argLine>-Dfile.encoding=UTF-8 -Duser.language=en -Duser.region=US -showversion -Xmx1g -Xms1g -Xlog:gc:stderr:time,level,tags</jetty.surefire.argLine>
|
||||
|
||||
<!-- some maven plugins versions -->
|
||||
<maven.surefire.version>2.22.1</maven.surefire.version>
|
||||
<maven.compiler.plugin.version>3.8.0</maven.compiler.plugin.version>
|
||||
|
@ -590,7 +592,9 @@
|
|||
<version>${maven.surefire.version}</version>
|
||||
<configuration>
|
||||
<forkedProcessTimeoutInSeconds>3600</forkedProcessTimeoutInSeconds>
|
||||
<argLine>@{argLine} -Dfile.encoding=UTF-8 -Duser.language=en -Duser.region=US -showversion -Xmx1g -Xms1g -XX:+PrintGCDetails</argLine>
|
||||
<argLine>
|
||||
@{argLine} ${jetty.surefire.argLine}
|
||||
</argLine>
|
||||
<failIfNoTests>false</failIfNoTests>
|
||||
<forkCount>1</forkCount>
|
||||
<reuseForks>true</reuseForks> <!-- to work around crash at https://github.com/junit-team/junit5/issues/801 -->
|
||||
|
|
Loading…
Reference in New Issue