Skip to content

Commit 31d05f6

Browse files
committed
Some pom changes to be possible to build with OpenJDK 11
1 parent 7bb857d commit 31d05f6

2 files changed

Lines changed: 33 additions & 6 deletions

File tree

spring-rest-data-exploit/pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,46 @@
5151
<groupId>org.apache.httpcomponents</groupId>
5252
<artifactId>httpclient</artifactId>
5353
</dependency>
54+
55+
<!--To be possible build with OpenJDK 11-->
56+
<dependency>
57+
<groupId>javax.xml.bind</groupId>
58+
<artifactId>jaxb-api</artifactId>
59+
<version>2.2.11</version>
60+
</dependency>
61+
<dependency>
62+
<groupId>com.sun.xml.bind</groupId>
63+
<artifactId>jaxb-core</artifactId>
64+
<version>2.2.11</version>
65+
</dependency>
66+
<dependency>
67+
<groupId>com.sun.xml.bind</groupId>
68+
<artifactId>jaxb-impl</artifactId>
69+
<version>2.2.11</version>
70+
</dependency>
71+
<dependency>
72+
<groupId>javax.activation</groupId>
73+
<artifactId>activation</artifactId>
74+
<version>1.1.1</version>
75+
</dependency>
76+
<!--end of dependencies needed to build with openJDK 11-->
5477
</dependencies>
5578

5679
<build>
5780
<plugins>
5881
<plugin>
5982
<groupId>org.springframework.boot</groupId>
6083
<artifactId>spring-boot-maven-plugin</artifactId>
84+
<executions>
85+
<execution>
86+
<goals>
87+
<goal>repackage</goal>
88+
</goals>
89+
<configuration>
90+
<mainClass>com.pavelsklenar.spring.exploit.example.SpringRestDataExploitExampleApplication</mainClass>
91+
</configuration>
92+
</execution>
93+
</executions>
6194
</plugin>
6295
<plugin>
6396
<groupId>org.apache.maven.plugins</groupId>

spring-rest-data-exploit/src/main/java/com/pavelsklenar/spring/exploit/example/Spring data exploit.http

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)