maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sidart Kurias <sidartkur...@yahoo.com>
Subject Re: m2 generate-sources goal
Date Thu, 04 Aug 2005 03:17:23 GMT
Adam

Thank you, 

You're example makes it perfectly clear what I need to
do. I was confusing the phase with a goal.


Thanks
Sid

--- Adam Hardy <adam.maven@cyberspaceroad.com> wrote:

> Hi Sid,
> 
> you would require a plugin that maven can execute
> during the 
> generate-sources step of the lifecycle.
> 
> You would configure your plugin into your pom a bit
> like this for xdoclet:
> 
> <plugin>
>    <artifactId>maven-xdoclet-plugin</artifactId>
>    <version>1.0-SNAPSHOT</version>
>    <executions>
>      <execution>
>        <phase>generate-sources</phase>
>        <goals>
>          <goal>xdoclet</goal>
>        </goals>
>        <configuration>
>           <tasks>
>             <ejbdoclet>ejbdoclet stuff</ejbdoclet>
>           </tasks>
>        </configuration>
>      </execution>
>    </executions>
> </plugin>
> 
> 
> Check out the docs on the maven website about
> writing plugins, which is 
> where you would do your code generation.
> 
> HTH
> Adam
> 
> 
> Sidart Kurias on 03/08/05 10:06, wrote:
> > All,
> > 
> > How does the generate-sources goal work. Are there
> > elements in the pom that can affect what is
> generated?
> > For example I am trying to  generate java code
> from
> > idl files, does this mean I can use the
> > generate-sources goal and somehow specify in my
> pom
> > which idl compiler to use and what files to use.
> If so
> > which elements actually control this behaviour. Or
> > does this require a  plugin to be written. 
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
> 
> 



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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


Mime
View raw message