Skip to content

Commit aeacae1

Browse files
committed
Fix JDK 6 build by disabling the Maven plugin tests
1 parent da992de commit aeacae1

File tree

1 file changed

+38
-15
lines changed

1 file changed

+38
-15
lines changed

antlr4-maven-plugin/pom.xml

+38-15
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,44 @@
123123
</dependency>
124124

125125
</dependencies>
126-
126+
127+
<profiles>
128+
<profile>
129+
<id>maven-plugin-no-tests</id>
130+
<activation>
131+
<jdk>1.6</jdk>
132+
</activation>
133+
<properties>
134+
<skipTests>true</skipTests>
135+
</properties>
136+
</profile>
137+
138+
<profile>
139+
<id>maven-plugin-tests</id>
140+
<activation>
141+
<jdk>!1.6</jdk>
142+
</activation>
143+
<build>
144+
<plugins>
145+
<plugin>
146+
<groupId>io.takari.maven.plugins</groupId>
147+
<artifactId>takari-lifecycle-plugin</artifactId>
148+
<version>1.11.12</version>
149+
<executions>
150+
<execution>
151+
<id>testProperties</id>
152+
<phase>process-test-resources</phase>
153+
<goals>
154+
<goal>testProperties</goal>
155+
</goals>
156+
</execution>
157+
</executions>
158+
</plugin>
159+
</plugins>
160+
</build>
161+
</profile>
162+
</profiles>
163+
127164
<build>
128165

129166
<defaultGoal>install</defaultGoal>
@@ -183,20 +220,6 @@
183220
</configuration>
184221
</plugin>
185222

186-
<plugin>
187-
<groupId>io.takari.maven.plugins</groupId>
188-
<artifactId>takari-lifecycle-plugin</artifactId>
189-
<version>1.11.12</version>
190-
<executions>
191-
<execution>
192-
<id>testProperties</id>
193-
<phase>process-test-resources</phase>
194-
<goals>
195-
<goal>testProperties</goal>
196-
</goals>
197-
</execution>
198-
</executions>
199-
</plugin>
200223
</plugins>
201224

202225
</build>

0 commit comments

Comments
 (0)