[ https://issues.apache.org/jira/browse/MRESOURCES-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17900086#comment-17900086 ]
michael elbaz commented on MRESOURCES-310: ------------------------------------------ {code:java} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.3.1</version> <executions> <execution> <id>copy-resources</id> <phase>validate</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${basedir}/target/features</outputDirectory> <resources> <resource> <directory>src/main/features</directory> <filtering>true</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin>{code} {code:java} <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> {code} So i have a simple file containing {code:java} ${java.version} {code} And the generated file in directory `features` look like this {code:java} 21.0.3 {code} > When <filtering>true</filtering> new line is added at the end of file > ---------------------------------------------------------------------- > > Key: MRESOURCES-310 > URL: https://issues.apache.org/jira/browse/MRESOURCES-310 > Project: Maven Resources Plugin > Issue Type: Bug > Reporter: michael elbaz > Priority: Major > > When using <filtering>true</filtering> a new line is added at the end of the > +generated+ file which it can cause bug -- This message was sent by Atlassian Jira (v8.20.10#820010)