truth icon indicating copy to clipboard operation
truth copied to clipboard

Add osgi manifest to jar.

Open h2000 opened this issue 12 years ago • 4 comments

It is very easy to add and would be a great help for all osgi users. Here a example maven plugin config taken from the google guava pom.xml:

      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>2.3.7</version>
        <executions>
          <execution>
            <id>bundle-manifest</id>
            <phase>process-classes</phase>
            <goals>
              <goal>manifest</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <instructions>
            <Export-Package>!com.google.common.base.internal,com.google.common.*</Export-Package>
            <Import-Package>
              javax.annotation;resolution:=optional,
              sun.misc.*;resolution:=optional
            </Import-Package>
          </instructions>
        </configuration>
      </plugin>

h2000 avatar Sep 23 '12 14:09 h2000

I second this request.

And please do so before/in the 1.0 release.

sdavids avatar Jul 13 '14 10:07 sdavids

Bump! +1

JSlain avatar Jan 22 '16 05:01 JSlain

This is a very old bug now (~7 years since it was filed). Can you describe why someone might use Truth as a dependency in an OSGI application?

nick-someone avatar Aug 06 '19 20:08 nick-someone

@nglorioso The immediate one that comes to mind is.... well, tests via the likes of pax-test, which deploys junit and your tests as an OSGi bundle into a container, and executes the tests from with the OSGi runtime.

Like an integration test. Being able to deploy truth along side as a bundle would be good there, rather than having to embed/wrap it.

talios avatar Aug 07 '19 03:08 talios