forked from kwin/cppcheclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
157 lines (149 loc) · 5.62 KB
/
pom.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>com.googlecode.cppcheclipse.parent</artifactId>
<groupId>com.googlecode.cppcheclipse</groupId>
<version>1.1.1-SNAPSHOT</version>
<relativePath>../com.googlecode.cppcheclipse.parent/pom.xml</relativePath>
</parent>
<artifactId>com.googlecode.cppcheclipse.repository</artifactId>
<packaging>eclipse-repository</packaging>
<!-- settings for bintray deployment, taken from https://raw.githubusercontent.com/LorenzoBettini/p2composite-bintray-example/master/p2composite.example.site/pom.xml -->
<properties>
<!-- The name of your own Bintray repository -->
<bintray.repo>p2</bintray.repo>
<!-- The name of your own Bintray repository's package for releases -->
<bintray.package>releases</bintray.package>
<!-- The label for the Composite sites -->
<site.label>Composite Site for cppcheclipse</site.label>
<!-- If the Bintray repository is owned by someone different from your
user, then specify the bintray.owner explicitly -->
<bintray.owner>cppcheclipse</bintray.owner>
<!-- Define bintray.user and bintray.apikey in some secret place,
like .m2/settings.xml -->
<!-- Default values for remote directories -->
<bintray.releases.path>releases</bintray.releases.path>
<bintray.composite.path>updates</bintray.composite.path>
<bintray.zip.path>zipped</bintray.zip.path>
<!-- note that the following must be consistent with the path schema
used to publish child composite repositories and actual released p2 repositories -->
<child.repository.path.prefix>../../releases/</child.repository.path.prefix>
</properties>
<build>
<plugins>
<!-- make sure that zipped p2 repositories have the fully qualified version.
This is set through https://eclipse.org/tycho/sitedocs/tycho-packaging-plugin/build-qualifier-mojo.html
-->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<finalName>${project.artifactId}-${qualifiedVersion}</finalName>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!-- Activate this profile to perform the release to Bintray -->
<id>release-composite</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven-antrun-plugin.version}</version>
<executions>
<execution>
<!-- Retrieve possibly existing remote composite metadata -->
<id>update-local-repository</id>
<phase>prepare-package</phase>
<configuration>
<target>
<ant antfile="${basedir}/bintray.ant" target="get-composite-metadata">
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<!-- Deploy p2 repository, p2 composite updated metadata and zipped p2 repository -->
<id>deploy-repository</id>
<phase>verify</phase>
<configuration>
<target>
<ant antfile="${basedir}/bintray.ant" target="push-to-bintray">
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<!-- Update p2 composite metadata or create it -->
<!-- IMPORTANT: DO NOT split the arg line -->
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile packaging-p2composite.ant p2.composite.add -Dsite.label="${site.label}" -Dproject.build.directory=${project.build.directory} -DunqualifiedVersion=${unqualifiedVersion} -DbuildQualifier=${buildQualifier} -Dchild.repository.path.prefix="${child.repository.path.prefix}"</appArgLine>
<repositories>
<repository>
<id>mars</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/mars</url>
</repository>
</repositories>
<dependencies>
<dependency>
<artifactId>org.eclipse.ant.core</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.apache.ant</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.repository.tools</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.core.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.extras.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.ds</artifactId>
<type>eclipse-plugin</type>
</dependency>
</dependencies>
</configuration>
<executions>
<execution>
<id>add-p2-composite-repository</id>
<phase>package</phase>
<goals>
<goal>eclipse-run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>