Skip to content

Latest commit

 

History

History
49 lines (44 loc) · 1.32 KB

File metadata and controls

49 lines (44 loc) · 1.32 KB

Meta-Agent Maven Plugin

A Maven plugin to add the Meta-Agent to the tests of a project.

Usage

Add the following to your pom.xml:

<build>
    <plugins>
        <plugin>
            <groupId>me.bechberger</groupId>
            <artifactId>meta-agent-maven-plugin</artifactId>
            <version>0.0.3</version>
            <executions>
                <execution>
                    <phase>validate</phase>
                    <goals>
                        <goal>meta-agent</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <callbackClasses> <!-- to add an instrumentation callback handler -->
                    <callbackClass>me.bechberger.meta.LoggingInstrumentationHandler</callbackClass>
                </callbackClasses>
                <server>true</server> <!-- to start the meta-agent server -->
            </configuration>
        </plugin>
    </plugins>
</build>

And the following dependency:

<dependency>
    <groupId>me.bechberger</groupId>
    <artifactId>meta-agent</artifactId>
    <version>0.0.3</version>
    <scope>test</scope>
</dependency>

License

MIT, Copyright 2024 SAP SE or an SAP affiliate company, Johannes Bechberger and meta-agent agent contributors