maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franz see <franz....@gmail.com>
Subject Re: [m2] is it possible to bind multiple mojos to a build phase?
Date Tue, 03 Apr 2007 02:52:19 GMT

Good day to you, Adrian, 

Trying doing this instead

...
  <compile>
    org.foo:foo-maven:compile, 
    org.foo:foo-maven:validate-xml,
    org.foo:foo-maven:validate
  </compile>
...

For examples, see the package and install phases of the 'maven-plugin'
role-hint in [1].

Cheers,
Franz

[1]
http://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/resources/META-INF/plexus/components.xml


Adrian Herscu-2 wrote:
> 
> Hi all,
> 
> I tried to bind several mojos to the same build phase
> 
> <component-set>
>    <components>
> 
>      <component>
>        <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
>        <role-hint>foo</role-hint>
>  
> <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
>        <configuration>
>          <lifecycles>
>            <lifecycle>
>              <id>default</id>
>              <phases>
>  
> <process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
>                <compile>org.foo:foo-maven:compile</compile>
>                <compile>org.foo:foo-maven:validate-xml</compile>
>                <compile>org.foo:foo-maven:validate</compile>
> 
> ...and it seems like the only one entry is bound.
> 
> Any suggestions?
> Adrian.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-m2--is-it-possible-to-bind-multiple-mojos-to-a-build-phase--tf3500995s177.html#a9802873
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Mime
View raw message