[
https://issues.apache.org/jira/browse/ARCHETYPE-656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Matějček updated ARCHETYPE-656:
-------------------------------------
Description:
[https://github.com/apache/maven-archetype/blob/3a2b725198c3823fd5d7e9f88b665b2e4515a202/archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultFilesetArchetypeGenerator.java#L741]
{code:java}
writer.write(StringUtils.unifyLineSeparators(stringWriter.toString()));{code}
This line manipulates end of line of the source.
That breaks checkstyle rules defined in the common parent of our project where
we enforce just '\n'.
It would be good to have it configurable like with encoding. Now is easier to
copy-paste another project than to use archetypes.
was:
[https://github.com/apache/maven-archetype/blob/3a2b725198c3823fd5d7e9f88b665b2e4515a202/archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultFilesetArchetypeGenerator.java#L741]
This line manipulates end of line of the source.
That breaks checkstyle rules defined in the common parent of our project where
we enforce just '\n'.
It would be good to have it configurable like with encoding. Now is easier to
copy-paste another project than to use archetypes.
> Generated artefact changes end of lines to line.separator value
> ---------------------------------------------------------------
>
> Key: ARCHETYPE-656
> URL: https://issues.apache.org/jira/browse/ARCHETYPE-656
> Project: Maven Archetype
> Issue Type: Bug
> Components: Generator
> Affects Versions: 3.2.1
> Reporter: David Matějček
> Priority: Major
>
> [https://github.com/apache/maven-archetype/blob/3a2b725198c3823fd5d7e9f88b665b2e4515a202/archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultFilesetArchetypeGenerator.java#L741]
> {code:java}
> writer.write(StringUtils.unifyLineSeparators(stringWriter.toString()));{code}
> This line manipulates end of line of the source.
> That breaks checkstyle rules defined in the common parent of our project
> where we enforce just '\n'.
> It would be good to have it configurable like with encoding. Now is easier to
> copy-paste another project than to use archetypes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)