Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 7e6fd2640de10855f37699db1f45ab9fe0e012c6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                      
                                              



                                                                             
 

                                            
                                                  
   
                                                                                                                                                                                                         


                                    

                                                                        
                                     




                                              
              
                                            

               
      
                                                                                                                            
                











                                                 
 



                                                       
                              








                                                                                     
                                            




                            




















































                                                                                                                      


































                                                              

                                                        
                                                 

























                                                                                                             
                              


















                                                                   
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (c) 2012, 2014 Eclipse Foundation.
  All rights reserved. This program and the accompanying materials
  are made available under the terms of the Eclipse Distribution License v1.0
  which accompanies this distribution, and is available at
  http://www.eclipse.org/org/documents/edl-v10.php

  Contributors:
     Igor Fedorenko - initial implementation
     David Williams - improvements and maintenance
-->
<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>

  <parent>
    <groupId>eclipse.platform.releng.tychoeclipsebuilder</groupId>
    <artifactId>eclipse.platform.releng.tychoeclipsebuilder</artifactId>
    <version>4.4.0-SNAPSHOT</version>
  </parent>

  <artifactId>eclipse-junit-tests</artifactId>
  <packaging>eclipse-repository</packaging>

  <properties>
    <timestamp>${buildTimestamp}</timestamp>
  </properties>

  <!--
    igorf: I *guess* junit-tests is built by PDE/Build from org.eclipse.releng.eclipsebuilder/eclipse/buildConfigs/sdk.tests
    davidw: Yes.
   -->

  <build>
    <finalName>${project.artifactId}</finalName>

    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>


    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.6</version>
        <executions>
          <execution>
            <id>filter-resources</id>
            <goals>
              <goal>resources</goal>
            </goals>
            <phase>process-resources</phase>
            <configuration>
              <outputDirectory>${project.build.directory}/resources</outputDirectory>
              <escapeString>\</escapeString>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.eclipse.tycho.extras</groupId>
        <artifactId>tycho-p2-extras-plugin</artifactId>
        <version>${tycho-extras.version}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>mirror</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <source>
            <!-- source repositories to mirror from -->
            <repository>
              <url>${project.baseUri}/target/repository</url>
              <layout>p2</layout>
              <!-- supported layouts are "p2-metadata", "p2-artifacts", and "p2" (for joint repositories; default) -->
            </repository>
          </source>

          <!-- starting from here all configuration parameters are optional -->
          <!-- they are only shown here with default values for documentation purpose -->

          <!-- List of IUs to mirror. If omitted, allIUs will be mirrored. -->
          <!-- Omitted IU version element means latest version of the IU -->
          <ius>
            <iu>
              <id>org.eclipse.test.feature.group</id>
            </iu>
          </ius>
          <!-- The destination directory to mirror to. -->
          <destination>${project.build.directory}/eclipse-test-framework</destination>
          <!-- Whether only strict dependencies should be followed. -->
          <!-- "strict" means perfect version match -->
          <followStrictOnly>false</followStrictOnly>
          <!-- Whether or not to follow optional requirements. -->
          <includeOptional>false</includeOptional>
          <!-- Whether or not to follow non-greedy requirements. -->
          <includeNonGreedy>false</includeNonGreedy>
          <!-- Filter properties. E.g. filter only one platform -->
          <!-- Whether to filter the resulting set of IUs to only -->
          <!-- include the latest version of each IU -->
          <latestVersionOnly>true</latestVersionOnly>
          <!-- don't mirror artifacts, only metadata -->
          <mirrorMetadataOnly>false</mirrorMetadataOnly>
          <!-- whether to compress the content.xml/artifacts.xml -->
          <compress>false</compress>
          <!-- whether to append to the target repository content -->
          <append>true</append>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
        <configuration>
          <resolver>p2</resolver>
          <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.cbi.maven.plugins</groupId>
        <artifactId>eclipse-cbi-plugin</artifactId>
        <version>${cbi-plugins.version}</version>
        <executions>
          <execution>
            <id>plugin-versions</id>
            <goals>
              <goal>plugin-versions</goal>
            </goals>
            <phase>package</phase>
            <configuration>
              <destination>${project.build.directory}/resources/finalPluginsVersions.properties</destination>
            </configuration>
          </execution>
          <execution>
            <id>test-properties</id>
            <goals>
              <goal>test-properties</goal>
            </goals>
            <phase>package</phase>
            <configuration>
              <destination>${project.build.directory}/resources/test.properties</destination>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>2.4</version>
        <configuration>
          <descriptors>
            <descriptor>src/main/assembly/assembly.xml</descriptor>
          </descriptors>
        </configuration>
        <executions>
          <execution>
            <id>make-assembly</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>

Back to the top