Author: veithen
Date: Fri Dec  7 18:54:39 2012
New Revision: 1418436

URL: http://svn.apache.org/viewvc?rev=1418436&view=rev
Log:
Added a Maven profile to make it easier to generate Eclipse project metadata 
and to work around an issue that occurs when maven-eclipse-plugin and 
maven-shade-plugin are used together.

Modified:
    axis/axis1/java/trunk/pom.xml

Modified: axis/axis1/java/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/pom.xml?rev=1418436&r1=1418435&r2=1418436&view=diff
==============================================================================
--- axis/axis1/java/trunk/pom.xml (original)
+++ axis/axis1/java/trunk/pom.xml Fri Dec  7 18:54:39 2012
@@ -227,6 +227,10 @@
                     <artifactId>maven-shade-plugin</artifactId>
                     <version>2.0</version>
                 </plugin>
+                <plugin>
+                    <artifactId>maven-eclipse-plugin</artifactId>
+                    <version>2.9</version>
+                </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
@@ -306,6 +310,38 @@
             </plugin>
         </plugins>
     </build>
+    <profiles>
+        <profile>
+            <!-- Profile to generate Eclipse project metadata -->
+            <id>eclipse</id>
+            <properties>
+                <skipTests>true</skipTests>
+            </properties>
+            <build>
+                <defaultGoal>install</defaultGoal>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-eclipse-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <!-- Since we configure the maven-shade-plugin 
with the dependencyReducedPomLocation
+                                     property, the basedir of the modules that 
use that plugin will change during
+                                     the build lifecycle. This is an issue for 
maven-eclipse-plugin. Therefore
+                                     we execute the eclipse goal in the 
prepare-package phase, i.e. before the shade goal. -->
+                                <phase>prepare-package</phase>
+                                <goals>
+                                    <goal>eclipse</goal>
+                                </goals>
+                                <configuration>
+                                    <downloadSources>true</downloadSources>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
     <reporting>
         <plugins>
             <plugin>


Reply via email to