aboutsummaryrefslogtreecommitdiffstats
blob: 61eb585ee02edc080c1d5c15d25d658f2d16f82e (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
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
   Copyright (C) 2011, 2018 Red Hat, Inc. and others

   This program and the accompanying materials are made
   available under the terms of the Eclipse Public License 2.0
   which is available at https://www.eclipse.org/legal/epl-2.0/
  
   SPDX-License-Identifier: EPL-2.0

   Contributors:
       Red Hat Incorporated - initial implementation
-->

<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>org.eclipse.linuxtools.releng</groupId>
    <artifactId>linuxtools-releng-parent</artifactId>
    <version>7.0.0-SNAPSHOT</version>
  </parent>

  <artifactId>org.eclipse.linuxtools.docker-site</artifactId>
  <packaging>eclipse-repository</packaging>

  <profiles>
     <profile>
     <id>build-server</id>
     <build>
        <plugins>
           <plugin>
             <artifactId>maven-antrun-plugin</artifactId>
             <executions>
               <execution>
                 <id>deploy</id>
                 <phase>verify</phase>
                 <goals>
                   <goal>run</goal>
                 </goals>
                 <configuration>
                   <target>
                    <delete includeemptydirs="false">
                       <fileset
                         dir="/home/data/httpd/download.eclipse.org/linuxtools/updates-docker-nightly">
                         <include name="**" />
                       </fileset>
                     </delete>
                     <copy includeemptydirs="false"
                       todir="/home/data/httpd/download.eclipse.org/linuxtools/updates-docker-nightly">
                       <fileset dir="target/repository">
                         <include name="**" />
                       </fileset>
                     </copy>
                   </target>
                 </configuration>
               </execution>
             </executions>
           </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <build>
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-publisher-plugin</artifactId>
        <version>${tycho-version}</version>
        <configuration>
          <publishArtifacts>true</publishArtifacts>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-repository-plugin</artifactId>
        <version>${tycho-version}</version>
	<executions>
          <execution>
            <id>default-archive-repository</id>
            <phase>verify</phase>
            <goals>
              <goal>archive-repository</goal>
            </goals>
            <configuration>
              <finalName>${project.artifactId}</finalName>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>prepare-promotion</id>
            <phase>package</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <target>
                <!-- copy scripts to build directory and execute -->
                <copy file="p2.xsl" todir="${project.build.directory}"/>
                <copy file="promoter.xml" todir="${project.build.directory}"/>
                <ant antfile="${project.build.directory}/promoter.xml"/>
              </target>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.eclipse.tycho.extras</groupId>
        <artifactId>tycho-eclipserun-plugin</artifactId>
        <version>${tycho-version}</version>
        <executions>
          <execution>
            <phase>verify</phase>
            <goals>
              <goal>eclipse-run</goal>
            </goals>
            <configuration>
              <applicationsArgs>
                <arg>-application</arg>
                <arg>org.eclipse.cbi.p2repo.analyzers.repoReport</arg>
              </applicationsArgs>
              <jvmArgs>
                <arg>-DreportRepoDir=${project.build.directory}/repository</arg>
                <arg>-DreportOutputDir=${project.build.directory}/repository/buildInfo</arg>
              <arg>-DreferenceRepo=/home/data/httpd/download.eclipse.org/releases/oxygen/</arg>
              </jvmArgs>
              <executionEnvironment>JavaSE-1.8</executionEnvironment>
              <dependencies>
              <dependency>
                <artifactId>org.eclipse.cbi.p2repo.analyzers</artifactId>
                <type>eclipse-plugin</type>
              </dependency>
              <dependency>
                <artifactId>org.eclipse.equinox.p2.core.feature</artifactId>
                <type>eclipse-feature</type>
              </dependency>
              <dependency>
                <artifactId>org.eclipse.e4.rcp</artifactId>
                <type>eclipse-feature</type>
              </dependency>
            </dependencies>
              <repositories>
                <repository>
                  <id>cbi-reports</id>
                  <url>http://download.eclipse.org/cbi/updates/analyzers/4.7/I20180130-1734</url>
                  <layout>p2</layout>
                </repository>
                <repository>
                  <id>eclipse-4.7.3a</id>
                  <url>http://download.eclipse.org/eclipse/updates/4.7/R-4.7.3a-201803300640/</url>
                  <layout>p2</layout>
                </repository>
              </repositories>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <name>Linux Tools Docker p2 Repository</name>
</project>