You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Imran M Yousuf (JIRA)" <ji...@codehaus.org> on 2009/04/10 11:25:54 UTC
[jira] Created: (MNG-4129) Execution's inherited is not working as
expected.
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.
<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>
--
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
[jira] Updated: (MNG-4129) Execution's inherited is not working as
expected.
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MNG-4129:
-----------------------------------
Description:
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}
was:
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.
<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>
> 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
[jira] Reopened: (MNG-4129) Execution's inherited is not working as
expected.
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann reopened MNG-4129:
------------------------------------
My current understanding is that this is really more than a documentation deficit...
> 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
> Fix For: 2.0.10, 2.1.0, Documentation Deficit
>
> 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
[jira] Updated: (MNG-4129) Execution's inherited is not working as
expected.
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MNG-4129:
-----------------------------------
Fix Version/s: (was: 2.1.0)
(was: 2.0.10)
(was: Documentation Deficit)
> 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
[jira] Closed: (MNG-4129) Execution's inherited is not working as
expected.
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-4129.
----------------------------------
Assignee: Benjamin Bentmann
Resolution: Fixed
Fix Version/s: 3.0-alpha-3
Fixed in [r777205|http://svn.eu.apache.org/viewvc?view=rev&revision=777205].
> 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
> Assignee: Benjamin Bentmann
> Priority: Critical
> Fix For: 3.0-alpha-3
>
> 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
[jira] Closed: (MNG-4129) Execution's inherited is not working as
expected.
Posted by "Imran M Yousuf (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Imran M Yousuf closed MNG-4129.
-------------------------------
Resolution: Not A Bug
Fix Version/s: 2.0.10
2.1.0
Documentation Deficit
Thanks Benjamin, that actually got the inherited to work as it is, but unfortunately its not documented anywhere, if it was that would have saved me a lot of time :).
FYI, I set <inherited>false</inherited> as I could not get it to work and after that I copy pasted it, sorry for the inconvenience.
Thanks once again.
> 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
> Fix For: Documentation Deficit, 2.1.0, 2.0.10
>
> 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
[jira] Commented: (MNG-4129) Execution's inherited is not working
as expected.
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ 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