Source jars with Eclipse source bundle Manifest entries
Opened this issue · 1 comments
mcculls commented
Originally reported on Google Code with ID 83
For Eclipse consumers, it is handy if source jars are valid Eclipse source bundles.
(Otherwise we have to re-bundle for are development target platform).
The maven-source-plugin configured something like below will do the trick.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
<Bundle-Description>${project.name}
Source</Bundle-Description>
<Bundle-SymbolicName>${project.artifactId}.source</Bundle-SymbolicName>
<Eclipse-SourceBundle>${project.artifactId};version="${project.version}"</Eclipse-SourceBundle>
<Bundle-Version>${project.version}</Bundle-Version>
</manifestEntries>
</archive>
</configuration>
</execution>
</executions>
</plugin>
Reported by dmeibusch
on 2013-07-17 01:17:40
mcculls commented
Thanks for the suggestion
Reported by mcculls
on 2013-07-17 01:19:40
- Status changed:
Accepted