pom-root.xml 6.41 KB
Newer Older
1 2 3 4 5 6 7
<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/xsd/maven-4.0.0.xsd">

  <!--
    This is the root POM for RiseClipse.
8
    All common properties should be defined here.
9
    
10
    To build/install standalone tools, it must be installed with maven using the following command:
11 12 13
    mvn install:install-file -Dfile=pom-root.xml \
        -DgroupId=fr.centralesupelec.edf.riseclipse \
        -DartifactId=fr.centralesupelec.edf.riseclipse.developer.maven-root \
14
        -Dversion=1.0.0 -Dpackaging=pom
15 16
    
    To build/deploy standalone tools, it must be deployed using the appropriate command.
17 18 19 20 21
  -->

  <modelVersion>4.0.0</modelVersion>
 
  <groupId>fr.centralesupelec.edf.riseclipse</groupId>
22
  <artifactId>fr.centralesupelec.edf.riseclipse.developer.maven-root</artifactId>
23
  <version>1.0.2</version>
24 25 26 27
  <packaging>pom</packaging>
  
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
28 29
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
30 31 32
    
    <tycho-version>1.1.0</tycho-version>
    
33
    <unleash-maven-version>2.8.0</unleash-maven-version>
34 35
    <unleash-scm-provider-git-version>2.1.0</unleash-scm-provider-git-version>
    
36 37 38 39 40 41 42 43 44 45 46 47
    <eclipse-equinox-version>1.3.400</eclipse-equinox-version>
    <!--
      Current (2018-04-06, Oxygen) EMF version is 2.13.0
      it is found by tycho when building Eclipse plugins (using eclipse-oxygen repository)
      but not by maven-shade-plugin when building independant tools.
      On Maven central, only version 2.12 is available (and EMF is still
      not on repo.eclipse.org)
      
    <eclipse-emf-version>2.13.0</eclipse-emf-version>
    -->
    <eclipse-emf-version>2.12.0</eclipse-emf-version>
    <eclipse-ocl-version>1.3.0</eclipse-ocl-version>
48
    
49
    <log4j-version>1.2.17</log4j-version>
50 51
  </properties>

52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
  <profiles>
    <profile>
      <id>use-nexus-on-riceclipse-ci</id>
      <distributionManagement>
        <snapshotRepository>
          <id>nexus</id>
          <name>Nexus Snapshots</name>
          <url>http://riseclipse-ci.supelec.fr:8081/repository/maven-snapshots/</url>
        </snapshotRepository>
        <repository>
          <id>nexus</id>
          <name>Nexus Releases</name>
          <url>http://riseclipse-ci.supelec.fr:8081/repository/maven-releases/</url>
        </repository>
      </distributionManagement>
    </profile>
  </profiles>
  
70 71
  <repositories>
    <repository>
72 73
      <id>eclipse-oxygen</id>
      <url>http://download.eclipse.org/releases/oxygen</url>
74 75 76 77 78
      <layout>p2</layout>
    </repository>
  </repositories>

  <build>
79 80 81 82 83 84 85 86
    <pluginManagement>
      <plugins>
      
        <plugin>
          <!-- It is prefered over the standard release maven plugin -->
          <groupId>com.itemis.maven.plugins</groupId>
          <artifactId>unleash-maven-plugin</artifactId>
          <version>${unleash-maven-version}</version>
87 88
          <configuration>
            <tagNamePattern>v@{project.version}</tagNamePattern>
Dominique Marcadet's avatar
Dominique Marcadet committed
89 90
            <commitBeforeTagging>true</commitBeforeTagging>
            <allowLocalReleaseArtifacts>false</allowLocalReleaseArtifacts>
91
          </configuration>
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
          <dependencies>
            <dependency>
              <groupId>com.itemis.maven.plugins</groupId>
              <artifactId>unleash-scm-provider-git</artifactId>
              <version>${unleash-scm-provider-git-version}</version>
            </dependency>
          </dependencies>
        </plugin>

        <!-- Tycho is used to build eclipse plugins and update-site -->
        <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>target-platform-configuration</artifactId>
          <version>${tycho-version}</version>
          <configuration>
            <!--
              This was in the students POM files, not sure why and when it is needed,
              so commented out for the moment
              <pomDependencies>consider</pomDependencies>
            -->
  
            <!--
              Just to avoid:
              [WARNING] No explicit target runtime environment configuration. Build is platform dependent.
            -->
            <environments>
              <environment>
                <os>linux</os>
                <ws>gtk</ws>
                <arch>x86</arch>
              </environment>
              <environment>
                <os>linux</os>
                <ws>gtk</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>macosx</os>
                <ws>cocoa</ws>
                <arch>x86_64</arch>
              </environment>
            </environments>
          </configuration>
        </plugin>

        <plugin>
          <groupId>org.eclipse.tycho</groupId>
          <artifactId>tycho-packaging-plugin</artifactId>
          <version>${tycho-version}</version>
          <dependencies>
            <dependency>
              <groupId>org.eclipse.tycho.extras</groupId>
                <artifactId>tycho-buildtimestamp-jgit</artifactId>
                <version>${tycho-version}</version>
            </dependency>
          </dependencies>
          <configuration>
            <timestampProvider>jgit</timestampProvider>
            <jgit.ignore>pom.xml</jgit.ignore>
            <jgit.dirtyWorkingTree>ignore</jgit.dirtyWorkingTree>
          </configuration>
        </plugin>

        <plugin>
          <groupId>org.eclipse.tycho</groupId>
          <artifactId>tycho-source-plugin</artifactId>
          <version>${tycho-version}</version>
          <executions>
            <execution>
              <id>plugin-source</id>
              <goals>
                <goal>plugin-source</goal>
              </goals>
            </execution>
          </executions>
        </plugin>

      </plugins>
    </pluginManagement>
    
189 190 191
  </build>

</project>