--- Marco Mistroni <[EMAIL PROTECTED]> wrote:

> hi all,
>  i am trying to move my current m2 project to use
> xd2 maven2 plugin but i am
> encountering big problems, so i appreciate if anyone
> could help me out.
> this is my pom..  i have used previously xd maven2
> plugin where i specified
> mergedir attribute to merge files about servlets,
> filters etc... from
> docs i read on web
> (http://xdoclet.codehaus.org/Maven2+plugin) looks
> like
> mergedir is not supported in web plugin.... or is
> it?

Hi Marco, 

Mergedir definitely works for jelly based plugins.

This is how I'm doing this:
( for xwork.xml generation )
-----------%<-------------
            <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>
                                       
<filename>jtec-security-xwork.xml</filename>
                                       
<package>de.jtec.security.login</package>
                                       
<namespace>/jtec-security/login</namespace>
                                       
<extends>webwork-default</extends>
                                       
<mergefile>defaults.xml</mergefile>
                                       
<mergedir>file:${basedir}/src/merge/</mergedir>
                                    </params>
                                </component>
                            </components>
                        </config>

                    </configs>
                </configuration>
            </plugin>
------------%<-----------
( note file: url specification ) 

In any case plugin you are about to use shall define
merge points. 


regards,




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


 
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to