I have a Maven project and my aim is to find a way how to append a build number during each build in existing html file. I have tried to deal with it via maven-war-plugin and classic ${build.number}, but unsuccessfully. Here are plugin settings:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<filtering>true</filtering>
<!-- <targetPath>WEB-INF</targetPath>-->
<directory>src/main/webapp/</directory>
<includes>
<include>*.html</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
I would be grateful for any ideas.
P.s. Is it obligatory to set <targetPath> in plugin or setting a <directory> is enough?
Aucun commentaire:
Enregistrer un commentaire