hi all,
i am facing a problem with antrun plugin.
I am running xdoclet task from antrun plugin (need to run strutsconfigxml
task, which seems not to work with xdoclet plugin)

I'd like to run my xdoclet task at <phase>generated-sources</phase>, however
i always fall short in providing the right classpath,because i don't want to
include my xdoclet jars in my web-inf\lib directory.
for now (temporary) i  am using  <phase>test</phase>, but this is just a
temprary solution while some maven guru can explain me what's wrong with my
pom/dependencies/classpath
situation as of now is that xdoclet files gets generated and xdoclet jars
are included in web-inf\lib directory
if i put <scope> of xdoclet files as test, xdoclet jars won't go into war
lib directory, but still i am running the
task at phase  'test'

<dependencies>
   <dependency>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
     <version>3.8.1</version>
     <scope>test</scope>
   </dependency>
   <dependency>
     <groupId>middleware</groupId>
     <artifactId>ngenMiddleware</artifactId>
     <version>1.0-SNAPSHOT</version>
     <type>ejb-client</type>
   </dependency>
   <dependency>
     <groupId>struts</groupId>
     <artifactId>struts</artifactId>
     <version>1.2.9</version>
   </dependency>
   <dependency>
     <groupId>geronimo-spec</groupId>
     <artifactId>geronimo-spec-j2ee</artifactId>
     <scope>compile</scope>
   </dependency>
   <dependency>
     <artifactId>xdoclet</artifactId>
     <groupId>xdoclet</groupId>
   <version>1.2b4</version>
   <type>jar</type>
   </dependency>
   <dependency>
   <artifactId>xdoclet-ejb-module</artifactId>
   <groupId>xdoclet</groupId>
   <version>1.2.3</version>
   <type>jar</type>

   </dependency>
   <dependency>
   <artifactId>xdoclet-apache-module</artifactId>
   <groupId>xdoclet</groupId>
   <version>1.2.3</version>
   <type>jar</type>
   </dependency>
   <dependency>
   <artifactId>xdoclet-jboss-module</artifactId>
   <groupId>xdoclet</groupId>
   <version>1.2.3</version>
   <type>jar</type>
   </dependency>
   <dependency>
       <artifactId>xdoclet-jmx-module</artifactId>
       <groupId>xdoclet</groupId>
       <version>1.2.3</version>
       <type>jar</type>
           </dependency>
   <dependency>
   <artifactId>xdoclet-web-module</artifactId>
   <groupId>xdoclet</groupId>
   <version>1.2.3</version>
   <type>jar</type>
   </dependency>
   <dependency>
       <artifactId>xdoclet-ibm-module</artifactId>
       <groupId>xdoclet</groupId>
       <version>1.2.3</version>

   </dependency>
   <dependency>
   <artifactId>xdoclet-xdoclet-module</artifactId>
   <groupId>xdoclet</groupId>
   <version>1.2.3</version>
   <type>jar</type>
   </dependency>
   <dependency>
       <groupId>xdoclet</groupId>
       <artifactId>xjavadoc</artifactId>
       <version>1.1</version>
       <type>jar</type>

   </dependency>
 </dependencies>
 <build>
    <sourceDirectory>${basedir}\JavaSource</sourceDirectory>

    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.0</version>
        <executions>
               <execution>
                 <phase>generated-sources</phase>
                 <goals>
                   <goal>run</goal>
              </goals>
          <configuration>
        <tasks>
          <taskdef name="webdoclet" classname="
xdoclet.modules.web.WebDocletTask">
               <classpath refid="maven.compile.classpath"/>
               <classpath refid="maven.test.classpath"/>
           <classpath>
             <fileset dir="${jboss.libdir}\client">
                 <include name="jbossall-client.jar"/>
             </fileset>
           </classpath>
          </taskdef>
          <webdoclet destdir="${basedir}/WebContent/WEB-INF"
mergedir="merge" verbose="true">

            <fileset dir="JavaSource" />
            <deploymentdescriptor
                 destDir="${basedir}/WebContent/WEB-INF"
                useIDs="true"/>
            <strutsconfigxml validatexml="true" version="1.1"/>
            <webspherewebxml/>
            <jbosswebxml/>
          </webdoclet>
        </tasks>
          </configuration>
          </execution>
        </executions>
      </plugin>

could anybody help? thanks and regards
marco

Reply via email to