[JAVA-20622] Upgraded spring-web-modules to jdk9-and-above profile + … (#14154)

* [JAVA-20622] Upgraded spring-web-modules to jdk9-and-above profile + minor clean up

* [JAVA-20622] Fixed issue at spring-freemarker module
This commit is contained in:
panos-kakos 2023-05-31 19:58:19 +03:00 committed by GitHub
parent e917196734
commit 6ca8c123c5
15 changed files with 98 additions and 25 deletions

View File

@ -430,7 +430,6 @@
<module>spring-soap</module>
<module>spring-static-resources</module>
<module>spring-swagger-codegen</module>
<module>spring-web-modules</module>
<module>testing-modules</module>
<module>video-tutorials</module>
</modules>
@ -604,7 +603,6 @@
<module>spring-soap</module>
<module>spring-static-resources</module>
<module>spring-swagger-codegen</module>
<module>spring-web-modules</module>
<module>testing-modules</module>
<module>video-tutorials</module>
</modules>
@ -927,6 +925,7 @@
<module>spring-threads</module>
<module>spring-vault</module>
<module>spring-websockets</module>
<module>spring-web-modules</module>
<module>static-analysis</module>
<module>tensorflow-java</module>
<module>vertx-modules</module>
@ -1189,6 +1188,7 @@
<module>spring-threads</module>
<module>spring-vault</module>
<module>spring-websockets</module>
<module>spring-web-modules</module>
<module>static-analysis</module>
<module>tensorflow-java</module>
<module>vertx-modules</module>

View File

@ -55,9 +55,23 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<spring.version>5.0.8.RELEASE</spring.version>
<freemarker.version>2.3.28</freemarker.version>
<freemarker.version>2.3.32</freemarker.version>
<failOnMissingWebXml>false</failOnMissingWebXml>
<spring-boot.version>1.5.10.RELEASE</spring-boot.version>
</properties>

View File

@ -136,7 +136,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<warSourceDirectory>src/main/webapp</warSourceDirectory>
<warName>springMvcSimple</warName>
@ -149,8 +148,6 @@
</build>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<hibernate-validator.version>6.0.10.Final</hibernate-validator.version>
<deploy-path>enter-location-of-server</deploy-path>
<org.thymeleaf-version>3.0.11.RELEASE</org.thymeleaf-version>

View File

@ -41,14 +41,18 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.2</version>
<version>${commons-io.version}</version>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>2.7.0</version>
<version>${json-path.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>${jaxb-runtime.version}</version>
</dependency>
</dependencies>
<build>
@ -65,4 +69,10 @@
</plugins>
</build>
<properties>
<commons-io.version>1.3.2</commons-io.version>
<json-path.version>2.7.0</json-path.version>
<jaxb-runtime.version>2.3.5</jaxb-runtime.version>
</properties>
</project>

View File

@ -39,6 +39,11 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>${jaxb-runtime.version}</version>
</dependency>
</dependencies>
<build>
@ -55,4 +60,8 @@
</plugins>
</build>
<properties>
<jaxb-runtime.version>2.3.5</jaxb-runtime.version>
</properties>
</project>

View File

@ -124,7 +124,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -68,6 +68,11 @@
<version>${spring-boot-starter-test.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${javax.annotation-api.version}</version>
</dependency>
</dependencies>
<profiles>
@ -83,7 +88,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<warSourceDirectory>src/main/webapp</warSourceDirectory>
<warName>spring-mvc-forms</warName>
@ -101,6 +105,7 @@
<hibernate-validator.version>6.0.10.Final</hibernate-validator.version>
<hibernate.version>5.2.5.Final</hibernate.version>
<mysql-connector-java.version>6.0.6</mysql-connector-java.version>
<javax.annotation-api.version>1.3.2</javax.annotation-api.version>
</properties>
</project>

View File

@ -36,6 +36,11 @@
<artifactId>commons-io</artifactId>
<version>${commons-io.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>${jaxb-runtime.version}</version>
</dependency>
</dependencies>
<build>
@ -51,6 +56,7 @@
<properties>
<javax.version>4.0.1</javax.version>
<spring.mvc.version>5.2.2.RELEASE</spring.mvc.version>
<jaxb-runtime.version>2.3.5</jaxb-runtime.version>
</properties>
</project>

View File

@ -126,7 +126,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
@ -227,7 +226,6 @@
<httpclient.version>4.5.2</httpclient.version>
<net.sourceforge.htmlunit>2.23</net.sourceforge.htmlunit>
<!-- maven plugins -->
<maven-war-plugin.version>3.2.2</maven-war-plugin.version>
<maven-resources-plugin.version>2.7</maven-resources-plugin.version>
<cargo-maven2-plugin.version>1.6.1</cargo-maven2-plugin.version>
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>

View File

@ -88,11 +88,19 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -83,16 +83,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<warSourceDirectory>src/main/webapp</warSourceDirectory>
<warName>spring-mvc-views</warName>

View File

@ -71,7 +71,7 @@
<plugin>
<groupId>org.apache.tomee.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>8.0.1</version>
<version>${tomee-maven-plugin.version}</version>
<configuration>
<tomeeHttpPort>8080</tomeeHttpPort>
<context>spring-mvc-webflow</context>
@ -91,11 +91,19 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>
@ -110,6 +118,7 @@
<maven-resources-plugin.version>2.7</maven-resources-plugin.version>
<cargo-maven2-plugin.version>1.6.1</cargo-maven2-plugin.version>
<spring-boot-starter-test.version>1.5.10.RELEASE</spring-boot-starter-test.version>
<tomee-maven-plugin.version>8.0.1</tomee-maven-plugin.version>
</properties>
</project>

View File

@ -81,7 +81,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -119,7 +119,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -107,7 +107,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>