Skip to content

morinb/propertiestoclass-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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>

About

Maven Plugin for generating Java Classes from Properties file

Resources

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published

Languages