|
194 | 194 | <build> |
195 | 195 | <plugins> |
196 | 196 | <plugin> |
197 | | - <groupId>org.apache.maven.plugins</groupId> |
198 | | - <artifactId>maven-antrun-plugin</artifactId> |
199 | | - <version>3.1.0</version> |
200 | | - <dependencies> |
201 | | - <dependency> |
202 | | - <groupId>ant-contrib</groupId> |
203 | | - <artifactId>ant-contrib</artifactId> |
204 | | - <version>1.0b3</version> |
205 | | - <exclusions> |
206 | | - <exclusion> |
207 | | - <groupId>ant</groupId> |
208 | | - <artifactId>ant</artifactId> |
209 | | - </exclusion> |
210 | | - </exclusions> |
211 | | - </dependency> |
212 | | - </dependencies> |
| 197 | + <groupId>org.eclipse.cbi.maven.plugins</groupId> |
| 198 | + <artifactId>eclipse-jarsigner-plugin</artifactId> |
| 199 | + <version>1.4.3</version> |
213 | 200 | <executions> |
214 | 201 | <execution> |
215 | | - <id>sign-node-files</id> |
| 202 | + <id>sign</id> |
| 203 | + <phase>package</phase> |
216 | 204 | <goals> |
217 | | - <goal>run</goal> |
| 205 | + <goal>sign</goal> |
218 | 206 | </goals> |
219 | | - <phase>package</phase> <!-- Do this before extracting sources--> |
220 | | - <configuration> |
221 | | - <target> |
222 | | - <!-- See last answer of https://stackoverflow.com/questions/4368243/maven-antrun-with-sequential-ant-contrib-fails-to-run/45958355 --> |
223 | | - <!-- and http://ant-contrib.sourceforge.net/tasks/tasks/index.html --> |
224 | | - <taskdef resource="net/sf/antcontrib/antlib.xml" |
225 | | - classpathref="maven.plugin.classpath" /> |
226 | | - <for param="jarFile"> |
227 | | - <fileset dir="${project.basedir}/target" includes="**/*.jar" /> |
228 | | - <sequential> |
229 | | - <local name="jarFilename" /> |
230 | | - <basename property="jarFilename" file="@{jarFile}" suffix=".jar" /> |
231 | | - <local name="signingDir" /> |
232 | | - <property name="signingDir" value="${project.build.directory}/node-signing/${jarFilename}" /> |
233 | | - |
234 | | - <unzip src="@{jarFile}" dest="${signingDir}"> |
235 | | - <patternset includes="node_modules/**/*.node" /> |
236 | | - </unzip> |
237 | | - |
238 | | - <for param="nodeFileAbsolute"> |
239 | | - <fileset dir="${signingDir}" includes="node_modules/**/*.node" erroronmissingdir="false" /> |
240 | | - <sequential> |
241 | | - <echo level="info" message="Mac-sign @{nodeFileAbsolute}" /> |
242 | | - <local name="nodeFile" /> |
243 | | - <property name="nodeFile" value="@{nodeFileAbsolute}" relative="true" basedir="${signingDir}" /> |
244 | | - <move file="@{nodeFileAbsolute}" tofile="@{nodeFileAbsolute}-tosign" /> |
245 | | - <exec executable="curl" dir="${signingDir}" failonerror="true"> |
246 | | - <arg value="-o" /> |
247 | | - <arg value="${nodeFile}" /> |
248 | | - <arg value="-F" /> |
249 | | - <arg value="file=@${nodeFile}-tosign" /> |
250 | | - <arg value="https://cbi.eclipse.org/macos/codesign/sign" /> |
251 | | - </exec> |
252 | | - <exec executable="jar" dir="${signingDir}" failonerror="true"> |
253 | | - <arg value="--update" /> |
254 | | - <arg value="--file=@{jarFile}" /> |
255 | | - <arg value="${nodeFile}" /> |
256 | | - </exec> |
257 | | - </sequential> |
258 | | - </for> |
259 | | - </sequential> |
260 | | - </for> |
261 | | - </target> |
262 | | - </configuration> |
263 | 207 | </execution> |
264 | 208 | </executions> |
265 | 209 | </plugin> |
266 | 210 | <plugin> |
267 | | - <groupId>org.eclipse.cbi.maven.plugins</groupId> |
268 | | - <artifactId>eclipse-jarsigner-plugin</artifactId> |
269 | | - <version>1.4.3</version> |
| 211 | + <groupId>org.eclipse.tycho</groupId> |
| 212 | + <artifactId>tycho-p2-plugin</artifactId> |
| 213 | + <version>${tycho-version}</version> |
270 | 214 | <executions> |
271 | 215 | <execution> |
272 | | - <id>sign</id> |
| 216 | + <id>p2-metadata</id> |
273 | 217 | <phase>package</phase> |
274 | 218 | <goals> |
275 | | - <goal>sign</goal> |
| 219 | + <goal>p2-metadata</goal> |
276 | 220 | </goals> |
277 | 221 | </execution> |
278 | 222 | </executions> |
| 223 | + <configuration> |
| 224 | + <defaultP2Metadata>false</defaultP2Metadata> |
| 225 | + </configuration> |
279 | 226 | </plugin> |
280 | 227 | </plugins> |
281 | 228 | </build> |
|
0 commit comments