geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwengr <rwdonap...@bellsouth.net>
Subject Re: Cannot load <module> package while installing plugin
Date Sat, 12 Apr 2014 03:29:07 GMT
The solution to this problem lies in the configuration of the
car-maven-plugin.

When the console portlet deploys a plugin, it automatically deploys a
CONFIGURATION bundle to the bundle repository.  It will require any import
dependencies in the manifest.  Well, the package containing the module has
not yet been installed so there is no way the bundle manager can import it.

The solution is to look at the manifest the first time and then remove the
import of the module package.  In the configuration of the car-maven-plugin
you can customize the manifest and override the Import-Package statement
like this.

<archive>
   <manifestEntries>
        <Import-Package>
org.apache.geronimo.kernel.osgi,org.apache.geronimo.system.serverinfo,org.osgi.framework,org.apache.geronimo.gbean
       </Import-Package>
     </manifestEntries>
</archive>

Notice that the manifest will no longer import the package
(com.packt.plugins) that we have not yet installed.  It's possible adding an
Export-Package line would also work.



--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Cannot-load-module-package-while-installing-plugin-tp3987865p3987866.html
Sent from the Development mailing list archive at Nabble.com.

Mime
View raw message