You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2009/04/10 13:36:53 UTC
[jira] Commented: (MNG-4129) Execution's inherited is not working
as expected.
[ http://jira.codehaus.org/browse/MNG-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=172620#action_172620 ]
Benjamin Bentmann commented on MNG-4129:
----------------------------------------
A workaround should be to add
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${assembly.version}</version>
</plugin>
{code}
to the child POMs, i.e. ensure the plugin declaration is present in the children as well such that Maven needs to actually merge them.
You will need to remove {{<inherited>false</inherited>}} from the {{<plugin>}} declaration or the execution {{assemble-readme}} can't be inherited because inheritance of the plugin declaration is a prerequisite for inheritance of plugin executions.
> Execution's inherited is not working as expected.
> -------------------------------------------------
>
> Key: MNG-4129
> URL: http://jira.codehaus.org/browse/MNG-4129
> Project: Maven 2
> Issue Type: Bug
> Components: Inheritance and Interpolation
> Affects Versions: 2.1.0
> Reporter: Imran M Yousuf
> Priority: Critical
> Attachments: pom.xml
>
>
> I have following mentioned in my POM, but 'assemble-static-gh-pages' gets executed in the child POMs anyway. I see that its supposed to working as of - MNG-3286 but it ain't so. The build process in my project (http://github.com/imyousuf/smart-dao/tree) is incomplete just because of it.
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>${assembly.version}</version>
> <inherited>false</inherited>
> <executions>
> <!-- Assembly execution for aggregating gh-pages -->
> <execution>
> <id>assemble-static-gh-pages</id>
> <phase>compile</phase>
> <inherited>false</inherited>
> <goals>
> <goal>single</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>src/main/assembly/assemble-gh-pages.xml</descriptor>
> </descriptors>
> </configuration>
> </execution>
> <!-- Filter README -->
> <execution>
> <id>assemble-readme</id>
> <phase>process-resources</phase>
> <inherited>true</inherited>
> <goals>
> <goal>single</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>src/main/assembly/assemble-readme.xml</descriptor>
> </descriptors>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
--
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