You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marco Tedone <mt...@jemos.co.uk> on 2004/09/09 11:25:50 UTC

Running strutsconfigxml subtask within the xdoclet:webdoclet from Maven

Hi, I've got the following pregoal in maven.xml


<preGoal name="war:webapp">
  <attainGoal name="xdoclet:webdoclet"/>
 </preGoal>

which, you know better than me, executes webdoclet before running the war
goal. The web.xml gets generated, ok. Now I want to generate also the
struts-related configuration files. From XDoclet I learn that there is a
nested element for <webdoclet>, <strutsconfigxml> that generates the
struts-related files.

How could I tell to Maven to run also the <strutsconfigxml> nested element
when running webdoclet? I had a look on the internet, and tried to specify
the following properties:

maven.xdoclet.webdoclet.strutsconfigxml.0=true
maven.xdoclet.webdoclet.strutsconfigxml.0.validatexml=true
maven.xdoclet.webdoclet.strutsconfigxml.0.version=1.1
maven.xdoclet.webdoclet.strutsconfigxml.0.mergeDir=src/merge/struts


But nothing happens.

I had a look also at the mailing list archives but I didn't find anything
which could help. Could anyone help?

Thanks,

Marco Tedone


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


Re: Running strutsconfigxml subtask within the xdoclet:webdoclet from Maven

Posted by Marco Tedone <mt...@jemos.co.uk>.
These are the xdoclet dependencies (declared in the parent project):

<dependency>
<groupId>xdoclet</groupId>
<artifactId>xdoclet</artifactId>
<version>1.2</version>
</dependency>


<dependency>
<groupId>xdoclet</groupId>
<artifactId>xdoclet-ejb-module</artifactId>
<version>1.2</version>
<url>http://xdoclet.sf.net/</url>
</dependency>

<dependency>
<groupId>xjavadoc</groupId>
<artifactId>xjavadoc</artifactId>
<version>1.0.2</version>
<url>http://xdoclet.sf.net/</url>
</dependency>

<dependency>
<groupId>xdoclet</groupId>
<artifactId>xdoclet-jmx-module</artifactId>
<version>1.2</version>
<url>http://xdoclet.sf.net/</url>
</dependency>

<dependency>
<groupId>xdoclet</groupId>
<artifactId>xdoclet-web-module</artifactId>
<version>1.2</version>
<url>http://xdoclet.sf.net/</url>
</dependency>

<dependency>
<groupId>xdoclet</groupId>
<artifactId>xdoclet-jboss-module</artifactId>
<version>1.2</version>
<url>http://xdoclet.sf.net/</url>
</dependency>

<dependency>
<groupId>xdoclet</groupId>
<artifactId>maven-xdoclet-plugin</artifactId>
<version>1.2</version>
<type>plugin</type>
<url>http://xdoclet.sf.net/</url>
</dependency>


This is then declared in my 'war' subproject:

<dependency>
   <groupId>struts</groupId>
   <artifactId>struts</artifactId>
   <version>1.1</version>
   <properties>
    <war.bundle>true</war.bundle>
   </properties>
  </dependency>





----- Original Message ----- 
From: "Mark Lowe" <ma...@boxstuff.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Thursday, September 09, 2004 11:02 AM
Subject: Re: Running strutsconfigxml subtask within the xdoclet:webdoclet
from Maven


> Have you included the xdoclet-apache-module stuff in your dependencies?
>
>
> On 9 Sep 2004, at 11:25, Marco Tedone wrote:
>
> > Hi, I've got the following pregoal in maven.xml
> >
> >
> > <preGoal name="war:webapp">
> >   <attainGoal name="xdoclet:webdoclet"/>
> >  </preGoal>
> >
> > which, you know better than me, executes webdoclet before running the
> > war
> > goal. The web.xml gets generated, ok. Now I want to generate also the
> > struts-related configuration files. From XDoclet I learn that there is
> > a
> > nested element for <webdoclet>, <strutsconfigxml> that generates the
> > struts-related files.
> >
> > How could I tell to Maven to run also the <strutsconfigxml> nested
> > element
> > when running webdoclet? I had a look on the internet, and tried to
> > specify
> > the following properties:
> >
> > maven.xdoclet.webdoclet.strutsconfigxml.0=true
> > maven.xdoclet.webdoclet.strutsconfigxml.0.validatexml=true
> > maven.xdoclet.webdoclet.strutsconfigxml.0.version=1.1
> > maven.xdoclet.webdoclet.strutsconfigxml.0.mergeDir=src/merge/struts
> >
> >
> > But nothing happens.
> >
> > I had a look also at the mailing list archives but I didn't find
> > anything
> > which could help. Could anyone help?
> >
> > Thanks,
> >
> > Marco Tedone
> >
> >
> > ---------------------------------------------------------------------
> > 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: Running strutsconfigxml subtask within the xdoclet:webdoclet from Maven

Posted by Mark Lowe <ma...@boxstuff.com>.
Have you included the xdoclet-apache-module stuff in your dependencies?


On 9 Sep 2004, at 11:25, Marco Tedone wrote:

> Hi, I've got the following pregoal in maven.xml
>
>
> <preGoal name="war:webapp">
>   <attainGoal name="xdoclet:webdoclet"/>
>  </preGoal>
>
> which, you know better than me, executes webdoclet before running the 
> war
> goal. The web.xml gets generated, ok. Now I want to generate also the
> struts-related configuration files. From XDoclet I learn that there is 
> a
> nested element for <webdoclet>, <strutsconfigxml> that generates the
> struts-related files.
>
> How could I tell to Maven to run also the <strutsconfigxml> nested 
> element
> when running webdoclet? I had a look on the internet, and tried to 
> specify
> the following properties:
>
> maven.xdoclet.webdoclet.strutsconfigxml.0=true
> maven.xdoclet.webdoclet.strutsconfigxml.0.validatexml=true
> maven.xdoclet.webdoclet.strutsconfigxml.0.version=1.1
> maven.xdoclet.webdoclet.strutsconfigxml.0.mergeDir=src/merge/struts
>
>
> But nothing happens.
>
> I had a look also at the mailing list archives but I didn't find 
> anything
> which could help. Could anyone help?
>
> Thanks,
>
> Marco Tedone
>
>
> ---------------------------------------------------------------------
> 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