Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMat Booth2017-07-26 12:02:20 -0400
committerMat Booth2017-08-10 09:24:44 -0400
commit80dbbc5105869dc66735bfb8bf13f720ba6cdd86 (patch)
treefe62b6b1d8e651dab79920b33eca775ff767ca46
parent9fa902465930bce6bf8dee0e36dc08dd7fb3f631 (diff)
downloadeclipse.platform.releng.aggregator-80dbbc5105869dc66735bfb8bf13f720ba6cdd86.tar.gz
eclipse.platform.releng.aggregator-80dbbc5105869dc66735bfb8bf13f720ba6cdd86.tar.xz
eclipse.platform.releng.aggregator-80dbbc5105869dc66735bfb8bf13f720ba6cdd86.zip
Bug 442770 - Use maven assembly plugin to generate sources tarball
Also standardise on assembly plugin 3.0.0 Change-Id: Ib9365c6a4baef8be230483cd05072786d3771b76 Signed-off-by: Mat Booth <mat.booth@redhat.com>
-rw-r--r--eclipse-platform-parent/pom.xml5
-rw-r--r--eclipse-platform-sources/pom.xml49
-rw-r--r--eclipse-platform-sources/sources.xml49
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/pom.xml1
4 files changed, 103 insertions, 1 deletions
diff --git a/eclipse-platform-parent/pom.xml b/eclipse-platform-parent/pom.xml
index caa1419f..4d6f2206 100644
--- a/eclipse-platform-parent/pom.xml
+++ b/eclipse-platform-parent/pom.xml
@@ -540,6 +540,11 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>3.0.0</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
</plugin>
diff --git a/eclipse-platform-sources/pom.xml b/eclipse-platform-sources/pom.xml
new file mode 100644
index 00000000..b8083c9a
--- /dev/null
+++ b/eclipse-platform-sources/pom.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2017 Eclipse Foundation.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Distribution License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/org/documents/edl-v10.php
+-->
+<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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.eclipse</groupId>
+ <artifactId>eclipse-platform-parent</artifactId>
+ <version>4.8.0-SNAPSHOT</version>
+ <relativePath>../eclipse-platform-parent</relativePath>
+ </parent>
+
+ <artifactId>eclipse-platform-sources</artifactId>
+ <packaging>pom</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <descriptors>
+ <descriptor>sources.xml</descriptor>
+ </descriptors>
+ <tarLongFileMode>gnu</tarLongFileMode>
+ <appendAssemblyId>false</appendAssemblyId>
+ <finalName>${project.artifactId}-${buildId}</finalName>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/eclipse-platform-sources/sources.xml b/eclipse-platform-sources/sources.xml
new file mode 100644
index 00000000..11ce8035
--- /dev/null
+++ b/eclipse-platform-sources/sources.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2014-2017 Red Hat Inc.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Distribution License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/org/documents/edl-v10.php
+
+ Contributors:
+ Mat Booth - initial implementation
+-->
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+ <id>sources</id>
+ <formats>
+ <!-- TODO: For better compression, use tar.xz when maven-assembly-plugin 3.1.0 is released. -->
+ <format>tar.bz2</format>
+ </formats>
+ <includeBaseDirectory>true</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${project.basedir}/..</directory>
+ <excludes>
+ <!-- Exclude pre-built binary artifacts -->
+ <exclude>eclipse.platform.resources/**/*.dll</exclude>
+ <exclude>eclipse.platform.resources/**/*.jnilib</exclude>
+ <exclude>eclipse.platform.resources/**/*.so</exclude>
+ <exclude>eclipse.platform.swt.binaries/**/*.dll</exclude>
+ <exclude>eclipse.platform.swt.binaries/**/*.jnilib</exclude>
+ <exclude>eclipse.platform.swt.binaries/**/*.so</exclude>
+ <exclude>eclipse.platform.team/**/*.dll</exclude>
+ <exclude>eclipse.platform.team/**/*.so</exclude>
+ <exclude>rt.equinox.binaries/org.eclipse.equinox.executable/bin/**</exclude>
+ <exclude>rt.equinox.binaries/org.eclipse.equinox.executable/contributed/**</exclude>
+ <exclude>rt.equinox.binaries/**/*.dll</exclude>
+ <exclude>rt.equinox.binaries/**/*.so</exclude>
+ <exclude>rt.equinox.bundles/**/*.dll</exclude>
+ <exclude>rt.equinox.bundles/**/*.jnilib</exclude>
+ <exclude>rt.equinox.bundles/**/*.so</exclude>
+ <!-- Exclude scripts and stuff that distro integrators don't need -->
+ <exclude>production/**</exclude>
+ <exclude>scripts/**</exclude>
+ <exclude>target/**</exclude>
+ <exclude>workspace/**</exclude>
+ </excludes>
+ </fileSet>
+ </fileSets>
+</assembly>
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/pom.xml b/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/pom.xml
index f30b8482..9a87a0d6 100644
--- a/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/pom.xml
+++ b/eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/pom.xml
@@ -195,7 +195,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
- <version>2.5.5</version>
<configuration>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>

Back to the top