Alex Glass created MNGSITE-153:
----------------------------------
Summary: POM Inheritance section is incorrect
Key: MNGSITE-153
URL: https://jira.codehaus.org/browse/MNGSITE-153
Project: Maven Project Web Site
Issue Type: Improvement
Reporter: Alex Glass
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html
The sections "Project Inheritance" and "Project Aggregation" fail to mention
that inheriting or aggregating requires the parent project to be packaged as
pom.
Currently:
<project>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1</version>
</project>
Becomes
<project>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1</version>
<packaging>pom</packaging>
</project>
Failure to specify the packaging results in errors like:
* [ERROR] 'packaging' with value 'jar' is invalid. Aggregator projects
require 'pom' as packaging. @ line 1, column 204
* [ERROR] Invalid packaging for parent POM com.mycompany.app:my-app:1
(...\pom.xml), must be "pom" but is "jar" @ com.mycompany.app:my-app:1,
...\pom.xml
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira