[ http://jira.codehaus.org/browse/MNG-2666?page=comments#action_80490 ] 
            
Wendy Smoak commented on MNG-2666:
----------------------------------

What version of the archetype plugin are you using?  (Run with -X and look for 
output similar to

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[DEBUG] maven-archetype-plugin: resolved to version 1.0-SNAPSHOT from local 
repository

I can't reproduce this with the latest snapshot of Archetype built from source. 
 I added some comments to an archetype pom, and after archetype:create, the 
comments are preserved.

<?xml version="1.0" encoding="UTF-8"?>
<!-- This is a comment outside the project element -->
<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>

      <!-- This is a comment inside the project element -->
      
   <modelVersion>4.0.0</modelVersion>
   <groupId>com.example</groupId>
...



> archetype:create strips out comments from the template pom.xml..
> ----------------------------------------------------------------
>
>                 Key: MNG-2666
>                 URL: http://jira.codehaus.org/browse/MNG-2666
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle, Plugin Creation Tools
>            Reporter: Prasad Kashyap
>
> archetype:create strips out comments from the template pom.xml.
> comments and license headers from the template pom.xml are gone in the newly 
> created project

-- 
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

        

Reply via email to