diff options
author | Mickael Istria | 2020-08-28 19:51:58 +0000 |
---|---|---|
committer | Mickael Istria | 2020-08-31 18:46:36 +0000 |
commit | 9437eb9ca52e6e6ae1e2b6503ecb5a5cfbba363e (patch) | |
tree | 15d244cde29d95745f6d2273abddd583c4ddee03 | |
parent | bd4d1f88088cc6f7243157980afce7027fadb53d (diff) | |
download | org.eclipse.epp.packages-9437eb9ca52e6e6ae1e2b6503ecb5a5cfbba363e.tar.gz org.eclipse.epp.packages-9437eb9ca52e6e6ae1e2b6503ecb5a5cfbba363e.tar.xz org.eclipse.epp.packages-9437eb9ca52e6e6ae1e2b6503ecb5a5cfbba363e.zip |
Remove categories
Change-Id: I43a576b43c927396565deeaf693f942225442f12
Signed-off-by: Mickael Istria <mistria@redhat.com>
-rw-r--r-- | archive-template/pom.xml | 66 | ||||
-rw-r--r-- | archive-template/remove-categories.xml | 8 |
2 files changed, 66 insertions, 8 deletions
diff --git a/archive-template/pom.xml b/archive-template/pom.xml index 61893720..63e8be59 100644 --- a/archive-template/pom.xml +++ b/archive-template/pom.xml @@ -24,6 +24,64 @@ <build> <plugins> <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>target-platform-configuration</artifactId> + <version>${tycho.version}</version> + <configuration> + <executionEnvironment>none</executionEnvironment> + </configuration> + </plugin> + <plugin> + <groupId>org.eclipse.tycho.extras</groupId> + <artifactId>tycho-eclipserun-plugin</artifactId> + <version>${tycho.version}</version> + <executions> + <execution> + <id>remove-uncategorized</id> + <phase>package</phase> + <goals> + <goal>eclipse-run</goal> + </goals> + <configuration> + <appArgLine>-data target/antrun-workspace -application org.eclipse.ant.core.antRunner -buildfile remove-categories.xml</appArgLine> + <repositories> + <repository> + <id>eclipse</id> + <layout>p2</layout> + <url>http://download.eclipse.org/releases/latest</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.pde.api.tools</artifactId> + <type>eclipse-plugin</type> + </dependency> + </dependencies> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-p2-repository-plugin</artifactId> + <version>${tycho.version}</version> + <executions> + <execution> + <id>re-archive-without-categories</id> + <phase>package</phase> + <goals><goal>archive-repository</goal></goals> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> @@ -43,14 +101,6 @@ </execution> </executions> </plugin> - <plugin> - <groupId>org.eclipse.tycho</groupId> - <artifactId>target-platform-configuration</artifactId> - <version>${tycho.version}</version> - <configuration> - <executionEnvironment>none</executionEnvironment> - </configuration> - </plugin> </plugins> </build> </project> diff --git a/archive-template/remove-categories.xml b/archive-template/remove-categories.xml new file mode 100644 index 00000000..b87aab3b --- /dev/null +++ b/archive-template/remove-categories.xml @@ -0,0 +1,8 @@ +<project default="remove-categories"> + <target name="remove-categories"> + <p2.remove.iu> + <repository location="file:/${basedir}/target/repository" /> + <iu query="property[@name='org.eclipse.equinox.p2.type.category']" /> + </p2.remove.iu> + </target> +</project>
\ No newline at end of file |