fixing dependency problems within tycho configuration
[taxeditor.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 03a63ac824eef745e43f5c2a22353683480f2816..15f22ce9c0d519921f0069302a6226f00319f3a3 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -1,25 +1,36 @@
 <?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">
        <modelVersion>4.0.0</modelVersion>
+       <prerequisites>
+               <maven>3.0</maven>
+       </prerequisites>
        <groupId>eu.etaxonomy</groupId>
        <artifactId>taxeditor-parent</artifactId>
-       <version>3.0</version>
+       <version>3.0.9-SNAPSHOT</version>
        <name>EDIT Taxonomic Editor</name>
        <description>The Taxonomic Editor for EDIT's platform for cybertaxonomy</description>
        <url>http://wp5.e-taxonomy.eu</url>
        <inceptionYear>2007</inceptionYear>
        <packaging>pom</packaging>
        <properties>
-           <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+               <cdmlib.version>3.0.9-SNAPSHOT</cdmlib.version>
+               <tycho.version>0.13.0</tycho.version>
+               <taxeditor.version>3.0.9-SNAPSHOT</taxeditor.version>
        </properties>
        <modules>
-               <module>taxeditor-store</module>
-               <module>taxeditor-navigation</module>
-               <module>taxeditor-editor</module>
-               <module>taxeditor-bulkeditor</module>
-               <module>taxeditor-printpublisher</module>
-               <module>taxeditor-annotatedlineeditor</module>
-               <module>taxeditor-application</module>
+               <module>eu.etaxonomy.taxeditor.cdmlib</module>
+               <module>eu.etaxonomy.taxeditor.store</module>
+               <module>eu.etaxonomy.taxeditor.navigation</module>
+               <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.feature</module>
+               <module>eu.etaxonomy.taxeditor</module>
        </modules>
        <scm>
                <connection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/taxeditor/</connection>
                <url>http://dev.e-taxonomy.eu/trac/</url>
        </issueManagement>
        <ciManagement>
-           <system>Hudson</system>
-           <url>http://160.45.63.201/hudson</url>
+               <system>Jenkins</system>
+               <url>http://160.45.63.201/jenkins/view/EDIT%20Taxonomic%20Editor/</url>
        </ciManagement>
        <!-- **** REPOSITORIES **** -->
        <repositories>
-               <!-- sun repository -->
-               <repository>
-                       <id>java.net</id>
-                       <url>http://download.java.net/maven/1/</url>
-               </repository>
                <!-- the cdm internal repository -->
                <repository>
                        <id>EditRepository</id>
-                       <url>http://wp5.e-taxonomy.eu/cdmlib/mavenrepo/</url>
-               </repository>
-               <!-- apache incubating repository -->
-               <repository>
-                       <id>ApacheIncubating</id>
-                       <url>http://people.apache.org/repo/m2-incubating-repository/</url>
+                       <url>http://wp5.e-taxonomy.eu/mavenrepo/</url>
                </repository>
-               <!-- eclipse repository -->
                <repository>
-                       <id>EclipseRepository</id>
-                       <url>http://repo1.maven.org/eclipse/</url>
-               </repository>
-               <!-- Neccessary for hibernate-envers -->
-               <repository>
-                       <releases>
-                               <enabled>true</enabled>
-                               <updatePolicy>always</updatePolicy>
-                               <checksumPolicy>warn</checksumPolicy>
-                       </releases>
-                       <snapshots>
-                               <enabled>false</enabled>
-                               <updatePolicy>never</updatePolicy>
-                               <checksumPolicy>fail</checksumPolicy>
-                       </snapshots>
-                       <id>jboss-repository</id>
-                       <name>JBoss Repository</name>
-                       <url>http://repository.jboss.com/maven2</url>
-               </repository>
+      <id>eclipse-indigo</id>
+      <layout>p2</layout>
+      <url>http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site/</url>
+    </repository>
+    <repository>
+      <id>eclipse-swtbot</id>
+      <layout>p2</layout>
+      <url>http://download.eclipse.org/releases/indigo</url>
+    </repository>
        </repositories>
        <build>
                <plugins>
+                       <plugin>
+                               <groupId>org.eclipse.tycho</groupId>
+                               <artifactId>tycho-maven-plugin</artifactId>
+                               <version>${tycho.version}</version>
+                               <extensions>true</extensions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.eclipse.tycho</groupId>
+                               <artifactId>tycho-packaging-plugin</artifactId>
+                               <version>${tycho.version}</version>
+                               <configuration>
+                                       <strictVersions>true</strictVersions>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.eclipse.tycho</groupId>
+                               <artifactId>target-platform-configuration</artifactId>
+                               <version>${tycho.version}</version>
+                               <configuration>
+                                       <!--target>
+                                               <artifact>
+                                                       <groupId>eu.etaxonomy</groupId>
+                                                       <artifactId>eu.etaxonomy.taxeditor</artifactId>
+                                                       <version>${taxeditor.version}</version>
+                                                       <classifier>rcp</classifier>
+                                               </artifact>
+                                       </target-->
+                                       <!--ignoreTychoRepositories>true</ignoreTychoRepositories-->
+                                       <environments>
+                                               <environment>
+                                                       <os>macosx</os>
+                                                       <ws>cocoa</ws>
+                                                       <arch>x86_64</arch>
+                                               </environment>
+                                               <environment>
+                                                       <os>win32</os>
+                                                       <ws>win32</ws>
+                                                       <arch>x86</arch>
+                                               </environment>
+                                               <environment>
+                                                       <os>win32</os>
+                                                       <ws>win32</ws>
+                                                       <arch>x86_64</arch>
+                                               </environment>
+                                               <environment>
+                                                       <os>linux</os>
+                                                       <ws>gtk</ws>
+                                                       <arch>x86</arch>
+                                               </environment>
+                                               <environment>
+                                                       <os>linux</os>
+                                                       <ws>gtk</ws>
+                                                       <arch>x86_64</arch>
+                                               </environment>
+                                       </environments>
+                               </configuration>
+                       </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-site-plugin</artifactId>
-                               <version>2.1.1</version>
+                               <version>3.0</version>
                                <configuration>
                                        <locales>en</locales>
                                </configuration>
                                        </additionalProjectnatures>
                                </configuration>
                        </plugin>
+                       <!-- ====== DEPLOY ====== -->
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-release-plugin</artifactId>
+                               <version>2.2.1</version>
+                               <configuration>
+                                       <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
+                                       <autoVersionSubmodules>false</autoVersionSubmodules>
+                                       <!--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>
+               <!--pluginManagement>
+                       <plugins>
+                               <plugin>
+                                       <groupId>org.apache.maven.plugins</groupId>
+                                       <artifactId>maven-jar-plugin</artifactId>
+                                       <version>2.3.1</version>
+                               </plugin>
+                               <plugin>
+                                       <groupId>org.codehaus.mojo</groupId>
+                                       <artifactId>wagon-maven-plugin</artifactId>
+                                       <version>1.0-beta-3</version>
+                               </plugin-->
+               <!--plugin>
+                                       <groupId>org.eclipse.tycho</groupId>
+                                       <artifactId>tycho-packaging-plugin</artifactId>
+                                       <version>${tycho.version}</version-->
+               <!--executions>
+                                               <execution>
+                                                       <id>timestamp</id>
+                                                       <phase>validate</phase>
+                                                       <goals>
+                                                               <goal>timestamp</goal>
+                                                       </goals>
+                                               </execution>
+                                       </executions-->
+               <!-- for some reason configuration won't work here, have to define
+                                       in each module -->
+               <!--configuration>
+                                               <archive>
+                                                       <addMavenDescriptor>false</addMavenDescriptor>
+                                               </archive>
+                                               <environments>
+                                                       <environment>
+                                                               <os>macosx</os>
+                                                               <ws>cocoa</ws>
+                                                               <arch>x86</arch>
+                                                       </environment>
+                                               </environments>
+                                       </configuration>
+                               </plugin-->
+               <!--/plugins>
+               </pluginManagement-->
+               <extensions>
+                       <extension>
+                               <groupId>org.apache.maven.wagon</groupId>
+                               <artifactId>wagon-scm</artifactId>
+                               <version>1.0-alpha-5</version>
+                       </extension>
+                       <extension>
+                               <groupId>org.apache.maven.wagon</groupId>
+                               <artifactId>wagon-ssh</artifactId>
+                               <version>1.0-beta-7</version>
+                       </extension>
+                       <extension>
+                               <groupId>org.apache.maven.wagon</groupId>
+                               <artifactId>wagon-ssh-external</artifactId>
+                               <version>1.0-beta-6</version>
+                       </extension>
+                       <extension>
+                               <groupId>org.apache.maven.scm</groupId>
+                               <artifactId>maven-scm-manager-plexus</artifactId>
+                               <version>1.0</version>
+                       </extension>
+                       <extension>
+                               <groupId>org.apache.maven.scm</groupId>
+                               <artifactId>maven-scm-provider-svnexe</artifactId>
+                               <version>1.0</version>
+                       </extension>
+                       <!-- WebDAV plugin to upload snapshots -->
+                       <extension>
+                               <groupId>org.apache.maven.wagon</groupId>
+                               <artifactId>wagon-webdav</artifactId>
+                               <version>1.0-beta-2</version>
+                       </extension>
+               </extensions>
        </build>
        <reporting>
                <plugins>
                                <artifactId>maven-jxr-plugin</artifactId>
                                <version>2.2</version>
                        </plugin>
-                       <plugin>
-                               <!-- if you use @todo tags to remind you of things to be done (which is a good coding practice), the taglist report will generate a list of all the items marked @todo or TODO -->
-                               <groupId>org.codehaus.mojo</groupId>
-                               <artifactId>taglist-maven-plugin</artifactId>
-                               <version>2.4</version>
-                       </plugin>
-                       <plugin>
-                               <!-- Test coverage can be a useful indication of the quality of your unit tests. It basically tells you how much of your code is actually run by your unit tests, which, in turn, can give you a good idea of the tests' quality -->
-                               <groupId>org.codehaus.mojo</groupId>
-                               <artifactId>cobertura-maven-plugin</artifactId>
-                               <version>2.4</version>
-                               <!--
-                                       <executions>
-                                       <execution>
-                                       <id>clean</id>
-                                       <phase>clean</phase>
-                                       <goals>
-                                       <goal>clean</goal>
-                                       </goals>
-                                       </execution>
-                                       </executions>
-                               -->
-                       </plugin>
-                       <!--                    
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-project-info-reports-plugin</artifactId>
+                               <artifactId>maven-changes-plugin</artifactId>
+                               <version>2.3</version>
+                               <configuration>
+                                       <issueLinkTemplatePerSystem>
+                                               <default>%URL%/ticket/%ISSUE%</default>
+                                       </issueLinkTemplatePerSystem>
+                               </configuration>
                                <reportSets>
                                        <reportSet>
                                                <reports>
-                                                       <report>dependencies</report>
-                                                       <report>project-team</report>
-                                                       <report>mailing-list</report>
-                                                       <report>cim</report>
-                                                       <report>issue-tracking</report>
-                                                       <report>license</report>
-                                                       <report>scm</report>
+                                                       <report>changes-report</report>
                                                </reports>
                                        </reportSet>
                                </reportSets>
-                       </plugin>       -->
-                       <!-- The changes-maven-plugin plug-in uses a special XML file (src/changes/changes.xml) to track releases and changes in each release -->
-                       <!-- 
-                       <plugin>
-                               <groupId>org.codehaus.mojo</groupId>
-                               <artifactId>changes-maven-plugin</artifactId>
                        </plugin>
-                       <plugin>
-                               <artifactId>maven-surefire-plugin</artifactId>
-                       </plugin>
-                       -->
-                       <!-- The changelog plug-in generates a nice report describing which files have been changed and by whom -->
-                       <!-- 
-                       <plugin>
-                               <groupId>org.codehaus.mojo</groupId>
-                               <artifactId>changelog-maven-plugin</artifactId>
-                       </plugin>
-                       -->
                </plugins>
        </reporting>
        <!--     DISTRIBUTION MANAGEMENT -->
                        <uniqueVersion>false</uniqueVersion>
                        <id>wp5.e-taxonomy.eu</id>
                        <name>Edit Maven Repository</name>
-                       <url>scpexe://160.45.63.151/var/www/wp5.e-taxonomy.eu/cdmlib/mavenrepo/</url>
+                       <url>scpexe://160.45.63.151/var/www/wp5.e-taxonomy.eu/mavenrepo/</url>
                </repository>
        </distributionManagement>
-       <!-- **** DEPENDENCIES **** -->
-       <dependencies>
-               <dependency>
-                       <groupId>org.unitils</groupId>
-                       <artifactId>unitils</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>junit</groupId>
-                       <artifactId>junit</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>log4j</groupId>
-                       <artifactId>log4j</artifactId>
-               </dependency>
-       </dependencies>
-       <dependencyManagement>
-               <dependencies>
-                       <dependency>
-                               <groupId>eu.etaxonomy</groupId>
-                               <artifactId>taxeditor-store</artifactId>
-                               <version>${project.version}</version>
-                       </dependency>
-                       <dependency>
-                               <groupId>eu.etaxonomy</groupId>
-                               <artifactId>taxeditor-navigation</artifactId>
-                               <version>${project.version}</version>
-                       </dependency>
-                       <dependency>
-                               <groupId>eu.etaxonomy</groupId>
-                               <artifactId>taxeditor-editor</artifactId>
-                               <version>${project.version}</version>
-                       </dependency>
-                       <dependency>
-                               <groupId>eu.etaxonomy</groupId>
-                               <artifactId>taxeditor-bulkeditor</artifactId>
-                               <version>${project.version}</version>
-                       </dependency>
-                       <dependency>
-                               <groupId>eu.etaxonomy</groupId>
-                               <artifactId>taxeditor-application</artifactId>
-                               <version>${project.version}</version>
-                       </dependency>
-                       <!-- ******* VARIOUS ******* -->
-                       <dependency>
-                               <groupId>log4j</groupId>
-                               <artifactId>log4j</artifactId>
-                               <version>1.2.15</version>
-                       </dependency>
-                       <!-- hibernate 3.4 uses slf4j -->
-                       <dependency>
-                               <groupId>org.slf4j</groupId>
-                               <artifactId>slf4j-log4j12</artifactId>
-                               <version>1.5.2</version>
-                       </dependency>
-                       <dependency>
-                               <groupId>junit</groupId>
-                               <artifactId>junit</artifactId>
-                               <version>4.5</version>
-                               <scope>test</scope>
-                       </dependency>
-                       <dependency>
-                               <groupId>org.unitils</groupId>
-                               <artifactId>unitils</artifactId>
-                               <version>2.2</version>
-                               <scope>test</scope>
-                       </dependency>
-                       <dependency>
-                               <groupId>org.dbunit</groupId>
-                               <artifactId>dbunit</artifactId>
-                               <version>2.4.4</version>
-                               <scope>test</scope>
-                       </dependency>
-               </dependencies>
-       </dependencyManagement>
 </project>