Reputation: 282
I can't find a solution to my problem. in short: in the ear/pom.xml with this configuration all work perfectly
<project ...>
<build>
<finalName>${project.artifactId}</finalName>
....
</build>
</project>
But when i try to add a timestamp to finalname:
...
<finalName>${project.artifactId}-${maven.build.timestamp}</finalName>
...
I get this error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:2.8:generate-application-xml (default-generate-application-xml) on project soc-ear: Unable to copy application.xml to final destination: The file, directory, or volume name syntax is incorrect
Some idea? Thanks in advance
Upvotes: 0
Views: 4812
Reputation: 282
I found the solution. To edit the final name, just move the property to the plugin
<build>
<plugins>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<finalName>${project.artifactId}-${maven.build.timestamp}</finalName>
...
</configuration>
</plugin>
</plugins>
</build>
I do not know the difference between putting it in the generic build rather than in the plugin, but it does work.
Upvotes: 2