diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2010-08-31 02:35:08 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2010-08-31 02:50:03 +0200 |
commit | 51f6fbda1f515cdf91c0ccb3a50de5f785301f58 (patch) | |
tree | 67fe87dc003a2d184d2da2603d586da92214d2b4 /pom.xml | |
parent | 47f4171315e1b65f2a6e7f5fc38f57d81de5db15 (diff) | |
download | jgit-51f6fbda1f515cdf91c0ccb3a50de5f785301f58.tar.gz jgit-51f6fbda1f515cdf91c0ccb3a50de5f785301f58.zip |
Fix build of JGit source bundle and feature
Add local changes I missed to push with [1] which broke the JGit
build.
[1] http://egit.eclipse.org/r/#change,1442
Change-Id: I300bfa84c5d8b5128026869b694ef5da7b0d3a4a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 31 |
1 files changed, 30 insertions, 1 deletions
@@ -200,7 +200,7 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> - <version>1.3</version> + <version>1.5</version> </plugin> </plugins> </pluginManagement> @@ -240,12 +240,41 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> + <inherited>true</inherited> <executions> <execution> <id>attach-sources</id> + <phase>process-classes</phase> <goals> <goal>jar</goal> </goals> + <configuration> + <archive> + <manifestEntries> + <Bundle-ManifestVersion>2</Bundle-ManifestVersion> + <Bundle-Name>${project.name} - Sources</Bundle-Name> + <Bundle-SymbolicName>${project.artifactId}.source;singleton:=true</Bundle-SymbolicName> + <Bundle-Vendor>Eclipse.org - JGit</Bundle-Vendor> + <Bundle-Version>${parsedVersion.osgiVersion}</Bundle-Version> + <Eclipse-SourceBundle>${project.artifactId};version="${parsedVersion.osgiVersion}";roots:="."</Eclipse-SourceBundle> + </manifestEntries> + </archive> + </configuration> + </execution> + </executions> + </plugin> + + <!-- Build helper maven plugin sets the parsedVersion.osgiVersion property --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>set-osgi-version</id> + <phase>validate</phase> + <goals> + <goal>parse-version</goal> + </goals> </execution> </executions> </plugin> |