[ 
https://issues.apache.org/jira/browse/ARCHETYPE-584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17715445#comment-17715445
 ] 

Elliotte Rusty Harold commented on ARCHETYPE-584:
-------------------------------------------------

The Stack Overflow threads are interesting. That smells like a JDK bug to me, 
though I do think it's one worth working around. I'm still open to a PR here, 
though as with any other PR though as with any other PR it needs to have tests 
and not break the CI. So far no one, me included, has managed to do all of 
this. It's like we're chasing a bubble under a rug and wherever we push it 
down, it pops back up again in another part of the carpet. :-(

> Resulting root pom.xml from archetype generation has additional newlines with 
> JDK11
> -----------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-584
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-584
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Archetypes
>    Affects Versions: 3.1.1, 3.1.2
>            Reporter: bugflux
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> This issue does not apply to version 3.1.0, it was introduced in version 
> 3.1.1.
>  
> In our project, we have the default configuration of the root pom.xml that 
> contains lines such as this:
> {code:java}
> <properties>
>     <java.version>11</java.version>
>     <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
> </properties>
> {code}
> These lines are still in good shape when added to the jar artifact. However, 
> upon generating the project from the archetype, we get the following (note 
> also the whitespace on the blank lines hinting at some indentation attempts, 
> not just the unexpected line breaks)
> {code:java}
> <properties>
>               
>   
>   <java.version>11</java.version>
>               
>   
>   <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
>           
> </properties>
>       
> {code}
> This issue does *not* occur in in child module pom.xml files.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to