Maven Javassist Parent

Maven Javassist Parent.

License

License

Categories

Categories

Maven Build Tools Net Javassist Application Layer Libs Bytecode Manipulation Networking
GroupId

GroupId

com.arpnetworking.commons
ArtifactId

ArtifactId

javassist-maven-parent
Last Version

Last Version

0.2.3
Release Date

Release Date

Type

Type

pom
Description

Description

Maven Javassist Parent
Maven Javassist Parent.
Project URL

Project URL

https://github.com/ArpNetworking/maven-javassist
Source Code Management

Source Code Management

https://github.com/arpnetworking/maven-javassist

Download javassist-maven-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.arpnetworking.commons/javassist-maven-parent/ -->
<dependency>
    <groupId>com.arpnetworking.commons</groupId>
    <artifactId>javassist-maven-parent</artifactId>
    <version>0.2.3</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.arpnetworking.commons/javassist-maven-parent/
implementation 'com.arpnetworking.commons:javassist-maven-parent:0.2.3'
// https://jarcasting.com/artifacts/com.arpnetworking.commons/javassist-maven-parent/
implementation ("com.arpnetworking.commons:javassist-maven-parent:0.2.3")
'com.arpnetworking.commons:javassist-maven-parent:pom:0.2.3'
<dependency org="com.arpnetworking.commons" name="javassist-maven-parent" rev="0.2.3">
  <artifact name="javassist-maven-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.arpnetworking.commons', module='javassist-maven-parent', version='0.2.3')
)
libraryDependencies += "com.arpnetworking.commons" % "javassist-maven-parent" % "0.2.3"
[com.arpnetworking.commons/javassist-maven-parent "0.2.3"]

Dependencies

provided (1)

Group / Artifact Type Version
com.arpnetworking.build : build-resources jar 2.0.2

Project Modules

  • maven-javassist-core
  • maven-javassist-plugin

Maven Javassist

License: Apache 2 Travis Build Maven Artifact

Provides a Maven plugin for processing classes using Javassist by specifying transformations using the included library.

Usage

Add the plugin block to your project. Specify at least the class path to your processor.

<plugin>
  <groupId>com.arpnetworking.commons</groupId>
  <artifactId>javassist-maven-plugin<artifactId>
  <version>0.1.0</version>
  <executions>
    <execution>
      <id>javassist-process</id>
      <goals>
        <goal>process</goal>
      </goals>
      <configuration>
        <processor>${YOUR_PROCESSOR_CLASS}</processor>
      </configuration>
    </execution>
  </executions>
</plugin>

You can also process your test classes by adding an additional execution with the test-process goal:

<execution>
  <id>javassist-test-process</id>
  <goals>
    <goal>test-process</goal>
  </goals>
  <configuration>
    <processor>${YOUR_PROCESSOR_CLASS}</processor>
  </configuration>
</execution>

Additional configuration options include:

  • includes - set of path matching globs for including classes for processing; if not specified all classes are included.
  • excludes - set of path matching globs for excluding classes from processing; if not specified no classes are excluded.
  • threads - the number of threads to execute processing with or threads per core if the value ends with "C".

Development

To build the service locally you must satisfy these prerequisites:

Next, fork the repository, clone and build:

Building:

maven-javassist> ./mvnw verify

To use the local version in your project you must first install it locally:

maven-javassist> ./mvnw install

You can determine the version of the local build from the pom.xml file. Using the local version is intended only for testing or development.

You may also need to add the local repository to your build in order to pick-up the local version:

  • Maven - Included by default.
  • Gradle - Add mavenLocal() to build.gradle in the repositories block.
  • SBT - Add resolvers += Resolver.mavenLocal into project/plugins.sbt.

License

Published under Apache Software License 2.0, see LICENSE

© Inscope Metrics Inc., 2016

Versions

Version
0.2.3
0.2.2
0.2.1
0.2.0
0.1.3
0.1.2