Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 74599 invoked from network); 15 Jul 2009 07:51:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jul 2009 07:51:33 -0000 Received: (qmail 31298 invoked by uid 500); 15 Jul 2009 07:51:42 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 30997 invoked by uid 500); 15 Jul 2009 07:51:42 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 30877 invoked by uid 99); 15 Jul 2009 07:51:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 07:51:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chirunhua@gmail.com designates 209.85.132.242 as permitted sender) Received: from [209.85.132.242] (HELO an-out-0708.google.com) (209.85.132.242) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 07:51:32 +0000 Received: by an-out-0708.google.com with SMTP id d40so1634290and.40 for ; Wed, 15 Jul 2009 00:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=+RQ/M2RIWs4Pej4y2NGJF667BggAcTdXFn1ATyTFkAA=; b=Fi1PoQZpRG1XnWtY1+puYI4vn0cKqR5Ag2Ff5MfYCURPtx6xed4e9J2AQXy7q4V5E6 luFSTA0qLeH9bFsorUzF3Qc+uzDfewhbcwqmuKQEmOVwbYHfHbpD4nvkrBJ6IroUheAD 3xtqoha/1TZWtGEnCBlHmfiR9jQ2HyO/b6VSU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=v6YEe/ilXGrsiTBcNr1utBVrdZL1j5JlNpIt4tNrpRnHthyduF4iP/bOayuiwrADnL wgiCew1BxsPWbH3Ma8liu4qUl4YRr9AQOr9u+92mHJdzDkrcGDS+2R84wm79EMQua+vl HCzKoDZzhz5L9pTyEhG9aHZn6ciGgDrnR+Scs= MIME-Version: 1.0 Received: by 10.100.239.4 with SMTP id m4mr9781450anh.76.1247644266818; Wed, 15 Jul 2009 00:51:06 -0700 (PDT) In-Reply-To: References: Date: Wed, 15 Jul 2009 15:51:06 +0800 Message-ID: <98a659de0907150051l3e8e10dao5d0d0ab3dd53ae0b@mail.gmail.com> Subject: Re: Geronimo plugin project example? From: chi runhua To: user@geronimo.apache.org Content-Type: multipart/alternative; boundary=0016368e2457546ed2046eb9d10c X-Virus-Checked: Checked by ClamAV on apache.org --0016368e2457546ed2046eb9d10c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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. (1) http://cwiki.apache.org/confluence/display/GMOxDOC22/Plugin+and+plugin+group (2) http://cwiki.apache.org/confluence/display/GMOxDOC22/Administering+plugins Jeff C On Tue, Jul 14, 2009 at 6:23 PM, Fredrik Jonson wrote: > 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 "true" 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 --- > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > 4.0.0 > org.example > plugin > 1.0-SNAPSHOT > car > > 2.1.4 > > > > org.example > provider > ${version} > > > > > > org.apache.geronimo.buildsupport > car-maven-plugin > 2.1.4 > true > > > true > true > > JMS > > > > > > > --- src/main/plan/plan.xml --- > > > > > > > > -- > Fredrik Jonson > > --0016368e2457546ed2046eb9d10c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Fredrik, thanks for the post.

Actually, there are some docs about w= hat a geronimo-plugin looks like(1) and how to create/install/update one.
Here are the URLs FYR.=A0 Please let us know if you have any comments= .

(1) http://cwiki.apache.org/confluence/display/GMOxDOC22/= Plugin+and+plugin+group
(2) http://cwiki.apache.org/conf= luence/display/GMOxDOC22/Administering+plugins


Jeff C

On Tue, Jul 14, 2009 at 6:= 23 PM, Fredrik Jonson <fredrik@myrealbox.com> wrote:
David Jencks wrote:
> =A0Fredrik Jonson wrote:
> >
> > I'm looking for a simple example geronimo plugin project.
>
> =A0Building all of geronimo itself is the best= way to see a lot of plugin
> =A0projects. =A0Most of them are "service" plugins but there= are a lot of
> =A0javaee 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 plug= in!
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 ac= tivemq-broker
=A0 plugin from current trunk (2.2-SNAPSHOT) and that project configuratio= n is a bit
=A0 strange, lots of parent modules and their transitive dependencies made= it hard to
=A0 overview what parameters, configurations and files (history?) that act= ually is required,
=A0 and what is just specific to that module.

2. PEBCAK. I tried to install the plugin using the "deploy" comma= nd instead of
=A0 "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 t= he plugin configuration.

If anyone else is interested, my very minimal geronimo-plugin example proje= ct
is included below. The dependency org.example/provider is simply a jar modu= le
that contains the ExampleGBean implementation.

|-- pom.xml
`-- src
=A0 =A0`-- main
=A0 =A0 =A0 =A0`-- plan
=A0 =A0 =A0 =A0 =A0 =A0`-- plan.xml

--- pom.xml ---

<?xml version=3D"1.0"?>
<project xmlns=3D"http://maven.apache.org/POM/4.0.0"
=A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
=A0xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 http://maven.apache.o= rg/maven-v4_0_0.xsd">
=A0<modelVersion>4.0.0</modelVersion>
=A0<groupId>org.example</groupId>
=A0<artifactId>plugin</artifactId>
=A0<version>1.0-SNAPSHOT</version>
=A0<packaging>car</packaging>
=A0<properties>
=A0 =A0<geronimoVersion>2.1.4</geronimoVersion>
=A0</properties>
=A0<dependencies>
=A0 =A0<dependency>
=A0 =A0 =A0<groupId>org.example</groupId>
=A0 =A0 =A0<artifactId>provider</artifactId>
=A0 =A0 =A0<version>${version}</version>
=A0 =A0</dependency>
=A0</dependencies>
=A0<build>
=A0 =A0<plugins>
=A0 =A0 =A0<plugin>
=A0 =A0 =A0 =A0<groupId>org.apache.geronimo.buildsupport</groupId= >
=A0 =A0 =A0 =A0<artifactId>car-maven-plugin</artifactId>
=A0 =A0 =A0 =A0<version>2.1.4</version>
=A0 =A0 =A0 =A0<extensions>true</extensions>
=A0 =A0 =A0 =A0<configuration>
=A0 =A0 =A0 =A0 =A0<useMavenDependencies>
=A0 =A0 =A0 =A0 =A0 =A0<value>true</value>
=A0 =A0 =A0 =A0 =A0 =A0<includeVersion>true</includeVersion> =A0 =A0 =A0 =A0 =A0</useMavenDependencies>
=A0 =A0 =A0 =A0 =A0<category>JMS</category>
=A0 =A0 =A0 =A0</configuration>
=A0 =A0 =A0</plugin>
=A0 =A0</plugins>
=A0</build>
</project>

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

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<module xmlns=3D"http://geronimo.apache.org/xml/ns/deployment-1= .2">
=A0<gbean name=3D"ExampleGBean" class=3D"org.example.gbe= an.ExampleGBean">
=A0</gbean>
</module>

--
Fredrik Jonson


--0016368e2457546ed2046eb9d10c--