<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Mauricio,<br>
    <br>
    Yep, drools-core's Manifest.MF is being auto-generated by the
    maven-bundle-plugin. it is ok:<br>
    <br>
    <blockquote type="cite">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;extensions&gt;true&lt;/extensions&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;executions&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;execution&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;id&gt;manifest&lt;/id&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;phase&gt;process-classes&lt;/phase&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;goals&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;goal&gt;manifest&lt;/goal&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/goals&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/execution&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/executions&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;configuration&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &lt;manifestLocation&gt;META-INF&lt;/manifestLocation&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;instructions&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &lt;_removeheaders&gt;Ignore-Package&lt;/_removeheaders&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>&lt;Require-Bundle&gt;org.drools.internalapi;visibility:=reexport;bundle-version="${drools.osgi.version}"&lt;/Require-Bundle&gt;</b><br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Import-Package&gt;!org.drools.*,
      *,org.osgi.util.tracker&lt;/Import-Package&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &lt;Export-Package&gt;!org.drools.visualize,org.drools.reteoo.*,
      org.drools.*&lt;/Export-Package&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &lt;DynamicImport-Package&gt;*&lt;/DynamicImport-Package&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;Bundle-Activator&gt;org.drools.osgi.core.Activator&lt;/Bundle-Activator&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/instructions&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/configuration&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/plugin&gt;</blockquote>
    <br>
    <br>
    The problem is that ${drools.osgi.version} property variable has
    been set up to 5.3.1.SNAPSHOT by hand in the
    droolsjbpm-build-bootstrap project.<br>
    <br>
    "5.3.1.SNAPSHOT" is not a valid OSGi sentence. the right one is
    5.3.1.qualifier. And its maven brother is "5.3.1-SNAPSHOT"<br>
    <br>
    Should I raise a Jira?<br>
    <br>
    thanks<br>
    <br>
    Cristiano<br>
    <br>
    <br>
    On 28/12/11 08:01, Mauricio Salatino wrote:
    <blockquote
cite="mid:CANzbnyWX=1vy27d9jgeM1bqi3pK15sDW2jH8rOPFArrGwb8JgA@mail.gmail.com"
      type="cite">
      <pre wrap="">Hmm I'm not sure.. I'm creating my own bundles here. But it seems that
the bundle can be auto-genarated by a maven plugin that is picking the
project version to generate the bundle.. I'm just guessing..

2011/12/27 Cristiano Gavi&atilde;o <a class="moz-txt-link-rfc2396E" href="mailto:cvgaviao@gmail.com">&lt;cvgaviao@gmail.com&gt;</a>:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi again,

Could someone from the Drools team explain me something about why the use of
"5.3.1.SNAPSHOT" as the bundle version ?

regards

Cristiano


On 25/12/11 03:17, Cristiano Gavi&atilde;o wrote:


I've tried unsuccessfully to upgrade my osgi application to jbpm 5.2 and
Drools 5.3. I'm using tycho and I got this error:

[ERROR]&nbsp;&nbsp; Missing requirement: org.drools.core 5.3.1.Final requires 'bundle
org.drools.api 5.3.1.SNAPSHOT' but it could not be found

Its worth to say that with Jbpm 5.1 and Drools 5.2 everything is ok.

Looking at the org.drools.core pom's I could see that the problem seems to
be this:


&lt;Require-Bundle&gt;org.drools.api;visibility:=reexport;bundle-version="${drools.osgi.version}"&lt;/Require-Bundle&gt;

So ${drools.osgi.version} is being resolved to 5.3.1.SNAPSHOT that is not
being resolved because .SNAPSHOT is not a valid OSGI word as the .qualifier
is.

regards

Cristiano



_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>

</pre>
      </blockquote>
      <pre wrap="">


</pre>
    </blockquote>
    <br>
  </body>
</html>