constant-maven-plugin

Export maven properties to constants sources

License

License

Categories

Categories

Maven Build Tools Ant
GroupId

GroupId

com.github.spirylics
ArtifactId

ArtifactId

constant-maven-plugin
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

constant-maven-plugin
Export maven properties to constants sources
Project URL

Project URL

https://github.com/spirylics/constant-maven-plugin
Source Code Management

Source Code Management

https://github.com/spirylics/constant-maven-plugin.git

Download constant-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.spirylics</groupId>
    <artifactId>constant-maven-plugin</artifactId>
    <version>1.0.2</version>
</plugin>

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.3.9
com.google.guava : guava jar 19.0

provided (2)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4
org.apache.maven : maven-core jar 3.3.9

test (3)

Group / Artifact Type Version
junit : junit jar 4.12
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0
org.apache.maven : maven-compat jar 3.3.9

Project Modules

There are no modules declared in this project.

constant-maven-plugin

Export properties to constants sources

Example

<plugin>
   <groupId>com.github.spirylics</groupId>
   <artifactId>constant-maven-plugin</artifactId>
   <version>1.0</version>
   <executions>
       <execution>
           <id>generate-constants</id>
           <goals>
               <goal>java</goal>
           </goals>
           <configuration>
               <directory>${project.build.directory}/gen</directory>
               <name>com.github.spirylics.R</name>
               <includes>
                    <include>constant.*</include>
               </includes>
           </configuration>
       </execution>
   </executions>
</plugin>

Should generated a java class in 'directory' with constants from maven properties matching with includes.

Versions

Version
1.0.2
1.0.1