added cleanup tasks after bundle jre
[taxeditor.git] / eu.etaxonomy.taxeditor / pom.xml
index 98156cf6b87c49ca2c60dbedb134b465c8d2ad4d..7e7c37700a9c474dba61f32ab81da860938ebbe4 100644 (file)
           </products>
         </configuration>
       </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <version>1.8</version>
-        <executions>
-          <execution>
-            <id>setProductWithoutJRE</id>
-            <phase>validate</phase>
-            <configuration>
-              <target>
-                <copy overwrite="true" force="true"
-                  file="${basedir}/eu.etaxonomy.taxeditor.product.wo.jre"
-                  tofile="${basedir}/eu.etaxonomy.taxeditor.product" />
-              </target>
-            </configuration>
-            <goals>
-              <goal>run</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
     </plugins>
   </build>
   <profiles>
                   <goal>run</goal>
                 </goals>
               </execution>
+              <execution>
+                <id>setProductWithoutJRE</id>
+                <phase>clean</phase>
+                <configuration>
+                  <target>
+                    <copy overwrite="true" force="true"
+                      file="${basedir}/eu.etaxonomy.taxeditor.product.wo.jre"
+                      tofile="${basedir}/eu.etaxonomy.taxeditor.product" />
+                  </target>
+                </configuration>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+              </execution>
             </executions>
           </plugin>
         </plugins>