--- Alessandro Oliveira
<[EMAIL PROTECTED]> wrote:

> 
> Hi guys,

Hi, 

> I'm currently evaluating to maven2 restructure
> several J2EE projects in
> 
> order to have a more organized build process, but I
> couldn't find
> 
> information on how to transition the ant/xdoclet1
> build scripts to
> 
> maven2/xdoclet1, worse, the few mentions that I
> found was regarding
> 
> maven1/xdoclet1 and maven2/xdoclet2.
I'm developer / admin of XD2, and moved my builds
to m2 some time ago.   XD2/M2 works pretty good. 


> The plugins I need to execute are EJB, WEB, STRUTS
> and HIBERNATE, and the

Struts is supported pretty well, as well as S2/WW2.
Hibernate too. (since I use it in daily work, 
it is alw3ays up to date). I do not now status  of EJB
/ WEB since I do not use them. 

> code is Java 5.0.
Recent qdox parser is known to support 5.0

Sample of hibernate invocation:
---------------%<-----------
            <plugin>
                <groupId>xdoclet</groupId>
               
<artifactId>maven2-xdoclet2-plugin</artifactId>
                <version>2.0.5</version>
                <executions>
                    <execution>
                        <id>xdoclet</id>
                       
<phase>generate-sources</phase>
                        <goals>
                            <goal>xdoclet</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                       
<groupId>xdoclet-plugins</groupId>
                       
<artifactId>xdoclet-plugin-hibernate</artifactId>
                       
<version>1.0.4-SNAPSHOT</version>
                    </dependency>
                </dependencies>
                <configuration>
                    <configs>
                        <config>
                            <components>
                                <component>
                                   
<classname>org.xdoclet.plugin.hibernate.HibernateMappingPlugin</classname>
                                    <params>
                                       
<version>3.0</version>
                                    </params>
                                </component>
                            </components>
                        </config>
                    </configs>
                </configuration>
            </plugin>
--------------%<----------------

XWork ( Struts 2 ) - with severa invocations of
plugins:

-----------------%<--------------
            <!-- invocation of xdoclet to produce
xwork.xml -->
            <plugin>
                <groupId>xdoclet</groupId>
               
<artifactId>maven2-xdoclet2-plugin</artifactId>
                <version>2.0.5</version>
                <executions>
                    <execution>
                        <id>xdoclet</id>
                       
<phase>generate-sources</phase>
                        <goals>
                            <goal>xdoclet</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                       
<groupId>xdoclet-plugins</groupId>
                       
<artifactId>xdoclet-plugin-xwork</artifactId>
                       
<version>1.0.4-SNAPSHOT</version>
                    </dependency>
                </dependencies>
                <configuration>
                    <configs>
                        <config>
                            <components>
                                <component>
                                   
<classname>org.xdoclet.plugin.xwork.XWorkXMLPlugin</classname>
                                    <params>
                                       
<package>default</package>
                                       
<extends>ccms-default</extends>
                                       
<filename>ccmsadmin-default.xml</filename>
                                    </params>
                                </component>
                                <!-- 
                                      generate
mappungs for actions dedicated to breakpoint
management
                                -->
                                <component>
                                   
<classname>org.xdoclet.plugin.xwork.XWorkXMLPlugin</classname>
                                    <params>
                                       
<package>admin-breakpoint</package>
                                       
<extends>ccms-default</extends>
                                        <!--
                                            do not
even think about trailing slash there... 
                                        -->
                                       
<namespace>/admin/breakpoint</namespace>
                                       
<filename>ccmsadmin-admin-breakpoint.xml</filename>
                                    </params>
                                </component> 
                                <!-- 
                                      generate
mappings for actions dedicated to administrative task
management
                                -->
                                <component>
                                   
<classname>org.xdoclet.plugin.xwork.XWorkXMLPlugin</classname>
                                    <params>
                                       
<package>admin-task</package>
                                       
<extends>ccms-default</extends>
                                        <!--
                                            do not
even think about trailing slash there... 
                                        -->
                                       
<namespace>/admin/task</namespace>
                                       
<filename>ccmsadmin-admin-task.xml</filename>
                                    </params>
                                </component> 
                                <!-- 
                                      generate
mappings for actions dedicated to
                                      process search
and manipulation
                                -->
                                <component>
                                   
<classname>org.xdoclet.plugin.xwork.XWorkXMLPlugin</classname>
                                    <params>
                                       
<package>admin-vo</package>
                                       
<extends>ccms-default</extends>
                                        <!--
                                            do not
even think about trailing slash there... 
                                        -->
                                       
<namespace>/admin/list</namespace>
                                       
<filename>ccmsadmin-admin-vo.xml</filename>
                                    </params>
                                </component> 
                                <!-- 
                                    this package
bundles actions for  callcenter process search
                                -->
                                <component>
                                   
<classname>org.xdoclet.plugin.xwork.XWorkXMLPlugin</classname>
                                    <params>
                                       
<package>callcenter-vo</package>
                                       
<extends>ccms-default</extends>
                                        <!--
                                            do not
even think about trailing slash there... 
                                        -->
                                       
<namespace>/callcenter/list</namespace>
                                       
<filename>ccmsadmin-callcenter-vo.xml</filename>
                                    </params>
                                </component> 
                                <!-- package
containing ajax actions for data retrieval  -->
                                <component>
                                   
<classname>org.xdoclet.plugin.xwork.XWorkXMLPlugin</classname>
                                    <params>
                                       
<package>ajax</package>
                                       
<extends>ccms-default</extends>
                                        <!--
                                            do not
even think about trailing slash there... 
                                        -->
                                       
<namespace>/ajax</namespace>
                                       
<filename>ccmsadmin-ajax.xml</filename>
                                    </params>
                                </component>
                            </components>
                        </config>
                    </configs>
                </configuration>
            </plugin>

-----------------%<---------------

Check http://xdoclet.codehaus.org/
Last release of plugins is pretty old, but I'm
preparing 1.0.4, so snapshots are good. 

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/


       
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to