maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heinrich Nirschl (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MPLUGIN-37) parent with multi-type mojo children does not build ant mojo
Date Wed, 02 Jan 2008 07:08:59 GMT

    [ http://jira.codehaus.org/browse/MPLUGIN-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_118365
] 

Heinrich Nirschl commented on MPLUGIN-37:
-----------------------------------------

I guess, in the reactor wrong dependencies for the maven-plugin-plugin is used. I could work
around it by putting the plugin dependency on maven-plugin-tools-ant into the parent (in the
pluginManagement section).

> parent with multi-type mojo children does not build ant mojo
> ------------------------------------------------------------
>
>                 Key: MPLUGIN-37
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-37
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>         Environment: linux
>            Reporter: M. van der Plas
>         Attachments: antmojobug.tgz
>
>
> I've a parent with two childeren. Both are mojos. One is a java mojo, the other is an
ant mojo.
> When I run mvn clean install in the parent, the ant mojo is not build correctly.
> To reproduce use the project in the attached tgz file:
> tar -zxvf antmojobug.tgz
> cd antmojobug
> mvn clean install.
> Observe that ant-child/target/classes only contains a META-INF directory. The file test.build.xml
is missing.
> I notice that the mvn output gives:
> ...
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> ...
> When I run mvn clean install in the ant-mojo directory I get a proper mojo and the output
is :
> ...
> [INFO] [plugin:descriptor]
> [INFO] Using 3 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] Applying extractor for language: ant
> [INFO] Extractor for language: ant found 1 mojo descriptors.
> ...
> When the order of modules in the parent pom is reversed, the ant mojo is  correctly build.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message