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

Sylwester Lachiewicz commented on ARCHETYPE-573:
------------------------------------------------

[~oburgosm] could you paste command that would produce incorrect results?

> Version 3.1.1 generates redundant newlines in POM files
> -------------------------------------------------------
>
>                 Key: ARCHETYPE-573
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-573
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 3.1.1
>         Environment: $ mvn -version
> Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 
> 2019-04-04T23:00:29+04:00)
> Maven home: /usr/local/Cellar/maven/3.6.1/libexec
> Java version: 12.0.1, vendor: Oracle Corporation, runtime: 
> /Library/Java/JavaVirtualMachines/openjdk-12.0.1.jdk/Contents/Home
> Default locale: en_AE, platform encoding: UTF-8
> OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"
>            Reporter: Christian Schlichtherle
>            Priority: Minor
>
> Since version 3.1.1, the {{generate}} goal inserts redundant newlines in the 
> POM file. Here's a step to reproduce:
> {code:java}
> $ mvn org.apache.maven.plugins:maven-archetype-plugin:3.1.1:generate -B \
>     -DarchetypeGroupId=global.namespace.truelicense-maven-archetype \
>     -DarchetypeArtifactId=truelicense-maven-archetype \
>     -DarchetypeVersion=4.0.0-RC1 \
>     -DartifactId='basic' \
>     -Dcompany='Company Inc.' \
>     -DgroupId='com.company.product' \
>     -Dpassword='test1234' \
>     -Dsubject='Product 1' \
>     -Dversion='1.0-SNAPSHOT'
> $ head basic/pom.xml 
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!--
> ~ Copyright (C) 2005 - 2019 Schlichtherle IT Services.
> ~ All rights reserved. Use is subject to license terms.
> --><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/xsd/maven-4.0.0.xsd";>
> <modelVersion>4.0.0</modelVersion>
> {code}
> It's working fine with version 3.1.0, though:
> {code:java}
> $ mvn org.apache.maven.plugins:maven-archetype-plugin:3.1.0:generate -B \
>     -DarchetypeGroupId=global.namespace.truelicense-maven-archetype \
>     -DarchetypeArtifactId=truelicense-maven-archetype \
>     -DarchetypeVersion=4.0.0-RC1 \
>     -DartifactId='basic' \
>     -Dcompany='Company Inc.' \
>     -DgroupId='com.company.product' \
>     -Dpassword='test1234' \
>     -Dsubject='Product 1' \
>     -Dversion='1.0-SNAPSHOT'
> $ head basic/pom.xml 
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
> ~ Copyright (C) 2005 - 2019 Schlichtherle IT Services.
> ~ All rights reserved. Use is subject to license terms.
> --><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/xsd/maven-4.0.0.xsd";>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.company.product</groupId>
> <artifactId>basic</artifactId>
> <version>1.0-SNAPSHOT</version>
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to