Skip to content

Commit 8f19aa3

Browse files
committed
POM: add profile for javac dependency
1 parent 1687493 commit 8f19aa3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,27 @@ Institute of Molecular Cell Biology and Genetics.</organizationName>
131131
</plugins>
132132
</build>
133133

134+
<!-- NB: Enable dependency on tools.jar. See:
135+
http://maven.apache.org/general.html#tools-jar-dependency -->
136+
<profiles>
137+
<profile>
138+
<id>tools-jar</id> <!-- required for MiniMaven -->
139+
<activation>
140+
<file>
141+
<!-- NB: Custom properties do not work here, so we hardcode. -->
142+
<exists>${java.home}/../lib/tools.jar</exists>
143+
</file>
144+
</activation>
145+
<dependencies>
146+
<dependency>
147+
<groupId>com.sun</groupId>
148+
<artifactId>tools</artifactId>
149+
<version>1.4.2</version>
150+
<scope>system</scope>
151+
<systemPath>${java.home}/../lib/tools.jar</systemPath>
152+
</dependency>
153+
</dependencies>
154+
</profile>
155+
</profiles>
156+
134157
</project>

0 commit comments

Comments
 (0)