Maven plugin to write dynamic text content into files (including maven properties)
- This
README.md
file itself was generated with text-file-writer-maven-plugin plugin. Refer to this project'spom.xml
to know how it is done. - Alternatively, you can also refer to the below sample:
<plugin>
<groupId>me.shib.plugin</groupId>
<artifactId>text-file-writer-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<phase>install</phase>
<goals><goal>text-file-writer</goal></goals>
<configuration>
<charset>UTF-8</charset>
<files>
<file>
<destination>README.md</destination>
<overwrite>true</overwrite>
<lines>
<line># Text File Writer - Maven Plugin</line>
<line>Maven plugin to write dynamic text content into files (including maven properties)</line>
</lines>
</file>
</files>
</configuration>
</execution>
<executions>
</configuration>
</plugin>