added comments
[taxeditor.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 20600b70160c2697bbc44c36df6e5727466eb543..30bbbcfd91d10296937000b671e213b1eda19f0e 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -1,24 +1,29 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<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">
+<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">
   <modelVersion>4.0.0</modelVersion>
   <prerequisites>
     <maven>3.0</maven>
   </prerequisites>
   <groupId>eu.etaxonomy</groupId>
   <artifactId>taxeditor-parent</artifactId>
-  <version>3.3.2.201404111726</version>
+  <version>3.5.0-SNAPSHOT</version>
   <name>EDIT Taxonomic Editor</name>
-  <description>The Taxonomic Editor for EDIT's platform for cybertaxonomy</description>
-  <url>http://cybertaxonomy.eu/taxeditor//taxeditor//taxeditor//taxeditor//taxeditor//taxeditor//taxeditor/</url>
+  <description>The Taxonomic Editor for EDIT's platform for
+    cybertaxonomy
+  </description>
+  <url>http://cybertaxonomy.eu/taxeditor//taxeditor//taxeditor//taxeditor//taxeditor//taxeditor//taxeditor/
+  </url>
   <inceptionYear>2007</inceptionYear>
   <packaging>pom</packaging>
   <properties>
     <java.codelevel>1.6</java.codelevel>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <cdmlib.version>3.3.2</cdmlib.version>
+    <cdmlib.version>3.5.0-SNAPSHOT</cdmlib.version>
     <!-- TODO can we use project.version ????? -->
-    <tycho.version>0.14.0</tycho.version>
-    <taxeditor.version>3.3.2</taxeditor.version>
+    <tycho.version>0.22.0</tycho.version>
+    <taxeditor.version>3.5.0-SNAPSHOT</taxeditor.version>
+    <update.dir>snapshot</update.dir>
   </properties>
   <modules>
     <module>eu.etaxonomy.taxeditor.cdmlib</module>
@@ -27,7 +32,6 @@
     <module>eu.etaxonomy.taxeditor.editor</module>
     <module>eu.etaxonomy.taxeditor.bulkeditor</module>
     <module>eu.etaxonomy.taxeditor.printpublisher</module>
-    <!--module>eu.etaxonomy.taxeditor.annotatedlineeditor</module-->
     <module>eu.etaxonomy.taxeditor.help</module>
     <module>eu.etaxonomy.taxeditor.application</module>
     <module>eu.etaxonomy.taxeditor.feature.platform</module>
     <module>eu.etaxonomy.taxeditor</module>
   </modules>
   <scm>
-    <connection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/taxeditor/</connection>
-    <developerConnection>scm:svn:https://dev.e-taxonomy.eu/svn/trunk/taxeditor/</developerConnection>
+    <connection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/taxeditor/
+    </connection>
+    <developerConnection>scm:svn:https://dev.e-taxonomy.eu/svn/trunk/taxeditor/
+    </developerConnection>
     <url>https://dev.e-taxonomy.eu/trac/browser/trunk/taxeditor/</url>
   </scm>
   <mailingLists>
     <mailingList>
       <name>EDIT Taxonomic Editor</name>
       <subscribe>
-                               edit-taxonomic-editor+subscribe@googlegroups.com
-                       </subscribe>
+        edit-taxonomic-editor+subscribe@googlegroups.com
+      </subscribe>
       <unsubscribe>
-                               edit-taxonomic-editor+unsubscribe@googlegroups.com
-                       </unsubscribe>
+        edit-taxonomic-editor+unsubscribe@googlegroups.com
+      </unsubscribe>
       <post>edit-taxonomic-editor@googlegroups.com</post>
-      <archive>http://groups.google.com/group/edit-taxonomic-editor/topics</archive>
+      <archive>http://groups.google.com/group/edit-taxonomic-editor/topics
+      </archive>
     </mailingList>
   </mailingLists>
   <licenses>
       <!-- your SVN account id please! -->
       <id>a.kohlbecker</id>
       <name>
-                       Andreas Kohlbecker
-                       </name>
+        Andreas Kohlbecker
+      </name>
       <email>a.kohlbecker [at] bgbm.org</email>
       <organization>
-                               Botanic Garden Botanical Museum Berlin
-                       </organization>
+        Botanic Garden Botanical Museum Berlin
+      </organization>
       <organizationUrl>http://www.bgbm.org/BioDivInf/</organizationUrl>
       <timezone>+1</timezone>
       <roles>
         <role>Java Developer</role>
         <role>Architect</role>
       </roles>
-      <url/>
+      <url />
     </developer>
     <developer>
       <!-- your SVN account id please! -->
       <id>a.mueller</id>
       <name>
-                               Andreas Müller
-                       </name>
+        Andreas Müller
+      </name>
       <email>a.mueller [at] bgbm.org</email>
       <organization>
-                               Botanic Garden Botanical Museum Berlin
-                       </organization>
+        Botanic Garden Botanical Museum Berlin
+      </organization>
       <organizationUrl>http://www.bgbm.org/BioDivInf/</organizationUrl>
       <timezone>+1</timezone>
       <roles>
         <role>Java Developer</role>
         <role>Architect</role>
       </roles>
-      <url/>
+      <url />
     </developer>
   </developers>
   <issueManagement>
   </issueManagement>
   <ciManagement>
     <system>Jenkins</system>
-    <url>http://160.45.63.201/jenkins/view/EDIT%20Taxonomic%20Editor/</url>
+    <url>http://160.45.63.201/jenkins/view/EDIT%20Taxonomic%20Editor/
+    </url>
   </ciManagement>
   <!-- **** REPOSITORIES **** -->
   <profiles>
         </repository>
       </repositories>
     </profile>
+    <profile>
+    <!-- making sure that the jre bundle can be built only on linux.
+    this is due to the fact since Java has problem with setting permissions on 
+    files (this is specifically for the jre/bin files which need to be executable), 
+    Eclipse RCP (http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Ftasks%2Fpde_rootfiles.htm)
+    uses chmod to set these, but since chmod is (usually) available on unix like systems, this check has been added
+     (to be on the safe side) to not allow the jre bundle to be built on other systems. -->
+      <id>bundleJre</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <version>1.8</version>
+            <executions>
+              <execution>
+                <id>checkJREBundleOS</id>
+                <phase>validate</phase>
+                <configuration>
+                  <target>
+                    <echo>Checking if JRE bundle can be configured</echo>
+                    <fail
+                      message="Copy of JRE folder possible only on Unix (and Unix like systems)">
+                     <condition>
+                        <not>                          
+                            <os family="unix" />                          
+                        </not>
+                      </condition>
+                    </fail>
+                  </target>
+                </configuration>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
   <repositories>
     <!-- the cdm internal repository -->
     <repository>
       <id>eclipse-indigo</id>
       <layout>p2</layout>
-      <url>http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site/</url>
+      <url>http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site/
+      </url>
     </repository>
+    <!-- The nebula repository (retention period 2 years starting Q32014) 
+      set here is an archived one so as to have a stable version of the jar when 
+      building the editor . Refer to #4452 for details -->
     <repository>
       <id>eclipse-nebula</id>
       <layout>p2</layout>
-      <url>http://download.eclipse.org/technology/nebula/snapshot/</url>
+      <url>http://download.eclipse.org/technology/nebula/archives/Q32014/release/
+      </url>
     </repository>
     <repository>
       <id>eclipse-swtbot</id>
           <strictVersions>true</strictVersions>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.eclipse.tycho</groupId>
+        <artifactId>tycho-p2-repository-plugin</artifactId>
+        <version>${tycho.version}</version>
+        <configuration>
+          <includeAllDependencies>true</includeAllDependencies>
+        </configuration>
+      </plugin>
       <plugin>
         <groupId>org.eclipse.tycho</groupId>
         <artifactId>target-platform-configuration</artifactId>
         <configuration>
           <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
           <autoVersionSubmodules>false</autoVersionSubmodules>
-          <!--preparationGoals>clean verify install</preparationGoals-->
-          <!--goals>deploy</goals-->
+          <!--preparationGoals>clean verify install</preparationGoals -->
+          <!--goals>deploy</goals -->
           <!-- skipping site-deploy by explicitly configuring the goal here -->
           <tagBase>http://dev.e-taxonomy.eu/svn/tags/taxeditor</tagBase>
         </configuration>
       </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>wagon-maven-plugin</artifactId>
-        <version>1.0-beta-3</version>
-        <!--
-                               Problems with the wagon-maven-plugin have been encounterd on Windows,
-                                       it should work properly on linux though.
-                                -->
-        <executions>
-          <execution>
-            <phase>deploy</phase>
-            <goals>
-              <goal>upload</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          <fromDir>eu.etaxonomy.taxeditor/target/products</fromDir>
-          <includes>*.zip</includes>
-          <url>scpexe://wp5.e-taxonomy.eu/var/www/download/taxeditor/${project.version}</url>
-          <serverId>wp5.e-taxonomy.eu</serverId>
-        </configuration>
-      </plugin>
     </plugins>
     <extensions>
       <extension>
         </configuration>
       </plugin>
       <plugin>
-        <!-- this will generate an indexed and cross-referenced HTML version of your source code -->
+        <!-- this will generate an indexed and cross-referenced HTML version 
+          of your source code -->
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jxr-plugin</artifactId>
         <version>2.2</version>
       </plugin>
     </plugins>
   </reporting>
-  <!--  DISTRIBUTION MANAGEMENT -->
+  <!-- DISTRIBUTION MANAGEMENT -->
   <distributionManagement>
     <site>
       <id>wp5.e-taxonomy.eu</id>
       <name>EDIT Taxonomic Editor</name>
-      <url>scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/taxeditor/</url>
+      <url>scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/taxeditor/
+      </url>
     </site>
     <repository>
       <uniqueVersion>false</uniqueVersion>
       <id>wp5.e-taxonomy.eu</id>
       <name>Edit Maven Repository</name>
-      <url>scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/mavenrepo/</url>
+      <url>scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/mavenrepo/
+      </url>
     </repository>
   </distributionManagement>
 </project>