Status: New
Owner: ----
Labels: Type-Enhancement Priority-Medium
New issue 83 by
dmeibu...@gmail.com: Source jars with Eclipse source bundle
Manifest entries
http://code.google.com/p/peaberry/issues/detail?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>
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings