Updated version in pom / project files to taxeditor version : 3.12.2 and cdmlib versi...
[taxeditor.git] / eu.etaxonomy.taxeditor.cdmlib / pom.xml
index 7e24daa53b2582e5ab189465fc6c2d10a71925cf..c261a449bf53223b1a5a039c440627f240b73219 100644 (file)
@@ -1,9 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">\r
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">\r
   <parent>\r
     <groupId>eu.etaxonomy</groupId>\r
     <artifactId>taxeditor-parent</artifactId>\r
-    <version>3.12.0-SNAPSHOT</version>\r
+    <version>3.12.2</version>\r
   </parent>\r
   <modelVersion>4.0.0</modelVersion>\r
   <artifactId>eu.etaxonomy.taxeditor.cdmlib</artifactId>\r
@@ -83,8 +84,7 @@
                 <move todir="./src/main/resources/etc/jetty">\r
                   <fileset dir="./src/main/resources/etc/jetty" />\r
                   <mapper type="regexp"\r
-                    from="(^cdmlib\-remote\-webapp).*(\.war)"\r
-                    to="\1\2" />\r
+                    from="(^cdmlib\-remote\-webapp).*(\.war)" to="\1\2" />\r
                 </move>\r
                 <echo>Update cdmlib jars to SNAPSHOT when build with\r
                   timestamp\r
                   <fileset dir="./lib" />\r
                   <mapper type="regexp"\r
                     from="(^cdmlib\-.*\-\d+\.\d+\.\d+\-)[\d.-]+(\-sources\.jar)"\r
-                    to="\1SNAPSHOT\2" />                \r
+                    to="\1SNAPSHOT\2" />\r
                 </move>\r
               </target>\r
             </configuration>\r
           </execution>\r
+          <execution>\r
+            <id>remove-existing-jars</id>\r
+            <phase>clean</phase>\r
+            <goals>\r
+              <goal>run</goal>\r
+            </goals>\r
+            <configuration>\r
+              <target>\r
+                <echo>Remove all cdmlib jars</echo>\r
+                <delete>\r
+                  <fileset dir="./lib" includes="cdmlib-*" />\r
+                </delete>\r
+              </target>\r
+            </configuration>\r
+          </execution>\r
         </executions>\r
       </plugin>\r
     </plugins>\r
   </build>\r
   <profiles>\r
-    <profile>\r
-      <id>cleanCdmlibJars</id>\r
-      <build>\r
-        <plugins>\r
-          <plugin>\r
-            <artifactId>maven-clean-plugin</artifactId>\r
-            <version>2.3</version>\r
-            <configuration>\r
-              <filesets>\r
-                <fileset>\r
-                  <directory>${basedir}/lib</directory>\r
-                  <includes>\r
-                    <include>cdmlib-*</include>\r
-                  </includes>\r
-                  <followSymlinks>false</followSymlinks>\r
-                </fileset>\r
-              </filesets>\r
-            </configuration>\r
-          </plugin>\r
-        </plugins>\r
-      </build>\r
-    </profile>\r
-    <profile>\r
-      <id>cleanAllJars</id>\r
-      <build>\r
-        <plugins>\r
-          <plugin>\r
-            <artifactId>maven-clean-plugin</artifactId>\r
-            <version>2.3</version>\r
-            <configuration>\r
-              <filesets>\r
-                <fileset>\r
-                  <directory>${basedir}/lib</directory>\r
-                  <includes>\r
-                    <include>*</include>\r
-                  </includes>\r
-                  <followSymlinks>false</followSymlinks>\r
-                </fileset>\r
-              </filesets>\r
-            </configuration>\r
-          </plugin>\r
-        </plugins>\r
-      </build>\r
-    </profile>\r
     <profile>\r
       <id>copyAllJars</id>\r
       <build>\r