Properties to Class Maven Plugin

Maven plugin to convert properties files into Java classes

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.morinb.maven
ArtifactId

ArtifactId

propertiestoclass-maven-plugin
Last Version

Last Version

0.0.6
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Properties to Class Maven Plugin
Maven plugin to convert properties files into Java classes
Project URL

Project URL

https://github.com/morinb/propertiestoclass-maven-plugin
Project Organization

Project Organization

propertiestoclass
Source Code Management

Source Code Management

https://github.com/morinb/propertiestoclass-maven-plugin

Download propertiestoclass-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.morinb.maven</groupId>
    <artifactId>propertiestoclass-maven-plugin</artifactId>
    <version>0.0.6</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
com.google.guava : guava jar 28.1-jre
org.apache.velocity : velocity jar 1.7
org.apache.velocity : velocity-tools jar 2.0

provided (7)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.6.0
org.apache.maven : maven-project jar 2.0.11
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0
ch.qos.logback : logback-classic jar 1.2.3
org.apache.maven : maven-model jar 3.6.0
org.apache.maven : maven-aether-provider jar 3.3.9
org.apache.maven : maven-core jar 3.6.0

test (3)

Group / Artifact Type Version
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0
org.apache.maven : maven-compat jar 3.6.0
org.junit.jupiter : junit-jupiter jar 5.5.2

Project Modules

There are no modules declared in this project.

propertiestoclass-maven-plugin

propertiestoclass-maven-plugin provides a Java class generator for properties files.

Maven Central Version Build Status JitPack Version

The supported goal is :

p2c - process specified properties file to generate Java classes.

Here is an example of a configuration :

<plugin>
    <groupId>com.github.morinb.maven</groupId>
    <artifactId>propertiestoclass-maven-plugin</artifactId>
    <version>0.0.1</version>
    <configuration>
        <constantPrefix>PROP_</constantPrefix>
        <outputPackage>com.github.morinb.maven.generated</outputPackage>
        <propertiesFiles>
            <propertiesFile>src/main/resources/test.properties</propertiesFile>
        </propertiesFiles>
    </configuration>
    <executions>
        <execution>
            <id>p2c</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>p2c</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Versions

Version
0.0.6