Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8e4dbe752ba4e13c1d64a0d266d31a02245f36cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="UTF-8"?>
<!--
   Copyright (C) 2011, 2012 Obeo
 
   Cedric Brun <cedric.brun@obeo.fr>
   William Piers <william.piers@obeo.fr>

-->

<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>
    <artifactId>m2m.atl-parent</artifactId>
    <groupId>org.eclipse.m2m.atl</groupId>
    <version>4.0.0-SNAPSHOT</version>
    <relativePath>../../releng/org.eclipse.m2m.atl.releng.parent</relativePath>
  </parent>
  
  <artifactId>org.eclipse.m2m.atl.update</artifactId>
  <packaging>eclipse-repository</packaging>

  <!-- see http://issues.sonatype.org/browse/TYCHO-313 -->
  <version>4.0.0-SNAPSHOT</version>

  <build>
    <plugins>
       <plugin>
            <groupId>org.eclipse.tycho</groupId>
            <artifactId>tycho-p2-repository-plugin</artifactId>
            <version>${tycho-version}</version>
            <configuration>
        	    <createArtifactRepository>true</createArtifactRepository>
            	<finalName>${project.artifactId}</finalName>
            	<compress>true</compress>
         	</configuration>
       </plugin>
       <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <executions>
          <execution>
            <id>copy-resources</id>
            <phase>validate</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${basedir}/target/repository</outputDirectory>
              <resources>
                <resource>
                  <directory>.</directory>
                  <includes>
                    <include>index.html</include>
	            <include>web/*</include>
                  </includes>
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      	<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<id>prepare_promotion</id>
						<phase>verify</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<!-- create a properties file for promotion process -->
								<mkdir dir="${project.build.directory}/promotion"/>
								<echo file="${project.build.directory}/promotion/promote.properties"
									message="#ATL promotion process.${line.separator}build.alias=${BUILD_ALIAS}${line.separator}build.qualifier=${env.BUILD_TYPE}${buildQualifier}${line.separator}version=${unqualifiedVersion}"/>
								<!-- copy necessary scripts to archive location -->
								<copy file="p2.xsl" todir="${project.build.directory}/promotion"/>
								<copy file="promoter.xml" todir="${project.build.directory}/promotion"/>
								<copy file="addDownloadStats.xsl" todir="${project.build.directory}/promotion"/>
							</tasks>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

</project>

Back to the top