You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Melvin Dave P. Vivas,MCOM/3795" <mp...@smart.com.ph> on 2003/09/12 05:01:44 UTC

Executing xdoclet to generate MBeans before compiling

Hi to all,

I'm new to maven.  I would like to know how to use xdoclet with Maven.

Using ant, I had to use the xdoclet custom tasks.  How do I use xdoclet
by just editing project.xml?  I tried using maven.xml to generate the
MBeans but it's not quite nice because it's just like the ant way of
building the project...not really maven like :-)

I checked the xdoclet site but there's just one page of reference.  It
would be great if someone could point me to some code samples.

Cheers,

Melvin


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Executing xdoclet to generate MBeans before compiling

Posted by Konstantin Priblouda <kp...@yahoo.com>.
--- "Melvin Dave P. Vivas,MCOM/3795"
<mp...@smart.com.ph> wrote:
> Thanks for the information Matt.  Anyway, I'll
> probably do that for the
> meantime. 
> 
> Just a follow-up question,  how does maven.xml and
> project.xml relate to
> each other?  Can I get a reference and call the
> goals set in maven.xml
> from project.xml?

project.xml defines project structure ( formal ) - 
maven.xm defines build logic (augmenting plugins )

You can not call anything from project.xml - it's not
executed.

regards,

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Executing xdoclet to generate MBeans before compiling

Posted by "Melvin Dave P. Vivas,MCOM/3795" <mp...@smart.com.ph>.
Thanks for the information Matt.  Anyway, I'll probably do that for the
meantime. 

Just a follow-up question,  how does maven.xml and project.xml relate to
each other?  Can I get a reference and call the goals set in maven.xml
from project.xml?

Cheers,

Melvin

On Fri, 2003-09-12 at 11:28, matt wrote:
> Strongly recommend against using the xdoclet maven plugin - it involves 
> looking through the plugin.jelly source to determine the case of the 
> initial letter for properties, a non-intuitive indexation for different 
> subtasks, and in the end just does what's needed for the ant task.
> 
> Using the ant task in maven.xml is much, much simpler.  Just run the 
> xdoclet task into a temporary directory, and add that directory to your 
> source path (sorry, can't remember off the top of my head how to do 
> this, but you could always look in the maven xdoclet plugin.jelly... :-)
> ).
> 
> 
> Matt
> 
> Melvin Dave P. Vivas,MCOM/3795 wrote:
> 
> >Hi to all,
> >
> >I'm new to maven.  I would like to know how to use xdoclet with Maven.
> >
> >Using ant, I had to use the xdoclet custom tasks.  How do I use xdoclet
> >by just editing project.xml?  I tried using maven.xml to generate the
> >MBeans but it's not quite nice because it's just like the ant way of
> >building the project...not really maven like :-)
> >
> >I checked the xdoclet site but there's just one page of reference.  It
> >would be great if someone could point me to some code samples.
> >
> >Cheers,
> >
> >Melvin
> >
> >
> >---------------------------------------------------------------------
> >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
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Executing xdoclet to generate MBeans before compiling

Posted by Andy Jefferson <an...@ajsoft.net>.
On Friday 12 Sep 2003 04:28, matt wrote:
> Strongly recommend against using the xdoclet maven plugin - it involves
> looking through the plugin.jelly source to determine the case of the
> initial letter for properties, a non-intuitive indexation for different
> subtasks, and in the end just does what's needed for the ant task.

Bug reports have been submitted to the XDoclet team about their Maven plugin 
... some time ago in fact.

-- 
Andy


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Executing xdoclet to generate MBeans before compiling

Posted by matt <jo...@whitesmiths.com.au>.
Strongly recommend against using the xdoclet maven plugin - it involves 
looking through the plugin.jelly source to determine the case of the 
initial letter for properties, a non-intuitive indexation for different 
subtasks, and in the end just does what's needed for the ant task.

Using the ant task in maven.xml is much, much simpler.  Just run the 
xdoclet task into a temporary directory, and add that directory to your 
source path (sorry, can't remember off the top of my head how to do 
this, but you could always look in the maven xdoclet plugin.jelly... :-) ).


Matt

Melvin Dave P. Vivas,MCOM/3795 wrote:

>Hi to all,
>
>I'm new to maven.  I would like to know how to use xdoclet with Maven.
>
>Using ant, I had to use the xdoclet custom tasks.  How do I use xdoclet
>by just editing project.xml?  I tried using maven.xml to generate the
>MBeans but it's not quite nice because it's just like the ant way of
>building the project...not really maven like :-)
>
>I checked the xdoclet site but there's just one page of reference.  It
>would be great if someone could point me to some code samples.
>
>Cheers,
>
>Melvin
>
>
>---------------------------------------------------------------------
>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


