maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé BOUTEMY <herve.bout...@free.fr>
Subject Re: Deploying archetypes
Date Thu, 06 Mar 2014 07:19:31 GMT
befaore deploying, you'll have to package, which usually attaches the artifact 
for later automatic deployment by deploy plugin
see http://maven.apache.org/archetype/maven-archetype-plugin/
and the maven-archetype packaging automating it
http://maven.apache.org/archetype/archetype-packaging/


but IMHO, trying to both generate an archetype, package it and deploy it from 
the example project is a risky process, because your (example project) pom 
will mix configuration for archetype generation/deployment with the valuable 
configuration you intend to have in the archetype

you really should use create-from-project once then maintain the generated 
archetype project (and in fact the generic example project in 
src/main/resources)

Regards,

Hervé

Le mercredi 5 mars 2014 08:50:00 Jordan Zimmerman a écrit :
> Hello,
> 
> I’d like to configure my project to auto-deploy my generated archetype as
> part of the deploy execution. Is there a way to do this? So, to create the
> archetype, I have this:
> 
>             <plugin>
>                 <artifactId>maven-archetype-plugin</artifactId>
>                 <configuration>
>                     <propertyFile>archetype.properties</propertyFile>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <phase>package</phase>
>                         <goals>
>                             <goal>create-from-project</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> 
> Is there a way to configure the deploy plugin (or some other plugin) to run
> a “deploy” goal on the generated archetype
> (in target/generated-sources/archetype/target)?
> 
> Thanks!
> 
> -Jordan


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


Mime
View raw message