From 2a76924004918537665d5e86bff9202d0e5feddc Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Mon, 19 Dec 2022 19:29:02 +0100 Subject: [PATCH] [Maven-Runtime] Simplify creation of sources artifacts The non-pde/tycho like name of the source artifact produced by the maven-source-plugin is not a problem because when assembling the p2-repository Tycho renames the jars accordingly. --- m2e-maven-runtime/pom.xml | 104 +++++++++++++------------------------- 1 file changed, 35 insertions(+), 69 deletions(-) diff --git a/m2e-maven-runtime/pom.xml b/m2e-maven-runtime/pom.xml index 644ccfd44..6ab7f3878 100644 --- a/m2e-maven-runtime/pom.xml +++ b/m2e-maven-runtime/pom.xml @@ -104,24 +104,6 @@ maven-resources-plugin 3.3.0 - - org.apache.maven.plugins - maven-antrun-plugin - 3.1.0 - - - ant-contrib - ant-contrib - 1.0b3 - - - ant - ant - - - - - org.eclipse.tycho tycho-p2-plugin @@ -220,48 +202,6 @@ - - org.apache.maven.plugins - maven-antrun-plugin - - - - build-sources-jar - - run - - package - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - biz.aQute.bnd bnd-maven-plugin @@ -292,23 +232,35 @@ - attach-sources-artifact + add-source-resources package - attach-artifact + add-resource - - - ${project.build.directory}/${project.artifactId}.source_${qualifiedVersion}.jar - java-source - sources - - + + + ${outputDirectory.sources} + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + + sources-jar + + jar-no-fork + + + + org.eclipse.tycho tycho-source-plugin @@ -350,6 +302,7 @@ org.apache.maven.plugins maven-antrun-plugin + 3.1.0 @@ -403,6 +356,19 @@ + + + ant-contrib + ant-contrib + 1.0b3 + + + ant + ant + + + +