Skip to content

Commit 4990e81

Browse files
committed
improved docs and annotations
1 parent 530497c commit 4990e81

File tree

2 files changed

+177
-171
lines changed

2 files changed

+177
-171
lines changed

pom.xml

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
<java.target>1.7</java.target>
7777

7878
<maven-plugin-api.version>3.1.1</maven-plugin-api.version>
79+
<maven-plugin-plugin.version>3.4</maven-plugin-plugin.version>
7980

8081
<jgit.version>4.1.1.201511131810-r</jgit.version>
8182
<junit.version>4.12</junit.version>
@@ -96,6 +97,14 @@
9697
<artifactId>maven-core</artifactId>
9798
<version>${maven-plugin-api.version}</version>
9899
</dependency>
100+
<!-- dependencies to annotations -->
101+
<dependency>
102+
<groupId>org.apache.maven.plugin-tools</groupId>
103+
<artifactId>maven-plugin-annotations</artifactId>
104+
<version>${maven-plugin-plugin.version}</version>
105+
<scope>provided</scope><!-- annotations are needed only to build the plugin -->
106+
</dependency>
107+
99108

100109
<dependency>
101110
<groupId>com.fasterxml.jackson.core</groupId>
@@ -241,7 +250,7 @@
241250
</plugin>
242251
<plugin>
243252
<artifactId>maven-plugin-plugin</artifactId>
244-
<version>3.4</version>
253+
<version>${maven-plugin-plugin.version}</version>
245254
</plugin>
246255
<plugin>
247256
<artifactId>maven-surefire-plugin</artifactId>
@@ -274,22 +283,28 @@
274283
</configuration>
275284
</plugin>
276285

277-
<!--<plugin>-->
278-
<!--<artifactId>maven-plugin-plugin</artifactId>-->
279-
<!--<version>${maven-plugin-api.version}</version>-->
280-
<!--<executions>-->
281-
<!--<execution>-->
282-
<!--<id>generated-helpmojo</id>-->
283-
<!--<goals>-->
284-
<!--<goal>helpmojo</goal>-->
285-
<!--</goals>-->
286-
<!--<configuration>-->
287-
<!--<goalPrefix>git-commit-id</goalPrefix>-->
288-
<!--<helpPackageName>pl.project13.maven</helpPackageName>-->
289-
<!--</configuration>-->
290-
<!--</execution>-->
291-
<!--</executions>-->
292-
<!--</plugin>-->
286+
<plugin>
287+
<groupId>org.apache.maven.plugins</groupId>
288+
<artifactId>maven-plugin-plugin</artifactId>
289+
<executions>
290+
<execution>
291+
<id>default-descriptor</id>
292+
<phase>process-classes</phase>
293+
</execution>
294+
<!--
295+
<execution>
296+
<id>generated-helpmojo</id>
297+
<goals>
298+
<goal>helpmojo</goal>
299+
</goals>
300+
<configuration>
301+
<goalPrefix>git-commit-id</goalPrefix>
302+
<helpPackageName>pl.project13.maven</helpPackageName>
303+
</configuration>
304+
</execution>
305+
-->
306+
</executions>
307+
</plugin>
293308
</plugins>
294309
</build>
295310

0 commit comments

Comments
 (0)