You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Olivier Lamy <ol...@accor.com> on 2006/04/13 15:31:14 UTC

RE : [m2.0.3] adding xmlbeans code generation to lifecycle

Hi,
Have a look :
http://maven.apache.org/guides/mini/guide-configuring-plugins.html
Section : Using the executions tag
Change your plugin configuration to bind the execution to
generate-sources or other one.

- Olivier

-----Message d'origine-----
De : John J. Franey [mailto:jfraney@inventa.com] 
Envoyé : jeudi 13 avril 2006 15:27
À : Maven Users List
Objet : [m2.0.3] adding xmlbeans code generation to lifecycle


As per
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl
e.html,
I added the following to my pom:

...
<packaging>jar</packaging>
...
<build>
  ..
  <plugins>
       <groupId>org.codehaus.mojo</groupId>
       <artifactId>xmlbeans-maven-plugin</artifactId>
       <executions>
        <execution>
         <goals>
           <goal>xmlbeans</goal>
         </goals>
        </execution>
       </executions>
      </plugin>
   </plugins>
</build>


I expected (and desire) the xmlbeans plugin to run when I run 'mvn
compile' or 'mvn install', but it doesn't.  Indeed, the xmlbeans plugin
only runs when I run 'mvn generate-sources'.

What am I getting wrong?  What else must I do?



Thanks,
John





This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
********************************************************************** 
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
********************************************************************** 


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


Re: RE : [m2.0.3] adding xmlbeans code generation to lifecycle

Posted by "John J. Franey" <jf...@inventa.com>.
Olivier,
Thanks for your answer.
I must have fat-fingered something somewhere.  I'm getting the behavior
I want now.

John



Olivier Lamy wrote:
> Hi,
> Have a look :
> http://maven.apache.org/guides/mini/guide-configuring-plugins.html
> Section : Using the executions tag
> Change your plugin configuration to bind the execution to
> generate-sources or other one.
>
> - Olivier
>
> -----Message d'origine-----
> De : John J. Franey [mailto:jfraney@inventa.com] 
> Envoy� : jeudi 13 avril 2006 15:27
> � : Maven Users List
> Objet : [m2.0.3] adding xmlbeans code generation to lifecycle
>
>
> As per
> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl
> e.html,
> I added the following to my pom:
>
> ...
> <packaging>jar</packaging>
> ...
> <build>
>   ..
>   <plugins>
>        <groupId>org.codehaus.mojo</groupId>
>        <artifactId>xmlbeans-maven-plugin</artifactId>
>        <executions>
>         <execution>
>          <goals>
>            <goal>xmlbeans</goal>
>          </goals>
>         </execution>
>        </executions>
>       </plugin>
>    </plugins>
> </build>
>
>
> I expected (and desire) the xmlbeans plugin to run when I run 'mvn
> compile' or 'mvn install', but it doesn't.  Indeed, the xmlbeans plugin
> only runs when I run 'mvn generate-sources'.
>
> What am I getting wrong?  What else must I do?
>
>
>
> Thanks,
> John
>
>
>
>
>
> This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
> ********************************************************************** 
> Ce message �lectronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci apr�s "le message" ), sont confidentiels et destin�s exclusivement � l'usage de la  personne � laquelle ils sont adress�s. Si vous avez re�u ce message par erreur, merci  de le renvoyer � son �metteur et de le d�truire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non express�ment autoris�es de ce message, sont interdites.
> ********************************************************************** 
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>