Skip to content

Commit 18f7e2e

Browse files
committed
add check goal to release profile.
1 parent 781d712 commit 18f7e2e

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

pom.xml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555

5656
<properties>
5757
<projectOwner>John Casey</projectOwner>
58+
<projectEmail>jdcasey@commonjava.org</projectEmail>
5859
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5960
<version.plugin.compiler>3.1</version.plugin.compiler>
6061
<version.plugin.plugin>3.2</version.plugin.plugin>
@@ -243,6 +244,18 @@
243244
<groupId>com.mycila</groupId>
244245
<artifactId>license-maven-plugin</artifactId>
245246
<version>2.10</version>
247+
<configuration>
248+
<header>com/mycila/maven/plugin/license/templates/APACHE-2.txt</header>
249+
<properties>
250+
<owner>${projectOwner}</owner>
251+
<email>${projectEmail}</email>
252+
</properties>
253+
<excludes>
254+
<exclude>**/README</exclude>
255+
<exclude>src/test/resources/**</exclude>
256+
<exclude>src/main/resources/**</exclude>
257+
</excludes>
258+
</configuration>
246259
</plugin>
247260

248261
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
@@ -287,18 +300,6 @@
287300
<plugin>
288301
<groupId>com.mycila</groupId>
289302
<artifactId>license-maven-plugin</artifactId>
290-
<configuration>
291-
<header>com/mycila/maven/plugin/license/templates/APACHE-2.txt</header>
292-
<properties>
293-
<owner>${projectOwner}</owner>
294-
<email>jdcasey@commonjava.org</email>
295-
</properties>
296-
<excludes>
297-
<exclude>**/README</exclude>
298-
<exclude>src/test/resources/**</exclude>
299-
<exclude>src/main/resources/**</exclude>
300-
</excludes>
301-
</configuration>
302303
<executions>
303304
<execution>
304305
<phase>process-sources</phase>
@@ -315,6 +316,18 @@
315316
<id>release</id>
316317
<build>
317318
<plugins>
319+
<plugin>
320+
<groupId>com.mycila</groupId>
321+
<artifactId>license-maven-plugin</artifactId>
322+
<executions>
323+
<execution>
324+
<phase>process-resources</phase>
325+
<goals>
326+
<goal>check</goal>
327+
</goals>
328+
</execution>
329+
</executions>
330+
</plugin>
318331
<plugin>
319332
<groupId>org.apache.maven.plugins</groupId>
320333
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)