Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I am now using the maven-bundle-plugin:</p> <pre><code> &lt;plugin&gt; &lt;groupId&gt;org.apache.felix&lt;/groupId&gt; &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt; &lt;version&gt;1.4.0&lt;/version&gt; &lt;extensions&gt;true&lt;/extensions&gt; &lt;configuration&gt; &lt;instructions&gt; &lt;Bundle-SymbolicName&gt;${pom.groupId}.${pom.artifactId}&lt;/Bundle-SymbolicName&gt; &lt;Bundle-Name&gt;${pom.name}&lt;/Bundle-Name&gt; &lt;Bundle-Version&gt;${pom.version}&lt;/Bundle-Version&gt; &lt;Bundle-Activator&gt;org.wso2.mbp.sample01.Activator&lt;/Bundle-Activator&gt; &lt;Private-Package&gt;org.wso2.mbp.sample01&lt;/Private-Package&gt; &lt;/instructions&gt; &lt;/configuration&gt; &lt;/plugin&gt; </code></pre> <p><a href="http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html" rel="nofollow noreferrer">http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html</a></p> <p>to build a bundle. But how do I use the bundle plugin so it creates the MANIFEST file for the jar build with the maven-assembly-plugin, which I use like:</p> <pre><code> &lt;plugin&gt; &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;appendAssemblyId&gt;true&lt;/appendAssemblyId&gt; &lt;finalName&gt;myApp&lt;/finalName&gt; &lt;descriptorRefs&gt; &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt; &lt;/descriptorRefs&gt; &lt;archive&gt; &lt;manifest&gt; &lt;mainClass&gt;com.TestMain&lt;/mainClass&gt; &lt;packageName&gt;com.&lt;/packageName&gt; &lt;/manifest&gt; &lt;/archive&gt; &lt;/configuration&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;make-assembly&lt;/id&gt; &lt;phase&gt;package&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;assembly&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload