maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Herscu <bmf1...@fastmail.fm>
Subject Re: [m2] is it possible to bind multiple mojos to a build phase?
Date Wed, 04 Apr 2007 19:12:43 GMT
Thanks, it worked :-)
Adrian.

franz see wrote:
> 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
>>
>>
>>
> 


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


Mime
View raw message