Common Utilities for Maven builds

Some common maven utilities.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.rmannibucau
ArtifactId

ArtifactId

common-maven-plugin
Last Version

Last Version

1.0.7
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Common Utilities for Maven builds
Some common maven utilities.
Project URL

Project URL

https://github.com/rmannibucau/common-maven-plugin
Source Code Management

Source Code Management

https://github.com/rmannibucau/common-maven-plugin

Download common-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.rmannibucau</groupId>
    <artifactId>common-maven-plugin</artifactId>
    <version>1.0.7</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5
org.apache.maven : maven-plugin-api jar 3.5.0
org.apache.commons : commons-text jar 1.1

provided (1)

Group / Artifact Type Version
org.apache.maven : maven-core jar 3.5.0

Project Modules

There are no modules declared in this project.

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.

Versions

Version
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0