Fredrik, thanks for the post.
Actually, there are some docs about what a geronimo-plugin looks like(1) and how to create/install/update one.
Here are the URLs FYR. Please let us know if you have any comments.
David Jencks wrote:
> Fredrik Jonson wrote:
> > I'm looking for a simple example geronimo plugin project.
> Building all of geronimo itself is the best way to see a lot of pluginThat seems a bit daunting. I'll try it... some day... ;)
> projects. Most of them are "service" plugins but there are a lot of
> javaee applications in there too.
On the bright side I have finally managed to build and deploy a simple plugin!
The reason I failed last week was due to a combination of PEBCAK and maybe a bit
of complexity and lack of documentation in the car-maven-plugin. What I did was:
1. Tried to package a plugin with a broken plan.xml. I tried to copy the activemq-broker
plugin from current trunk (2.2-SNAPSHOT) and that project configuration is a bit
strange, lots of parent modules and their transitive dependencies made it hard to
overview what parameters, configurations and files (history?) that actually is required,
and what is just specific to that module.
2. PEBCAK. I tried to install the plugin using the "deploy" command instead of
"install-plugin". Completely my own fault.
Two major gothas for me was:
1. Not declaring the geronimoVersion property in the pom.
2. Not declaring "<extensions>true</extensions>" on the plugin configuration.
If anyone else is interested, my very minimal geronimo-plugin example project
is included below. The dependency org.example/provider is simply a jar module
that contains the ExampleGBean implementation.
--- pom.xml ---
--- src/main/plan/plan.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<gbean name="ExampleGBean" class="org.example.gbean.ExampleGBean">