Filed under: Company News
We are excited to announce the availability of AppNeta Java artifacts on Maven! It’s now easier and faster than ever to add performance monitoring to Java apps.
Maven is designed to make building and managing Java projects easier and with this update, we now enable users to add our Java agent and/or the custom instrumentation API as dependencies to their project (.pom) files.
The AppNeta java agent and all native and configuration files that it depends on, are provided in a zip package, which can be accessed by adding the following:
<dependency> <groupId>com.appneta.agent.java</groupId> <artifactId>appneta-agent</artifactId> <version>5.0.4</version> <type>zip</type> </dependency>
Once a maven project containing this dependency is built by a user, Maven will automatically pull the AppNeta agent package from the Maven Central repository. Then the file can be unzipped in a variety of ways, for example by using the maven dependency plugin.
The agent can be also installed or downloaded using the AppNeta maven plugin. It supports any operating system that has Maven installed. It allows automatic version management by discovery of the latest agent version that is available. It can be executed either as a part of a maven project, or directly from the command line:
The install-agent goal of the plugin is suitable for installation of the agent to the local machine, while download-agent should be used when the agent would be further used or packed as a part of more complex runtime or deployment artifacts.
The Custom instrumentation API can be directly used by adding it as a dependency, which enables the compiling of the custom instrumentations in the code without any additional configuration:
<dependency> <groupId>com.appneta.agent.java</groupId> <artifactId>appneta-api</artifactId> <version>5.0.4</version> </dependency>
For developers utilizing Maven, the inclusion of AppNeta files is now really easy. Our agent, plugin and API .jar files are available on the Maven website for anyone listing them as dependencies or plugins in their maven project (.pom) files.
We love hearing from you so please feel free to get in touch at firstname.lastname@example.org with your comments or feedback.