Skip to content

A maven plugin that executes one or multiple user defined processors that can be used to transform or modify the compilation result.

License

Notifications You must be signed in to change notification settings

RandomCodeOrg/PPPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PPPlugin License

A maven plugin that executes one or multiple user defined processors that can be used to transform or modify the compilation result.

Getting started

###1. Executing the plugin To run the PPPlugin insert the following snippet into the <build><plugins>-section of your pom.xml:

<plugin>
  <groupId>com.github.randomcodeorg.ppplugin</groupId>
  <artifactId>ppplugin</artifactId>
  <version>0.1.0</version>
  <executions>
    <execution>
    <phase>process-classes</phase>
      <goals>
        <goal>postprocess</goal>
      </goals>
    </execution>
  </executions>
</plugin>

To define a custom processor you also have to include

<dependency>
    <groupId>com.github.randomcodeorg.ppplugin</groupId>
    <artifactId>ppplugin</artifactId>
    <version>0.1.0</version>
</dependency>

in your pom's <dependencies>-section. ###2. Creating a processor The plugin will search the compiled classes for implementations of the PProcessor interface. Every implementation (you want to be executed) must be non-abstract and provide a public default constructor in order to be instantiated.

You may take a look at the PPDefaults project to see some default processor implementations.

About

A maven plugin that executes one or multiple user defined processors that can be used to transform or modify the compilation result.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages