diff options
author | Mat Booth | 2017-07-26 16:02:20 +0000 |
---|---|---|
committer | Mat Booth | 2017-08-10 13:24:44 +0000 |
commit | 80dbbc5105869dc66735bfb8bf13f720ba6cdd86 (patch) | |
tree | fe62b6b1d8e651dab79920b33eca775ff767ca46 /eclipse-platform-sources | |
parent | 9fa902465930bce6bf8dee0e36dc08dd7fb3f631 (diff) | |
download | eclipse.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>
Diffstat (limited to 'eclipse-platform-sources')
-rw-r--r-- | eclipse-platform-sources/pom.xml | 49 | ||||
-rw-r--r-- | eclipse-platform-sources/sources.xml | 49 |
2 files changed, 98 insertions, 0 deletions
diff --git a/eclipse-platform-sources/pom.xml b/eclipse-platform-sources/pom.xml new file mode 100644 index 000000000..b8083c9a5 --- /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 000000000..11ce8035d --- /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> |