From 3af32a349a6b4e5a0d6e2ceeb5ef911a1961844e Mon Sep 17 00:00:00 2001 From: Marc-Andre Laperle Date: Tue, 13 Jan 2015 23:18:44 -0500 Subject: [PATCH] Add SourceReferences to plugins This allows the user to clone and checkout the source code of CDT without knowing where the repository is. See: https://wiki.eclipse.org/PDE/UI/SourceReferences One use case is to right-click on a plug-in under the Plug-in dependencies in Package Explorer view and select Import from Repository. Note that for this EGit needs to be installed. What this patch does is to let Tycho generate the source references in the MANIFEST.MF of the built jars. So to test this patch, one can build the update site locally and inspect the manifests of the (non-source) jars. Change-Id: I807cd7842e3485ae1affcaa03ae08bdbb1677c97 Signed-off-by: Marc-Andre Laperle Reviewed-on: https://git.eclipse.org/r/39549 Tested-by: Hudson CI Reviewed-by: Alvaro Sanchez-Leon Tested-by: Alvaro Sanchez-Leon --- pom.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pom.xml b/pom.xml index 36960480031..c6895c26dcb 100644 --- a/pom.xml +++ b/pom.xml @@ -24,6 +24,7 @@ ${project.basedir}/../../target/jacoco.exec cdt-e4.4 http://download.eclipse.org/eclipse/updates/4.4 + scm:git:git://git.eclipse.org/gitroot/cdt/org.eclipse.cdt.git @@ -550,6 +551,23 @@ + + org.eclipse.tycho + tycho-packaging-plugin + ${tycho-version} + + + true + + + + + org.eclipse.tycho.extras + tycho-sourceref-jgit + ${tycho-extras-version} + + + org.apache.maven.plugins maven-resources-plugin