Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

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

  <!--
    This is the root POM for RiseClipse.
    All common properties should be defiened here.
9 10 11 12 13
    
    To build command line tools, it must be installed with maven using the following command:
    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 17 18 19
  -->

  <modelVersion>4.0.0</modelVersion>
 
  <groupId>fr.centralesupelec.edf.riseclipse</groupId>
20
  <artifactId>fr.centralesupelec.edf.riseclipse.developer.maven-root</artifactId>
21
  <version>1.0.1-SNAPSHOT</version>
22 23 24 25
  <packaging>pom</packaging>
  
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
26 27
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
28 29 30
    
    <tycho-version>1.1.0</tycho-version>
    
31
    <unleash-maven-version>2.8.0</unleash-maven-version>
32 33
    <unleash-scm-provider-git-version>2.1.0</unleash-scm-provider-git-version>
    
34 35 36 37 38 39 40 41 42 43 44 45
    <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>
46
    
47
    <log4j-version>1.2.17</log4j-version>
48 49
  </properties>

50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
  <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>
  
68 69
  <repositories>
    <repository>
70 71
      <id>eclipse-oxygen</id>
      <url>http://download.eclipse.org/releases/oxygen</url>
72 73 74 75 76
      <layout>p2</layout>
    </repository>
  </repositories>

  <build>
77 78 79 80 81 82 83 84
    <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>
85 86
          <configuration>
            <tagNamePattern>v@{project.version}</tagNamePattern>
Dominique Marcadet's avatar
Dominique Marcadet committed
87 88
            <commitBeforeTagging>true</commitBeforeTagging>
            <allowLocalReleaseArtifacts>false</allowLocalReleaseArtifacts>
89
          </configuration>
90 91 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
          <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>
    
187
    <plugins>
188

189 190 191 192 193 194 195 196
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-maven-plugin</artifactId>
      </plugin>

      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
197 198 199 200 201 202 203 204 205 206
      </plugin>

      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-packaging-plugin</artifactId>
      </plugin>

      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-source-plugin</artifactId>
207 208 209 210 211 212
      </plugin>

    </plugins>
  </build>

</project>