You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Arnaud Heritier (JIRA)" <ji...@codehaus.org> on 2014/04/04 09:41:00 UTC

[jira] (MNG-1911) Building plugins with extensions in a reactor fails

    [ https://jira.codehaus.org/browse/MNG-1911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=344133#comment-344133 ] 

Arnaud Heritier commented on MNG-1911:
--------------------------------------

The only existing workaround is to extract your extension (or the plugin defining it) in another independent project (which I agree, is often overkill).
I don't know if [~jason] and others who worked on the core recently have an idea how to fix it but the root cause of the problem is that an extension can extend an existing lifecycle or add a new one and thus Maven may require it to read poms).

> Building plugins with extensions in a reactor fails
> ---------------------------------------------------
>
>                 Key: MNG-1911
>                 URL: https://jira.codehaus.org/browse/MNG-1911
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.0.1
>            Reporter: Guillaume Nodet
>            Assignee: Jason van Zyl
>            Priority: Critical
>         Attachments: MNG-1911.zip
>
>
> I have the following in my main pom
> {code:xml}
> <build>
>  <pluginManagement>
>   <plugins>
>    <plugin>
>     <groupId>org.apache.servicemix.plugins</groupId>
>     <artifactId>maven2-jbi-plugin</artifactId>
>     <version>1.0-SNAPSHOT</version>
>     <extensions>true</extensions>
>    </plugin>
>   </plugins>
>  </pluginManagement>
> </build>
> {code}
> If i try to add it to the modules, the first time, maven complains that it can not download the plugin.
> If i remove the {{<extensions>}} tag, all works, but i need it :)



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)