Post Processor Plugin

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

License

License

GroupId

GroupId

com.github.randomcodeorg.ppplugin
ArtifactId

ArtifactId

ppplugin
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

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

Project URL

https://github.com/RandomCodeOrg/PPPlugin
Source Code Management

Source Code Management

https://github.com/RandomCodeOrg/PPPlugin.git

Download ppplugin

How to add to project

<plugin>
    <groupId>com.github.randomcodeorg.ppplugin</groupId>
    <artifactId>ppplugin</artifactId>
    <version>0.3.0</version>
</plugin>

Dependencies

compile (4)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.2.1
org.javassist : javassist jar 3.20.0-GA
org.apache.maven : maven-core jar 3.3.9
com.github.randomcodeorg.ppplugin : ppplugin-api jar 0.3.0

provided (1)

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

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

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.

com.github.randomcodeorg.ppplugin

Versions

Version
0.3.0
0.2.0
0.1.0
0.0.3
0.0.2
0.0.1