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:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to