You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Dileepa Jayakody <di...@wso2.com> on 2013/02/03 21:01:29 UTC
How to use car-maven-plugin to build a bundle repository and install
bundles from there to Geronimo V3 server
Hi All,
I've being trying to create a bundle-repository using Geronimo
car-maven-plugin and use that repository to install bundles to Geronimo V3.
Is this possible? I built a repository to add a single bundle and in the
target I got below result;
target
└── classes
└── repository
└── org
└── wso2
└── carbon
└── org.wso2.carbon.user.mgt
└── 4.0.0
└── org.wso2.carbon.user.mgt-4.0.0.jar
But I cannot install the bundle to Geronimo by going through
Geronimo-console's bundle-repositories section and add the repository
location as;
file://work/geronimo_plugins/org.wso2.carbon.geronimo.plugin/target/classes/repository/
Getting below error;
Encountered an unhandled exception while processing action: add_url
Error accessing
ftp://work//geronimo_plugins/org.wso2.carbon.geronimo.plugin/target/classes/repository/
Can somebody please give some tips on how to create a bundle/plugin
repository by including a set of maven artifacts/bundles and use that
repository to install bundles to Geronimo server?
Thanks,
Dileepa
Re: How to use car-maven-plugin to build a bundle repository and
install bundles from there to Geronimo V3 server
Posted by rwengr <rw...@bellsouth.net>.
I have some recent experience with this, but I am still learning. I think
you can do this, but not sure.
You have to use the bundle plugin to create your bundle in a pom.xml, then
use that bundle as a dependency in another pom.xml that uses the
car-maven-plugin.
When you create the bundle, look at the instruction named
<Embed-Dependency>. If you use something like
<Embed-Dependency>*;scope=!test</Embed-Dependency>, it will put the jar
files of all your dependencies into the bundle you really need. You don't
want to put any test only dependencies in it.
Experiment with different instructions and then look at the contents of the
jar file created.
http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/How-to-use-car-maven-plugin-to-build-a-bundle-repository-and-install-bundles-from-there-to-Geronimo-r-tp3986276p3987762.html
Sent from the Development mailing list archive at Nabble.com.