Re: Executing xdoclet to generate MBeans before compiling

Posted by di...@multitask.com.au.
The xdoclet plugin is maintained by the xdoclet team, you'd get more 
answers (I hope) by asking on their mailing list.
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/


"Melvin Dave P. Vivas,MCOM/3795" <mp...@smart.com.ph> wrote on 
12/09/2003 01:01:44 PM:

> Hi to all,
> 
> I'm new to maven.  I would like to know how to use xdoclet with Maven.
> 
> Using ant, I had to use the xdoclet custom tasks.  How do I use xdoclet
> by just editing project.xml?  I tried using maven.xml to generate the
> MBeans but it's not quite nice because it's just like the ant way of
> building the project...not really maven like :-)
> 
> I checked the xdoclet site but there's just one page of reference.  It
> would be great if someone could point me to some code samples.
> 
> Cheers,
> 
> Melvin
> 
> 
> ---------------------------------------------------------------------
> 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


Re: curious about the command line

Posted by Anton Tagunov <at...@mail.cnt.ru>.
Hello Khote!

Friday, September 12, 2003, 5:40:43 PM, you wrote:

k> I'm interested in learning how maven gets parameters from the command line.
k> I saw

k> <maven:param-check value=${goal} fail="true">
k>  some fail message
k> </maven:param-check>

k> Q: is -Dgoal=xxx the only acceptable variable (goal), is there a way to
k> use -Darg=yyy for example.

Guess this is a regular thing with java.exe: you pass -Da=b and
get system property a equals to b. I guess Maven (or rather Jelly)
just makes system properties visible as scripting variables.

So yes, you can use not only goad but any name you like.

k> Q: only one -D per command line?  -Dgoal=1st -Dgoal=2nd

No, as much as you like.

k> Q: what is the particular variable to ask about what's on the command line?

Here I can't help, not an expert :)

Anton


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


curious about the command line

Posted by khote <kh...@mminternet.com>.
I'm interested in learning how maven gets parameters from the command line.
I saw

<maven:param-check value=${goal} fail="true">
 some fail message
</maven:param-check>

Q: is -Dgoal=xxx the only acceptable variable (goal), is there a way to
use -Darg=yyy for example.

Q: only one -D per command line?  -Dgoal=1st -Dgoal=2nd

Q: what is the particular variable to ask about what's on the command line?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Executing xdoclet to generate MBeans before compiling

Posted by Konstantin Priblouda <kp...@yahoo.com>.
--- "Melvin Dave P. Vivas,MCOM/3795"
<mp...@smart.com.ph> wrote:
> Hi to all,
> 
> I'm new to maven.  I would like to know how to use
> xdoclet with Maven.
> 
> Using ant, I had to use the xdoclet custom tasks. 
> How do I use xdoclet
> by just editing project.xml?  I tried using
> maven.xml to generate the
> MBeans but it's not quite nice because it's just
> like the ant way of
> building the project...not really maven like :-)
> 
> I checked the xdoclet site but there's just one page
> of reference.  It
> would be great if someone could point me to some
> code samples.
> 
> Cheers,
> 
> Melvin
> 

>From project.properties:
---%<---------------

#properties for webwork invocation
maven.xdoclet.webdoclet.destDir=${basedir}/target/xdoclet/webdoclet
maven.xdoclet.webdoclet.fileset.4=true
maven.xdoclet.webdoclet.fileset.4.include=**/*Action.java
maven.xdoclet.webdoclet.webworkconfigproperties.0=true
maven.xdoclet.webdoclet.jsptaglib.0=false

---%<-----------
here I setup webdoclet invocation, say that I will run

webworkconfigproperties once, define additional
fileset 
( first 4 are default ones )
and also setup destination directory


The same for externalized message bundles:
---%<----------
#message bundles
maven.xdoclet.xdoclet.destDir=${basedir}/target/xdoclet/xdoclet
maven.xdoclet.xdoclet.externalizer.0=true
maven.xdoclet.xdoclet.externalizer.0.destinationFile={0}{1}.properties

maven.xdoclet.xdoclet.propertiestranslator.0=true
maven.xdoclet.xdoclet.fileset.0=true
maven.xdoclet.xdoclet.fileset.0.include=**/*.java
-----%<----------

And in maven.xml:
  <preGoal name="java:compile">
    <attainGoal name="xdoclet:webdoclet"/>
     <attainGoal name="xdoclet:xdoclet"/>
  </preGoal>



regards,

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org