| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2015, EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com> |
| 4 | |
| 5 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by |
| 7 | the Free Software Foundation; either version 2 of the License, or |
| 8 | (at your option) any later version. |
| 9 | |
| 10 | This program is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | GNU General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU General Public License along |
| 16 | with this program; if not, write to the Free Software Foundation, Inc., |
| 17 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 18 | --> |
| 19 | |
| 20 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 21 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | |
| 25 | <prerequisites> |
| 26 | <maven>3.0</maven> |
| 27 | </prerequisites> |
| 28 | |
| 29 | <groupId>org.lttng.ust.agent</groupId> |
| 30 | <artifactId>lttng-ust-agent-tests</artifactId> |
| 31 | <version>1.0.0</version> |
| 32 | <packaging>jar</packaging> |
| 33 | |
| 34 | <name>LTTng-UST Java Agent Test Suite</name> |
| 35 | |
| 36 | <properties> |
| 37 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 38 | <!-- Paths that come from UST's default "make install". |
| 39 | Override to specify other locations. --> |
| 40 | <common-jar-location>/usr/local/share/java/lttng-ust-agent-common-1.0.0.jar</common-jar-location> |
| 41 | <jul-jar-location>/usr/local/share/java/lttng-ust-agent-jul-1.0.0.jar</jul-jar-location> |
| 42 | <log4j-jar-location>/usr/local/share/java/lttng-ust-agent-log4j-1.0.0.jar</log4j-jar-location> |
| 43 | <argLine>-Djava.library.path=/usr/local/lib</argLine> |
| 44 | </properties> |
| 45 | |
| 46 | <dependencies> |
| 47 | <!-- System dependencies, should have been installed by UST --> |
| 48 | <dependency> |
| 49 | <groupId>org.lttng.ust.agent</groupId> |
| 50 | <artifactId>lttng-ust-agent-common</artifactId> |
| 51 | <version>1.0.0</version> |
| 52 | <scope>system</scope> |
| 53 | <systemPath>${common-jar-location}</systemPath> |
| 54 | </dependency> |
| 55 | <dependency> |
| 56 | <groupId>org.lttng.ust.agent</groupId> |
| 57 | <artifactId>lttng-ust-agent-jul</artifactId> |
| 58 | <version>1.0.0</version> |
| 59 | <scope>system</scope> |
| 60 | <systemPath>${jul-jar-location}</systemPath> |
| 61 | </dependency> |
| 62 | <dependency> |
| 63 | <groupId>org.lttng.ust.agent</groupId> |
| 64 | <artifactId>lttng-ust-agent-log4j</artifactId> |
| 65 | <version>1.0.0</version> |
| 66 | <scope>system</scope> |
| 67 | <systemPath>${log4j-jar-location}</systemPath> |
| 68 | </dependency> |
| 69 | |
| 70 | <!-- "Real" Maven dependencies --> |
| 71 | <dependency> |
| 72 | <groupId>log4j</groupId> |
| 73 | <artifactId>log4j</artifactId> |
| 74 | <version>1.2.17</version> |
| 75 | </dependency> |
| 76 | <dependency> |
| 77 | <groupId>junit</groupId> |
| 78 | <artifactId>junit</artifactId> |
| 79 | <version>4.12</version> |
| 80 | <scope>test</scope> |
| 81 | </dependency> |
| 82 | </dependencies> |
| 83 | |
| 84 | <build> |
| 85 | <plugins> |
| 86 | <plugin> |
| 87 | <groupId>org.apache.maven.plugins</groupId> |
| 88 | <artifactId>maven-compiler-plugin</artifactId> |
| 89 | <version>3.3</version> |
| 90 | <configuration> |
| 91 | <source>1.8</source> |
| 92 | <target>1.8</target> |
| 93 | </configuration> |
| 94 | </plugin> |
| 95 | </plugins> |
| 96 | </build> |
| 97 | |
| 98 | <profiles> |
| 99 | <profile> |
| 100 | <id>benchmark</id> |
| 101 | <build> |
| 102 | <plugins> |
| 103 | <plugin> |
| 104 | <groupId>org.apache.maven.plugins</groupId> |
| 105 | <artifactId>maven-surefire-plugin</artifactId> |
| 106 | <version>2.18.1</version> |
| 107 | <configuration> |
| 108 | <includes> |
| 109 | <include>**/*Benchmark.java</include> |
| 110 | </includes> |
| 111 | </configuration> |
| 112 | </plugin> |
| 113 | </plugins> |
| 114 | </build> |
| 115 | </profile> |
| 116 | </profiles> |
| 117 | |
| 118 | </project> |