提交 e9c31867 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Don't try to find tools.jar on Java 9+

上级 db69a996
...@@ -131,20 +131,18 @@ ...@@ -131,20 +131,18 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- END TEST DEPENDENCIES !--> <!-- END TEST DEPENDENCIES !-->
<!-- JDK dependencies -->
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.7</version>
<scope>system</scope>
<systemPath>${tools.jar}</systemPath>
</dependency>
</dependencies> </dependencies>
<!-- The test code creates proxy files using javac or tools.jar. Through maven we need to tell it <!-- The test code creates proxy files using javac or tools.jar. Through maven we need to tell it
where to possibly find tools.jar and annoyingly its called classes.jar on OSX --> where to possibly find tools.jar and annoyingly its called classes.jar on OSX -->
<profiles> <profiles>
<profile>
<id>jigsaw-jdk</id>
<activation>
<jdk>[1.9,)</jdk>
</activation>
<dependencies/>
</profile>
<profile> <profile>
<id>default-tools.jar</id> <id>default-tools.jar</id>
<activation> <activation>
...@@ -152,9 +150,15 @@ ...@@ -152,9 +150,15 @@
<exists>${java.home}/../lib/tools.jar</exists> <exists>${java.home}/../lib/tools.jar</exists>
</file> </file>
</activation> </activation>
<properties> <dependencies>
<tools.jar>${java.home}/../lib/tools.jar</tools.jar> <dependency>
</properties> <groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<scope>system</scope>
<version>1.7</version>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
</profile> </profile>
<profile> <profile>
<id>default-tools.jar-mac</id> <id>default-tools.jar-mac</id>
...@@ -163,9 +167,15 @@ ...@@ -163,9 +167,15 @@
<exists>${java.home}/../Classes/classes.jar</exists> <exists>${java.home}/../Classes/classes.jar</exists>
</file> </file>
</activation> </activation>
<properties> <dependencies>
<tools.jar>${java.home}/../Classes/classes.jar</tools.jar> <dependency>
</properties> <groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<scope>system</scope>
<version>1.7</version>
<systemPath>${java.home}/../Classes/classes.jar</systemPath>
</dependency>
</dependencies>
</profile> </profile>
</profiles> </profiles>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论