You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by po...@apache.org on 2014/08/22 23:35:12 UTC

svn commit: r1619935 - in /creadur/whisker/trunk: apache-whisker-plugin4maven/pom.xml pom.xml

Author: pottlinger
Date: Fri Aug 22 21:35:11 2014
New Revision: 1619935

URL: http://svn.apache.org/r1619935
Log:
WHISKER-12: MavenPluginErrors again

- Followed instructions from http://maven.apache.org/plugin-tools/maven-plugin-plugin/examples/using-annotations.html to get rid of the mojo error.
- Extracted version number of mavenPluginPlugin, use it for maven-annotations as well to keep these dependencies in sync.


Modified:
    creadur/whisker/trunk/apache-whisker-plugin4maven/pom.xml
    creadur/whisker/trunk/pom.xml

Modified: creadur/whisker/trunk/apache-whisker-plugin4maven/pom.xml
URL: http://svn.apache.org/viewvc/creadur/whisker/trunk/apache-whisker-plugin4maven/pom.xml?rev=1619935&r1=1619934&r2=1619935&view=diff
==============================================================================
--- creadur/whisker/trunk/apache-whisker-plugin4maven/pom.xml (original)
+++ creadur/whisker/trunk/apache-whisker-plugin4maven/pom.xml Fri Aug 22 21:35:11 2014
@@ -35,8 +35,9 @@
     <dependency>
       <groupId>org.apache.maven.plugin-tools</groupId>
       <artifactId>maven-plugin-annotations</artifactId>
-      <!-- keep in sync with maven-plugin-plugin version derived from parent -->
-      <version>3.3</version>
+      <version>${mavenPluginPluginVersion}</version>
+      <scope>provided</scope>
+      <!-- annotations are needed only to build the plugin -->
     </dependency>
     <dependency>
       <groupId>org.apache.commons</groupId>
@@ -111,7 +112,24 @@
         <artifactId>maven-plugin-plugin</artifactId>
         <configuration>
           <goalPrefix>plugin</goalPrefix>
+          <!-- see already solved bug http://jira.codehaus.org/browse/MNG-5346 describes the problems we experience on Jenkins-CI (20140822)-->
+          <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
         </configuration>
+        <executions>
+          <execution>
+            <id>mojo-descriptor</id>
+            <goals>
+              <goal>descriptor</goal>
+            </goals>
+          </execution>
+          <!-- if you want to generate help goal -->
+          <execution>
+            <id>help-goal</id>
+            <goals>
+              <goal>helpmojo</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -148,7 +166,7 @@
             <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-plugin-plugin</artifactId>
-              <version>3.3</version>
+              <version>${mavenPluginPluginVersion}</version>
             </plugin>
             <plugin>
               <groupId>org.apache.maven.plugins</groupId>

Modified: creadur/whisker/trunk/pom.xml
URL: http://svn.apache.org/viewvc/creadur/whisker/trunk/pom.xml?rev=1619935&r1=1619934&r2=1619935&view=diff
==============================================================================
--- creadur/whisker/trunk/pom.xml (original)
+++ creadur/whisker/trunk/pom.xml Fri Aug 22 21:35:11 2014
@@ -124,6 +124,7 @@
     <whisker.site.url>file:${whisker.site.local}</whisker.site.url>
     <whisker.site.name>Whisker Website</whisker.site.name>
     <whisker.site.id>org.apache.creadur.whisker.site</whisker.site.id>
+    <mavenPluginPluginVersion>3.3</mavenPluginPluginVersion>
   </properties>
   <!-- ================================ Build information -->
   <build>