You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Jurgen De Landsheer <ju...@ugent.be> on 2005/12/19 15:51:16 UTC

[m2] how to make a plugin more than once

hello,

I have made a plugin that I want to call a couple of times
during the site cyclus but even when i use a new configuration
it keeps the old one (config fwhen the plugin is called the first time)

<plugins>
<plugin>
    xxx
    <configuration>
       config aaa
    <configuration>
</plugin>
<plugin>
    xxx
    <configuration>
       config bbb
    <configuration>
</plugin>
</plugins>

plugin is executed twice with config aaa

greetings,



Re: [m2] how to make a plugin more than once

Posted by Jurgen De Landsheer <ju...@ugent.be>.
the problem is that the plugins in the site construction cycle
cant have executions

Jesse McConnell wrote:

>try using the <executions> in the plugin definition..
>
>
><plugin>
>  <groupId>foo</>
>  <artifactId>bar</>
>  <executions>
>     <execution>
>         <id>
>         <configuration>
>           lsdkjf
>         </configuration>
>         <goals>
>           <goal>whatever the goal is</goal
>          </goals>
>     <execution>
>     (more executions)
>  </execution>
></plugin>
>
>
>
>
>On 12/19/05, Jurgen De Landsheer <ju...@ugent.be> wrote:
>  
>
>>hello,
>>
>>I have made a plugin that I want to call a couple of times
>>during the site cyclus but even when i use a new configuration
>>it keeps the old one (config fwhen the plugin is called the first time)
>>
>><plugins>
>><plugin>
>>    xxx
>>    <configuration>
>>       config aaa
>>    <configuration>
>></plugin>
>><plugin>
>>    xxx
>>    <configuration>
>>       config bbb
>>    <configuration>
>></plugin>
>></plugins>
>>
>>plugin is executed twice with config aaa
>>
>>greetings,
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>>    
>>
>
>
>--
>jesse mcconnell
>jesseDOTmcconnellATgmailDOTcom
>
>  
>


-- 


met vriendelijke groeten



Re: [m2] how to make a plugin more than once

Posted by Jesse McConnell <je...@gmail.com>.
try using the <executions> in the plugin definition..


<plugin>
  <groupId>foo</>
  <artifactId>bar</>
  <executions>
     <execution>
         <id>
         <configuration>
           lsdkjf
         </configuration>
         <goals>
           <goal>whatever the goal is</goal
          </goals>
     <execution>
     (more executions)
  </execution>
</plugin>




On 12/19/05, Jurgen De Landsheer <ju...@ugent.be> wrote:
>
> hello,
>
> I have made a plugin that I want to call a couple of times
> during the site cyclus but even when i use a new configuration
> it keeps the old one (config fwhen the plugin is called the first time)
>
> <plugins>
> <plugin>
>     xxx
>     <configuration>
>        config aaa
>     <configuration>
> </plugin>
> <plugin>
>     xxx
>     <configuration>
>        config bbb
>     <configuration>
> </plugin>
> </plugins>
>
> plugin is executed twice with config aaa
>
> greetings,
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>


--
jesse mcconnell
jesseDOTmcconnellATgmailDOTcom