Skip to content

Commit 744b8e2

Browse files
committed
Remove com.sun:tools dependency for JDK 17
1 parent 764f0c8 commit 744b8e2

1 file changed

Lines changed: 2 additions & 25 deletions

File tree

‎pom.xml‎

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,7 @@
136136
<artifactId>gson</artifactId>
137137
<version>${gson.version}</version>
138138
</dependency>
139-
<dependency>
140-
<groupId>com.sun</groupId>
141-
<artifactId>tools</artifactId>
142-
<version>${maven.compiler.target}</version>
143-
<scope>system</scope>
144-
<systemPath>${java.home}/../lib/tools.jar</systemPath>
145-
</dependency>
139+
<!-- com.sun:tools removed - classes are built into JDK 9+ -->
146140
<dependency>
147141
<groupId>com.google.guava</groupId>
148142
<artifactId>guava</artifactId>
@@ -405,24 +399,7 @@
405399
</build>
406400

407401
<profiles>
408-
<profile>
409-
<id>default-tools.jar</id>
410-
<activation>
411-
<property>
412-
<name>java.vendor</name>
413-
<value>Oracle Corporation</value>
414-
</property>
415-
</activation>
416-
<dependencies>
417-
<dependency>
418-
<groupId>com.sun</groupId>
419-
<artifactId>tools</artifactId>
420-
<version>${maven.compiler.target}</version>
421-
<scope>system</scope>
422-
<systemPath>${java.home}/../lib/tools.jar</systemPath>
423-
</dependency>
424-
</dependencies>
425-
</profile>
402+
<!-- default-tools.jar profile removed - tools.jar doesn't exist in JDK 9+ -->
426403
<profile>
427404
<id>owasp</id>
428405
<activation>

0 commit comments

Comments
 (0)