Child POM inherit reporting configurtaion from parent POM?

2009-05-08 Thread REMIJAN, MICHAEL J [AG/1000]
I have javadoc reporting configuration in a PARENT POM an it looks like
this:

reporting
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
inheritedtrue/inherited
configuration
   links
 
linkhttp://java.sun.com/j2se/1.5.0/docs/api/link
 
linkhttp://jakarta.apache.org/commons/chain/apidocs/link
   /links
/configuration
/plugin   
/plugins
  /reporting


Now for a CHILD POM I want to add a new link for a library which the
CHILD project uses.  So I have this in the CHILD POM

reporting
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
configuration
   links
linkhttp://flickrj.sourceforge.net/api//link
   /links
/configuration
/plugin
/plugins
 /reporting

My problem is Maven isn't combining the two.  I expected
help:effective-pom to have 3 link tags but it only shows the one from
the CHILD POM.  So the CHILD POM configuration is overriding the PARENT
POM.  Is there a way to get Maven to combine the two?

Mike

-
This e-mail message may contain privileged and/or confidential information, and 
is intended to be received only by persons entitled to receive such 
information. If you have received this e-mail in error, please notify the 
sender immediately. Please delete it and all attachments from any servers, hard 
drives or any other media. Other use of this e-mail by you is strictly 
prohibited.


All e-mails and attachments sent and received are subject to monitoring, 
reading and archival by Monsanto, including its subsidiaries. The recipient of 
this e-mail is solely responsible for checking for the presence of Viruses or 
other Malware. Monsanto, along with its subsidiaries, accepts no liability 
for any damage caused by any such code transmitted by or accompanying this 
e-mail or any attachment.
-


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Child POM inherit reporting configurtaion from parent POM?

2009-05-08 Thread Brian Fox
The merging inside the configuration doesn't add the things together because
it isn't known ahead of time if replacement or merging makes sense for a
given plugin.

On Fri, May 8, 2009 at 9:33 AM, REMIJAN, MICHAEL J [AG/1000] 
michael.j.remi...@monsanto.com wrote:

 I have javadoc reporting configuration in a PARENT POM an it looks like
 this:

 reporting
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
inheritedtrue/inherited
configuration
   links

 linkhttp://java.sun.com/j2se/1.5.0/docs/api/link

 linkhttp://jakarta.apache.org/commons/chain/apidocs/link
   /links
/configuration
/plugin
/plugins
  /reporting


 Now for a CHILD POM I want to add a new link for a library which the
 CHILD project uses.  So I have this in the CHILD POM

 reporting
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
configuration
   links
linkhttp://flickrj.sourceforge.net/api//link
   /links
/configuration
/plugin
/plugins
  /reporting

 My problem is Maven isn't combining the two.  I expected
 help:effective-pom to have 3 link tags but it only shows the one from
 the CHILD POM.  So the CHILD POM configuration is overriding the PARENT
 POM.  Is there a way to get Maven to combine the two?

 Mike


 -
 This e-mail message may contain privileged and/or confidential information,
 and is intended to be received only by persons entitled to receive such
 information. If you have received this e-mail in error, please notify the
 sender immediately. Please delete it and all attachments from any servers,
 hard drives or any other media. Other use of this e-mail by you is strictly
 prohibited.


 All e-mails and attachments sent and received are subject to monitoring,
 reading and archival by Monsanto, including its subsidiaries. The recipient
 of this e-mail is solely responsible for checking for the presence of
 Viruses or other Malware. Monsanto, along with its subsidiaries, accepts
 no liability for any damage caused by any such code transmitted by or
 accompanying this e-mail or any attachment.

 -


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org