Create a New File with Maven

<plugin>

<artifactId>maven-antrun-plugin</artifactId>

<version>1.8</version>

<executions>

<execution>

<phase>process-classes</phase>

<configuration>

<target>

<echo message=”javax.xml.bind.context.factory=${javax.xml.bind.context.factory}”

file=”${project.build.directory}/classes/com/path/jaxb.properties”/>

<echo message=”javax.xml.bind.context.factory=${javax.xml.bind.context.factory}”

file=”${project.build.directory}/classes/com/path2/jaxb.properties”/>

</target>

</configuration>

<goals>

<goal>run</goal>

</goals>

</execution>

</executions>

</plugin>