Maven Archetype

Generated POM.xml should keep comments

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0-alpha-4
  • Fix Version/s: 2.0-alpha-1
  • Component/s: Generator
  • Labels:
    None
  • Environment:
    Win XP, Maven 2.0.7
  • Number of attachments :
    0

Description

I'm writting some custom archetype for my projects. In the POM.xml template file, I want to put some comments that would be useful for those developers who don't know Maven and to guide them.
Something like:

<project>
[...]

<dependencies>
<!-- You can add/remove dependencies as you need here. -->
</dependencies>
</project>

Unfortunately, the whole <dependencies> tag is removed from the generated pom.xml file. It would be nice to have a templating mechanism that's able to keep those comments.

Thanks,
Ludovic

Issue Links

Activity

Hide
Christian Sokop added a comment -

Is there a workaround for this issue. Maybe it is possible to use an escape sign, to tell
velocity that text is following and not a tag.

Does anybody know?

Thanks,
g

Show
Christian Sokop added a comment - Is there a workaround for this issue. Maybe it is possible to use an escape sign, to tell velocity that text is following and not a tag. Does anybody know? Thanks, g

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: