geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fredrik Jonson <>
Subject Re: Geronimo plugin project example?
Date Tue, 14 Jul 2009 10:23:26 GMT
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 plugin  
>  projects.  Most of them are "service" plugins but there are a lot of
>  javaee applications in there too.

That seems a bit daunting. I'll try it... some day... ;)

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

--- pom.xml ---

<?xml version="1.0"?>
<project xmlns="" 

--- src/main/plan/plan.xml ---

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="">
  <gbean name="ExampleGBean" class="org.example.gbean.ExampleGBean">

Fredrik Jonson

View raw message