You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Serge Huber <sh...@jahia.com> on 2004/08/14 19:26:48 UTC
Accessing Maven properties from a Jelly Bean ?
Hi all,
I'm a beginner, trying to develop my first Maven plugin, and I'm a
little lost :)
I need to develop some functionality through a Jelly Bean, but I also
need to access some Maven properties (especially POM properties) from
the bean. Basically what I need to access in my Jelly Bean is :
- the POM's dependencies
- other project related properties.
I understand that I can pass parameters through to the JellyBean via
XML attributes, but can I pass a list of dependencies or something like
that ? What is the recommended way of developing this functionality ?
Thanks a lot,
Serge Huber.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Accessing Maven properties from a Jelly Bean ?
Posted by Serge Huber <sh...@jahia.com>.
Ok thanks,
I have been developing a tag library over the week-end and it does work the
way you specified. I just didn't believe Jelly could be that powerful !
Regards,
Serge Huber.
At 08:39 15.08.2004, you wrote:
>On Sat, 14 Aug 2004 19:26:48 +0200, Serge Huber <sh...@jahia.com> wrote:
> > - the POM's dependencies
>
>Following on,
>
><c:useBean
> var="myBean"
> deps="${pom.dependencies}"
>/>
>
>'pom' is the project.xml as an object.
>
> > I understand that I can pass parameters through to the JellyBean via
> > XML attributes, but can I pass a list of dependencies or something like
> > that ? What is the recommended way of developing this functionality ?
>Use a bean.
>--
>http://www.multitask.com.au/people/dion/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
- -- --- -----=[ shuber2 at jahia dot com ]=---- --- -- -
www.jahia.org : A collaborative source CMS and Portal Server
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Accessing Maven properties from a Jelly Bean ?
Posted by Dion Gillard <di...@gmail.com>.
On Sat, 14 Aug 2004 19:26:48 +0200, Serge Huber <sh...@jahia.com> wrote:
> - the POM's dependencies
Following on,
<c:useBean
var="myBean"
deps="${pom.dependencies}"
/>
'pom' is the project.xml as an object.
> I understand that I can pass parameters through to the JellyBean via
> XML attributes, but can I pass a list of dependencies or something like
> that ? What is the recommended way of developing this functionality ?
Use a bean.
--
http://www.multitask.com.au/people/dion/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Accessing Maven properties from a Jelly Bean ?
Posted by Serge Huber <sh...@jahia.com>.
Hi Stefan,
Thanks for the quick answer, it helped a lot !
Regards,
Serge Huber.
At 20:10 14.08.2004, you wrote:
>Hi Serge,
>
>just a short sample how i accessed simple properties:
>
> <c:useBean
> var="myBean"
> versionProperty="${pom.currentVersion}"
> someOtherProperty="${maven.plugin.property}"
> class="my.package.BeanClass" />
>
>Hope this helps,
>-Stefan
>
>
>
>
> > -----Original Message-----
> > From: Serge Huber [mailto:shuber2@jahia.com]
> > Sent: Saturday, August 14, 2004 7:27 PM
> > To: Maven Users List
> > Subject: Accessing Maven properties from a Jelly Bean ?
> >
> >
> >
> > Hi all,
> >
> > I'm a beginner, trying to develop my first Maven plugin, and I'm a
> > little lost :)
> >
> > I need to develop some functionality through a Jelly Bean, but I also
> > need to access some Maven properties (especially POM properties) from
> > the bean. Basically what I need to access in my Jelly Bean is :
> >
> > - the POM's dependencies
> > - other project related properties.
> >
> > I understand that I can pass parameters through to the JellyBean via
> > XML attributes, but can I pass a list of dependencies or
> > something like
> > that ? What is the recommended way of developing this functionality ?
> >
> > Thanks a lot,
> > Serge Huber.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
- -- --- -----=[ shuber2 at jahia dot com ]=---- --- -- -
www.jahia.org : A collaborative source CMS and Portal Server
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Accessing Maven properties from a Jelly Bean ?
Posted by Stefan Kleineikenscheidt <st...@kleineikenscheidt.de>.
Hi Serge,
just a short sample how i accessed simple properties:
<c:useBean
var="myBean"
versionProperty="${pom.currentVersion}"
someOtherProperty="${maven.plugin.property}"
class="my.package.BeanClass" />
Hope this helps,
-Stefan
> -----Original Message-----
> From: Serge Huber [mailto:shuber2@jahia.com]
> Sent: Saturday, August 14, 2004 7:27 PM
> To: Maven Users List
> Subject: Accessing Maven properties from a Jelly Bean ?
>
>
>
> Hi all,
>
> I'm a beginner, trying to develop my first Maven plugin, and I'm a
> little lost :)
>
> I need to develop some functionality through a Jelly Bean, but I also
> need to access some Maven properties (especially POM properties) from
> the bean. Basically what I need to access in my Jelly Bean is :
>
> - the POM's dependencies
> - other project related properties.
>
> I understand that I can pass parameters through to the JellyBean via
> XML attributes, but can I pass a list of dependencies or
> something like
> that ? What is the recommended way of developing this functionality ?
>
> Thanks a lot,
> Serge Huber.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org