You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sahoo <Sa...@Sun.COM> on 2008/10/30 19:52:09 UTC

maven-release-plugin removes comments

My pom.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!--
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
...
-->
<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">
    <modelVersion>4.0.0</modelVersion>
...


I am  doing a dryRun of mvn release:branch. I see that the above comment 
is removed by maven. How can I avoid it?

Thanks,
Sahoo

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


Re: maven-release-plugin removes comments

Posted by Sahoo <Sa...@Sun.COM>.
Issue #255 has been fixed in maven-release-plugin version 2.0-beta-8 and 
that indeed fixed my issue.

Thanks,
Sahoo

Wim Deblauwe wrote:
> A quick search in jira makes you think it should have been fixed:
> http://jira.codehaus.org/browse/MRELEASE-255, although this related bug (
> http://jira.codehaus.org/browse/MRELEASE-266) is still open.
>
> Not sure if all comments are left alone or just specific things?
>
> regards,
>
> Wim
>
> 2008/10/30 Sahoo <Sa...@sun.com>
>
>   
>> My pom.xml looks like this:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!--
>> /*
>> * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
>> *
>> ...
>> -->
>> <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">
>>   <modelVersion>4.0.0</modelVersion>
>> ...
>>
>>
>> I am  doing a dryRun of mvn release:branch. I see that the above comment is
>> removed by maven. How can I avoid it?
>>
>> Thanks,
>> Sahoo
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>     
>
>   

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


Re: maven-release-plugin removes comments

Posted by Wim Deblauwe <wi...@gmail.com>.
A quick search in jira makes you think it should have been fixed:
http://jira.codehaus.org/browse/MRELEASE-255, although this related bug (
http://jira.codehaus.org/browse/MRELEASE-266) is still open.

Not sure if all comments are left alone or just specific things?

regards,

Wim

2008/10/30 Sahoo <Sa...@sun.com>

> My pom.xml looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
> /*
> * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
> *
> ...
> -->
> <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">
>   <modelVersion>4.0.0</modelVersion>
> ...
>
>
> I am  doing a dryRun of mvn release:branch. I see that the above comment is
> removed by maven. How can I avoid it?
>
> Thanks,
> Sahoo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>