You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Kamesh Sampath <ka...@liferay.com> on 2015/05/28 17:57:12 UTC
Maven Plugin Ignoring additional BND instructions
I am trying to add the plugin related addtional BND instructions, but the Maven BND plugin is ignoring the instructions when generating MANIFEST.MF
My maven plugin instruction looks like:
…
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Private-Package>blade.portlet.jsp</Private-Package>
<Import-Package>javax.portlet;version="[2.0,3)",javax.servlet;version="[2.5,4)"</Import-Package>
<_dsannotations>*</_dsannotations>
<_jsp>*.jsp,*.jspf</_jsp>
<_plugin.jsp>com.liferay.ant.bnd.plugin.JspAnalyzerPlugin</_plugin.jsp>
</instructions>
</configuration>
<dependencies>
<dependency>
<groupId>com.liferay</groupId>
<artifactId>com.liferay.ant.bnd</artifactId>
<version>1.0.9</version>
</dependency>
</dependencies>
</plugin>
…
I expect the osgi.extender instructions added to my MANIFEST.MF under "Require-Capabilites" but it does not., it ignoring the “_jsp” and “_plugin.jsp” instructions.
I tried the same sample with gradle plugin and it works as expected.
Thank you.
--
Kamesh Sampath
Sr.Architect, Liferay India
Twitter | LinkedIn