Some maven utilities
<plugin>
<groupId>com.github.rmannibucau</groupId>
<artifactId>common-maven-plugin</artifactId>
<version>${plugin.version}</version>
</plugin>
RootLocation
<executions>
<execution>
<id>set-rootlocation</id>
<goals>
<goal>rootlocation</goal>
</goals>
</execution>
</executions>
Sets the property rootlocation
in project properties.
Note
|
name is configurable. |
Filter
<executions>
<execution>
<id>filter-file</id>
<goals>
<goal>filter</goal>
</goals>
<configuration>
<from>${project.basedir}/foo</from>
<to>${project.basedir}/bar</to>
</configuration>
</execution>
</executions>
Sets the property rootlocation
in project properties.
Note
|
name is configurable. |
Frontend Filter
Tip
|
intended to be used with frontend-maven-plugin . |
<executions>
<execution>
<id>frontend-filter</id>
<goals>
<goal>frontend-filter</goal>
</goals>
</execution>
</executions>
${project.basedir}/package-template.json
and ${project.basedir}/src/main/frontend/package-template.json
are filtered and copied to ${project.basedir}/package.json
or ${project.basedir}/src/main/frontend/package.json
.
It allows to handle the versions in the pom.xml
for instance.