<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and | |
limitations under the License. | |
--> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<parent> | |
<artifactId>sirona-agent</artifactId> | |
<groupId>org.apache.sirona</groupId> | |
<version>0.4-incubating</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> | |
<artifactId>sirona-javaagent</artifactId> | |
<name>Apache Sirona Incubator :: Agent :: JavaAgent</name> | |
<properties> | |
<test.debug.remote>false</test.debug.remote> | |
<sirona.agent.debug>false</sirona.agent.debug> | |
<asm.version>5.0.4</asm.version> | |
<agent.class>org.apache.sirona.javaagent.SironaAgent</agent.class> | |
<java.runtime>15</java.runtime> | |
<maven.compiler.source>1.5</maven.compiler.source> | |
<maven.compiler.target>1.5</maven.compiler.target> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.sirona</groupId> | |
<artifactId>sirona-aop</artifactId> | |
<exclusions> | |
<exclusion> | |
<groupId>org.apache.commons</groupId> | |
<artifactId>commons-proxy</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.sirona</groupId> | |
<artifactId>sirona-api</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.sirona</groupId> | |
<artifactId>sirona-core</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.sirona</groupId> | |
<artifactId>sirona-store-memory</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.ow2.asm</groupId> | |
<artifactId>asm-all</artifactId> | |
<version>${asm.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>animal-sniffer-annotations</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.commons</groupId> | |
<artifactId>commons-lang3</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<!-- saw some issues in EE context so importing it brutally for testing --> | |
<dependency> | |
<groupId>org.apache.openejb</groupId> | |
<artifactId>javaee-api</artifactId> | |
<version>6.0-5</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.openjpa</groupId> | |
<artifactId>openjpa</artifactId> | |
<version>2.3.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.openejb</groupId> | |
<artifactId>openejb-core</artifactId> | |
<version>4.6.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>commons-io</groupId> | |
<artifactId>commons-io</artifactId> | |
<version>2.4</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>pre-build-jar</id> | |
<phase>test-compile</phase> | |
<goals> | |
<goal>jar</goal> | |
</goals> | |
</execution> | |
<execution> | |
<goals> | |
<goal>test-jar</goal> | |
</goals> | |
<configuration> | |
<excludes> <!-- packaged to be reusable => don't reuse the test config --> | |
<exclude>sirona.properties</exclude> | |
<exclude>META-INF/services/*</exclude> | |
</excludes> | |
</configuration> | |
</execution> | |
</executions> | |
<configuration> | |
<archive> | |
<manifestEntries> | |
<Premain-Class>${agent.class}</Premain-Class> | |
<Agent-Class>${agent.class}</Agent-Class> | |
<Can-Redefine-Classes>true</Can-Redefine-Classes> | |
<Can-Retransform-Classes>true</Can-Retransform-Classes> | |
</manifestEntries> | |
</archive> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>test-compile</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> | |
<configuration> | |
<createSourcesJar>true</createSourcesJar> | |
<shadedArtifactAttached>true</shadedArtifactAttached> | |
<shadedClassifierName>shaded</shadedClassifierName> | |
<createDependencyReducedPom>true</createDependencyReducedPom> | |
<dependencyReducedPomLocation>${project.build.directory}/reduced-pom.xml</dependencyReducedPomLocation> | |
<relocations> | |
<relocation> | |
<pattern>org.objectweb.asm</pattern> | |
<shadedPattern>org.apache.sirona.asm</shadedPattern> | |
</relocation> | |
</relocations> | |
<artifactSet> | |
<includes> | |
<include>org.ow2.asm:asm-all</include> | |
<include>org.apache.sirona:sirona-aop</include> | |
<include>org.apache.sirona:sirona-core</include> | |
<include>org.apache.sirona:sirona-api</include> | |
<include>org.apache.sirona:sirona-store-memory</include> | |
</includes> | |
</artifactSet> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<configuration> | |
<systemPropertyVariables> | |
<test.debug.remote>${test.debug.remote}</test.debug.remote> | |
<project.build.directory>${project.build.directory}</project.build.directory> | |
<sirona.agent.debug>${sirona.agent.debug}</sirona.agent.debug> | |
<java.io.tmpdir>${project.build.directory}</java.io.tmpdir> | |
</systemPropertyVariables> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |