Stephen Connolly wrote:
> it might be
> 
> <developers combine.children='append'>
> </developers>

Yes, it is, but I couldn't get it to work. The parent POM's <developers>
get always overwritten, attribute or not. :-(

FWIW, m2eclipse (rightly) complains that combine.children isn't defined
in the POM's XML schema. I wonder why it was left out. (Which is too
bad, as I wanted to know whether the attribute supports values other
than "append".)

That being said, it only solves the simplest case, namely adding a
<developer> to the <developers> found in the parent POM. What I would
really like to do is keep all contact information in the parent POM and
merge it into the child POM's <developers> if a given developer is
referred to there. This is best illustrated by an example/wishlist.

Parent POM:

<developers>
  <developer>
    <id>sewe</id>
    <name>Andreas Sewe</name>
    <email>[email protected]</email>
    <!-- Much more contact information -->
  </developer>
</developers>

Child POM:

<developers>
  <developer>
    <!-- Something along the following lines, selecting the developer
         for this (child) project -->
    <id>sewe</id>
    <roles>
      <role>Benevolent Dictator</role>
    </roles>
  </developer>
</developers>

Desired effective child POM:

<developers>
  <developer>
    <id>sewe</id>
    <name>Andreas Sewe</name>
    <email>[email protected]</email>
    <!-- Much more contact information -->
    <roles>
      <role>Benevolent Dictator</role>
    </roles>
  </developer>
</developers>

It would be really nice if something like this where possible.

Granted, for most OSS projects inheriting the complete list of
<developers> in all child POMs is probably fine, but in an academic
environment, where attribution is everything, you want to be a little
bit more precise about who developed what. I just don't want to repeat
myself over and over again, but rather keep the contact information only
in one place: the parent POM.

I hope this clarifies things and my use case.

Andreas Sewe

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to