Skip to main content
diff options
authorMarc-Andre Laperle2015-01-14 04:18:44 +0000
committerMarc-Andre Laperle2015-01-14 14:41:10 +0000
commit3af32a349a6b4e5a0d6e2ceeb5ef911a1961844e (patch)
tree4ce769a7e6f57e3af20373aab778efee5b745218 /pom.xml
parent6e6c6aa9ec74d1fa28f98a283cbf7912585b8487 (diff)
Add SourceReferences to plugins
This allows the user to clone and checkout the source code of CDT without knowing where the repository is. See: 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: Tested-by: Hudson CI Reviewed-by: Alvaro Sanchez-Leon <> Tested-by: Alvaro Sanchez-Leon <>
Diffstat (limited to 'pom.xml')
1 files changed, 18 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 36960480031..c6895c26dcb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,6 +24,7 @@
+ <tycho.scmUrl>scm:git:git://</tycho.scmUrl>
@@ -551,6 +552,23 @@
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-packaging-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <sourceReferences>
+ <generate>true</generate>
+ </sourceReferences>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-sourceref-jgit</artifactId>
+ <version>${tycho-extras-version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>

Back to the top