Skip to content

Commit 7f4f72d

Browse files
authored
Merge pull request #12 from Nordstrom/pr/add-tool-chain
Add tool chain stuff to use the correct SDK for compilation
2 parents a541356 + 984ff44 commit 7f4f72d

File tree

1 file changed

+52
-3
lines changed

1 file changed

+52
-3
lines changed

pom.xml

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@
2828
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2929
<maven.compiler.source>1.7</maven.compiler.source>
3030
<maven.compiler.target>1.7</maven.compiler.target>
31-
<testng.version>6.11</testng.version>
31+
<testng.version>6.10</testng.version>
32+
<toolchains-plugin.version>1.1</toolchains-plugin.version>
3233
<surefire-plugin.version>2.19.1</surefire-plugin.version>
3334
<source-plugin.version>3.0.1</source-plugin.version>
3435
<javadoc-plugin.version>2.10.4</javadoc-plugin.version>
35-
<guava.version>23.5-jre</guava.version>
36+
<guava.version>19.0</guava.version>
3637
<gpg-plugin.version>1.6</gpg-plugin.version>
3738
<staging-plugin.version>1.6.7</staging-plugin.version>
3839
<release-plugin.version>2.5.3</release-plugin.version>
39-
<apache-derby.version>10.14.1.0</apache-derby.version>
40+
<apache-derby.version>10.12.1.1</apache-derby.version>
4041
</properties>
4142

4243
<scm>
@@ -97,6 +98,11 @@
9798
<build>
9899
<pluginManagement>
99100
<plugins>
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-toolchains-plugin</artifactId>
104+
<version>${toolchains-plugin.version}</version>
105+
</plugin>
100106
<plugin>
101107
<groupId>org.apache.maven.plugins</groupId>
102108
<artifactId>maven-source-plugin</artifactId>
@@ -127,9 +133,52 @@
127133
<artifactId>maven-release-plugin</artifactId>
128134
<version>${release-plugin.version}</version>
129135
</plugin>
136+
<plugin>
137+
<groupId>org.eclipse.m2e</groupId>
138+
<artifactId>lifecycle-mapping</artifactId>
139+
<version>1.0.0</version>
140+
<configuration>
141+
<lifecycleMappingMetadata>
142+
<pluginExecutions>
143+
<pluginExecution>
144+
<pluginExecutionFilter>
145+
<groupId>org.apache.maven.plugins</groupId>
146+
<artifactId>maven-toolchains-plugin</artifactId>
147+
<versionRange>[1.0.0,)</versionRange>
148+
<goals>
149+
<goal>toolchain</goal>
150+
</goals>
151+
</pluginExecutionFilter>
152+
<action>
153+
<execute />
154+
</action>
155+
</pluginExecution>
156+
</pluginExecutions>
157+
</lifecycleMappingMetadata>
158+
</configuration>
159+
</plugin>
130160
</plugins>
131161
</pluginManagement>
132162
<plugins>
163+
<plugin>
164+
<groupId>org.apache.maven.plugins</groupId>
165+
<artifactId>maven-toolchains-plugin</artifactId>
166+
<executions>
167+
<execution>
168+
<goals>
169+
<goal>toolchain</goal>
170+
</goals>
171+
</execution>
172+
</executions>
173+
<configuration>
174+
<toolchains>
175+
<jdk>
176+
<version>1.7</version>
177+
<vendor>oracle</vendor>
178+
</jdk>
179+
</toolchains>
180+
</configuration>
181+
</plugin>
133182
<plugin>
134183
<groupId>org.apache.maven.plugins</groupId>
135184
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)