move plugin version to a property and plugins annotations in compile scope
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1360787 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 6126277..a4c17e3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -52,6 +52,7 @@
<properties>
<mavenVersion>2.0.6</mavenVersion>
+ <mavenPluginVersion>3.1</mavenPluginVersion>
</properties>
<dependencies>
@@ -64,7 +65,8 @@
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
- <version>3.1</version>
+ <version>${mavenPluginVersion}</version>
+ <scope>compile</scope>
</dependency>
<!-- Plexus -->
@@ -87,8 +89,9 @@
<pluginManagement>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
- <version>3.1</version>
+ <version>${mavenPluginVersion}</version>
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
@@ -110,6 +113,16 @@
</plugins>
</build>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <version>${mavenPluginVersion}</version>
+ </plugin>
+ </plugins>
+ </reporting>
+
<profiles>
<profile>
<id>run-its</id>