-- Eduardo
..............................................
http://emmartins.blogspot.com
http://redhat.com/solutions/telco
looking at http://en.wikipedia.org/wiki/OSGi and the OSGi
documentation these are the required headers
Bundle-ManifestVersion
Bundle-SymbolicName
Bundle-Version
but the following headers are almost always needed when using them
from other bundles
Export-Package
Import-Package
maven-bundle-plugin uses BND ( http://www.aqute.biz/Code/Bnd ) in the
background to analyze all used imports and generates a correct and
up-to-date manifest.mf.
Regards,
Leen
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Implementation-Title>
${manifest.implementation.title}
</Implementation-Title>
<Implementation-Version>
${manifest.implementation.version}
</Implementation-Version>
<Implementation-Vendor-Id>
${manifest.implementation.vendor}
</Implementation-Vendor-Id>
<Implementation-URL>
${manifest.url}
</Implementation-URL>
<SVN-Revision>${buildNumber}</SVN-Revision>
</manifestEntries>
</archive>
</configuration>
</plugin>
...
This is done by our parent pom, which can be seen at
http://code.google.com/p/mobicents/source/browse/branches/parent/2.x.y/pom.xml
Can you provide me the alternative pom code to build this OSGI
compliant MANIFEST.MF? I would update the parent pom with it.
-- Eduardo
..............................................
http://emmartins.blogspot.com
http://redhat.com/solutions/telco
I don't have a build envirnment available right now so I cannot test
it, but this should do the trick I guess
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
<supportedProjectType>war</supportedProjectType>
</supportedProjectTypes>
<instructions>
<Implementation-Title>${manifest.implementation.title}</Implementation-Title>
<Implementation-Version>${manifest.implementation.version}</Implementation-Version>
<Implementation-Vendor-Id>${manifest.implementation.vendor}</Implementation-Vendor-Id>
<Implementation-URL>${manifest.url}</Implementation-URL>
<SVN-Revision>${buildNumber}</SVN-Revision>
<!-- Bundle-SymbolicName and other headers can be changed here as well -->
</instructions>
</configuration>
</plugin>
Regards,
Leen
http://code.google.com/p/mobicents/issues/detail?id=2364
-- Eduardo
..............................................
http://emmartins.blogspot.com
http://redhat.com/solutions/telco