XD2 maven2 plugin / problems with mergedir

"Marco Mistroni" <[email protected]> Mon, 2 Apr 2007 21:11:49 +0100
Newsgroups gmane.comp.java.xdoclet-plugins,gmane.comp.jakarta.tomcat.user
Message-ID <[email protected]>
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?


<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" 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">
  <modelVersion>4.0.0</modelVersion>
  <groupId>WebWork</groupId>
  <artifactId>WebWorkWebApp</artifactId>
  <packaging>war</packaging>
  <name>WebWorkWebApp</name>
  <version>1.0-SNAPSHOT</version>
  <url>http://maven.apache.org</url>
  <build>

    <plugins>
        <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                <execution>
                        <id>AntPlugin</id>
                        <phase>generate-sources</phase>
                        <configuration>
                                <tasks>
                                        <echo>Deleting stale web.xml</echo>
                                        <delete
file="${basedir}/src/main/webapp/WEB-INF/web.xml"/>
                                </tasks>
                        </configuration>
                        <goals>
                                <goal>run</goal>
                        </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
                <groupId>xdoclet</groupId>
                <artifactId>maven2-xdoclet2-plugin</artifactId>
                <executions>
                        <execution>
                        <id>generateSources</id>
                        <phase>generate-sources</phase>
                        <goals>
                                <goal>xdoclet</goal>
                        </goals>
                </execution>
            </executions>
            <dependencies>
                        <dependency>
                                        <groupId>xdoclet-plugins</groupId>

<artifactId>xdoclet-plugin-web</artifactId>
                                        <version>1.0.4-SNAPSHOT</version>
                        </dependency>
                        </dependencies>
                        <configuration>
                        <configs>
                                        <config>
                                        <components>
                                                        <component>
                                                                <classname>
org.xdoclet.plugin.web.WebPlugin</classname>
                                                                <params>

<mergedir>${basedir}/metadata/web</mergedir>

<destdir>${basedir}/src/main/webapp/WEB-INF/</destdir>
                                                        </params>
                                                        </component>
                                        </components>
                                        </config>
                                </configs>
                    </configuration>
                        <!--  <configuration>
                                <tasks>
                                        <webdoclet
destDir="${basedir}/src/main/webapp/WEB-INF/"

mergeDir="${basedir}/metadata/web">
                                                <fileset
dir="${basedir}/src/main/java"/>
                                                <deploymentdescriptor />
                                        </webdoclet>
                                </tasks>
                        </configuration>
                        </execution>
                </executions>-->
      </plugin>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.0</version>
        <configuration>
                <warName>SpringApp</warName>

<outputDirectory>${jbossDir}/server/default/deploy</outputDirectory>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>opensymphony</groupId>
      <artifactId>webwork</artifactId>
      <version>2.2</version>
    </dependency>
        <dependency>
          <groupId>opensymphony</groupId>
          <artifactId>xwork</artifactId>
          <version>1.2</version>
        </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring</artifactId>
      <version>2.0-rc1</version>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.0.3</version>
    </dependency>
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.0</version>
    </dependency>
    <dependency>
      <groupId>jstl</groupId>
      <artifactId>jstl</artifactId>
      <version>1.1.2</version>
    </dependency>
    <dependency>
      <groupId>taglibs</groupId>
      <artifactId>standard</artifactId>
      <version>1.1.2</version>
    </dependency>
    <!--<dependency>
      <groupId>springMVCAgencies</groupId>
      <artifactId>springMVCBackend</artifactId>
      <version>1.0-SNAPSHOT</version>
    </dependency>-->
    <dependency>
      <groupId>velocity</groupId>
      <artifactId>velocity</artifactId>
      <version>1.4-rc1</version>
    </dependency>
    <dependency>
      <groupId>velocity-tools</groupId>
      <artifactId>velocity-tools</artifactId>
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>velocity-tools</groupId>
      <artifactId>velocity-tools-view</artifactId>
      <version>1.2</version>
    </dependency>
  </dependencies>
</project>

anyone could tell me if i am missing something? is it still possible to use
mergedir with xd2? shall i revert back to xdoclet m2 plugin?
i have successfully used xd2 for hibernate mapping, everything worked... so
i assume i am specifiying wrong parameters..

anyone could help?

thanks and regards
 marco

-------------------------------------------------------------------------
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
xdoclet-plugins-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest