Skip to content
This repository has been archived by the owner on Jul 6, 2018. It is now read-only.

Maven plugin that instruments class files using IntelliJ's javac2 instrumenter

Notifications You must be signed in to change notification settings

awallgren/javac2-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Maven plugin that uses IntelliJ's javac2 byte-code instrumentation to insert checks for @NotNull/@Nonnull annotations

INSTALLATION

Some dependencies are not in Maven Central and thus must be installed in your local repository.
These dependencies are stored under misc/libs folder and can be installed using next commands:
mvn install:install-file -Dfile=annotations.jar -DgroupId=com.intellij -DartifactId=annotations -Dversion=11.1.2 -Dpackaging=jar
mvn install:install-file -Dfile=javac2.jar -DgroupId=com.intellij -DartifactId=javac2 -Dversion=11.1.2 -Dpackaging=jar

After successful maven installation plugin must be installed in local Maven repository. Go to the target directory and install plugin using next command:
mvn install:install-file -Dfile=javac2-maven-plugin-1.0.1.jar -DgroupId=com.electriccloud -DartifactId=javac2-maven-plugin -Dversion=1.0.1 -Dpackaging=maven-plugin

Plugin can be used in your pom.xml, e.g. in plugins section:
<plugin>
    <groupId>com.electriccloud</groupId>
    <artifactId>javac2-maven-plugin</artifactId>
    <version>1.0.1</version>
    <executions>
        <execution>
            <id>@NotNull Instrumentation</id>
            <goals>
                <goal>instrument</goal>
            </goals>
            <phase>process-classes</phase>
        </execution>
    </executions>
</plugin>

About

Maven plugin that instruments class files using IntelliJ's javac2 instrumenter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages