|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <project
|
3 |
| - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
4 |
| - xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
5 |
| - <modelVersion>4.0.0</modelVersion> |
6 |
| - <parent> |
7 |
| - <artifactId>com.googlecode.cppcheclipse.parent</artifactId> |
8 |
| - <groupId>com.googlecode.cppcheclipse</groupId> |
9 |
| - <version>1.1.2-SNAPSHOT</version> |
10 |
| - <relativePath>../com.googlecode.cppcheclipse.parent/pom.xml</relativePath> |
11 |
| - </parent> |
12 |
| - <artifactId>com.googlecode.cppcheclipse.repository</artifactId> |
13 |
| - <packaging>eclipse-repository</packaging> |
14 |
| - |
15 |
| - <!-- settings for bintray deployment, taken from https://raw.githubusercontent.com/LorenzoBettini/p2composite-bintray-example/master/p2composite.example.site/pom.xml --> |
16 |
| - <properties> |
17 |
| - <!-- The name of your own Bintray repository --> |
18 |
| - <bintray.repo>p2</bintray.repo> |
19 |
| - <!-- The name of your own Bintray repository's package for releases --> |
20 |
| - <bintray.package>releases</bintray.package> |
21 |
| - <!-- The label for the Composite sites --> |
22 |
| - <site.label>Composite Site for cppcheclipse</site.label> |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| 4 | + xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + <parent> |
| 7 | + <artifactId>com.googlecode.cppcheclipse.parent</artifactId> |
| 8 | + <groupId>com.googlecode.cppcheclipse</groupId> |
| 9 | + <version>1.2.0-SNAPSHOT</version> |
| 10 | + <relativePath>../com.googlecode.cppcheclipse.parent/pom.xml</relativePath> |
| 11 | + </parent> |
| 12 | + <artifactId>com.googlecode.cppcheclipse.repository</artifactId> |
| 13 | + <packaging>eclipse-repository</packaging> |
23 | 14 |
|
24 |
| - <!-- If the Bintray repository is owned by someone different from your |
25 |
| - user, then specify the bintray.owner explicitly --> |
26 |
| - <bintray.owner>cppcheclipse</bintray.owner> |
27 |
| - <!-- Define bintray.user and bintray.apikey in some secret place, |
28 |
| - like .m2/settings.xml --> |
| 15 | + <properties> |
| 16 | + |
| 17 | + </properties> |
29 | 18 |
|
30 |
| - <!-- Default values for remote directories --> |
31 |
| - <bintray.releases.path>releases</bintray.releases.path> |
32 |
| - <bintray.composite.path>updates</bintray.composite.path> |
33 |
| - <bintray.zip.path>zipped</bintray.zip.path> |
34 |
| - <!-- note that the following must be consistent with the path schema |
35 |
| - used to publish child composite repositories and actual released p2 repositories --> |
36 |
| - <child.repository.path.prefix>../../releases/</child.repository.path.prefix> |
| 19 | + <build> |
| 20 | + <extensions> |
| 21 | + <extension> |
| 22 | + <groupId>org.apache.maven.wagon</groupId> |
| 23 | + <artifactId>wagon-ftp</artifactId> |
| 24 | + <version>3.4.3</version> |
| 25 | + </extension> |
| 26 | + </extensions> |
| 27 | + </build> |
| 28 | + |
| 29 | + <profiles> |
| 30 | + <!-- This profile is used to upload the repo --> |
| 31 | + <profile> |
| 32 | + <id>upload-p2-repo</id> |
| 33 | + <properties> |
| 34 | + <!-- Properties relative to the |
| 35 | + distant host where to upload the repo --> |
| 36 | + <ftp.url>ftp://ftpcluster.loopia.se</ftp.url> |
| 37 | + <!-- Relative path to the repo being uploaded --> |
| 38 | + <local.p2.repository>${project.build.directory}/repository/</local.p2.repository> |
| 39 | + <remote.p2.repository>/</remote.p2.repository> |
37 | 40 | </properties>
|
38 | 41 |
|
39 | 42 | <build>
|
40 | 43 | <plugins>
|
41 |
| - <!-- make sure that zipped p2 repositories have the fully qualified version. |
42 |
| - This is set through https://eclipse.org/tycho/sitedocs/tycho-packaging-plugin/build-qualifier-mojo.html |
43 |
| - --> |
44 | 44 | <plugin>
|
45 |
| - <groupId>org.eclipse.tycho</groupId> |
46 |
| - <artifactId>tycho-p2-repository-plugin</artifactId> |
47 |
| - <version>${tycho-version}</version> |
| 45 | + <groupId>org.codehaus.mojo</groupId> |
| 46 | + <artifactId>wagon-maven-plugin</artifactId> |
| 47 | + <version>2.0.0</version> |
| 48 | + <executions> |
| 49 | + <execution> |
| 50 | + <id>upload-repo</id> |
| 51 | + <phase>install</phase> |
| 52 | + <goals> |
| 53 | + <goal>upload</goal> |
| 54 | + </goals> |
48 | 55 | <configuration>
|
49 |
| - <finalName>${project.artifactId}-${qualifiedVersion}</finalName> |
| 56 | + <fromDir>${local.p2.repository}</fromDir> |
| 57 | + <toDir>${remote.p2.repository}</toDir> |
| 58 | + <includes>**/*</includes> |
| 59 | + <excludes>pom.xml</excludes> |
| 60 | + <url>${ftp.url}</url> |
| 61 | + <!-- Points to .m2/settings.xml |
| 62 | + where the connection settings are |
| 63 | + stored as shown below --> |
| 64 | + <!-- <server> --> |
| 65 | + <!-- <id>cppcheck-p2-repo</id> --> |
| 66 | + <!-- <username>username</username> --> |
| 67 | + <!-- <password>password</password> --> |
| 68 | + <!-- </server> --> |
| 69 | + <serverId>cppcheck-p2-repo</serverId> |
50 | 70 | </configuration>
|
| 71 | + </execution> |
| 72 | + </executions> |
51 | 73 | </plugin>
|
52 | 74 | </plugins>
|
53 | 75 | </build>
|
54 |
| - |
55 |
| - <profiles> |
56 |
| - <profile> |
57 |
| - <!-- Activate this profile to perform the release to Bintray --> |
58 |
| - <id>release-composite</id> |
59 |
| - <activation> |
60 |
| - <activeByDefault>false</activeByDefault> |
61 |
| - </activation> |
62 |
| - |
63 |
| - <build> |
64 |
| - <plugins> |
65 |
| - <plugin> |
66 |
| - <artifactId>maven-antrun-plugin</artifactId> |
67 |
| - <version>${maven-antrun-plugin.version}</version> |
68 |
| - <executions> |
69 |
| - <execution> |
70 |
| - <!-- Retrieve possibly existing remote composite metadata --> |
71 |
| - <id>update-local-repository</id> |
72 |
| - <phase>prepare-package</phase> |
73 |
| - <configuration> |
74 |
| - <target> |
75 |
| - <ant antfile="${basedir}/bintray.ant" target="get-composite-metadata"> |
76 |
| - </ant> |
77 |
| - </target> |
78 |
| - </configuration> |
79 |
| - <goals> |
80 |
| - <goal>run</goal> |
81 |
| - </goals> |
82 |
| - </execution> |
83 |
| - |
84 |
| - <execution> |
85 |
| - <!-- Deploy p2 repository, p2 composite updated metadata and zipped p2 repository --> |
86 |
| - <id>deploy-repository</id> |
87 |
| - <phase>verify</phase> |
88 |
| - <configuration> |
89 |
| - <target> |
90 |
| - <ant antfile="${basedir}/bintray.ant" target="push-to-bintray"> |
91 |
| - </ant> |
92 |
| - </target> |
93 |
| - </configuration> |
94 |
| - <goals> |
95 |
| - <goal>run</goal> |
96 |
| - </goals> |
97 |
| - </execution> |
98 |
| - </executions> |
99 |
| - </plugin> |
100 |
| - |
101 |
| - <plugin> |
102 |
| - <groupId>org.eclipse.tycho.extras</groupId> |
103 |
| - <artifactId>tycho-eclipserun-plugin</artifactId> |
104 |
| - <version>${tycho-version}</version> |
105 |
| - <configuration> |
106 |
| - <!-- Update p2 composite metadata or create it --> |
107 |
| - <!-- IMPORTANT: DO NOT split the arg line --> |
108 |
| - <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> |
109 |
| - <repositories> |
110 |
| - <repository> |
111 |
| - <id>mars</id> |
112 |
| - <layout>p2</layout> |
113 |
| - <url>http://download.eclipse.org/releases/mars</url> |
114 |
| - </repository> |
115 |
| - </repositories> |
116 |
| - <dependencies> |
117 |
| - <dependency> |
118 |
| - <artifactId>org.eclipse.ant.core</artifactId> |
119 |
| - <type>eclipse-plugin</type> |
120 |
| - </dependency> |
121 |
| - <dependency> |
122 |
| - <artifactId>org.apache.ant</artifactId> |
123 |
| - <type>eclipse-plugin</type> |
124 |
| - </dependency> |
125 |
| - <dependency> |
126 |
| - <artifactId>org.eclipse.equinox.p2.repository.tools</artifactId> |
127 |
| - <type>eclipse-plugin</type> |
128 |
| - </dependency> |
129 |
| - <dependency> |
130 |
| - <artifactId>org.eclipse.equinox.p2.core.feature</artifactId> |
131 |
| - <type>eclipse-feature</type> |
132 |
| - </dependency> |
133 |
| - <dependency> |
134 |
| - <artifactId>org.eclipse.equinox.p2.extras.feature</artifactId> |
135 |
| - <type>eclipse-feature</type> |
136 |
| - </dependency> |
137 |
| - <dependency> |
138 |
| - <artifactId>org.eclipse.equinox.ds</artifactId> |
139 |
| - <type>eclipse-plugin</type> |
140 |
| - </dependency> |
141 |
| - </dependencies> |
142 |
| - </configuration> |
143 |
| - <executions> |
144 |
| - <execution> |
145 |
| - <id>add-p2-composite-repository</id> |
146 |
| - <phase>package</phase> |
147 |
| - <goals> |
148 |
| - <goal>eclipse-run</goal> |
149 |
| - </goals> |
150 |
| - </execution> |
151 |
| - </executions> |
152 |
| - </plugin> |
153 |
| - </plugins> |
154 |
| - </build> |
155 |
| - </profile> |
| 76 | + </profile> |
156 | 77 | </profiles>
|
| 78 | + |
157 | 79 | </project>
|
0 commit comments