| <?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"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <artifactId>odftoolkit</artifactId> |
| <groupId>org.apache.odftoolkit</groupId> |
| <version>0.7.0-incubating-SNAPSHOT</version> |
| </parent> |
| |
| <groupId>org.apache.odftoolkit</groupId> |
| <artifactId>benchmark</artifactId> |
| <version>1.0</version> |
| <packaging>jar</packaging> |
| |
| <name>JMH benchmark sample: Java</name> |
| |
| <!-- |
| This is the demo/sample template build script for building Java benchmarks with JMH. |
| Edit as needed. |
| --> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.openjdk.jmh</groupId> |
| <artifactId>jmh-core</artifactId> |
| <version>${jmh.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.openjdk.jmh</groupId> |
| <artifactId>jmh-generator-annprocess</artifactId> |
| <version>${jmh.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>odfdom-java</artifactId> |
| <version>0.9.0-incubating-SNAPSHOT</version> |
| </dependency> |
| </dependencies> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| |
| <!-- |
| JMH version to use with this project. |
| --> |
| <jmh.version>1.19</jmh.version> |
| |
| <!-- |
| Java source/target to use for compilation. |
| --> |
| <javac.target>1.8</javac.target> |
| |
| <!-- |
| Name of the benchmark Uber-JAR to generate. |
| --> |
| <uberjar.name>benchmarks</uberjar.name> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.1</version> |
| <configuration> |
| <compilerVersion>${javac.target}</compilerVersion> |
| <source>${javac.target}</source> |
| <target>${javac.target}</target> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>2.2</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <finalName>${uberjar.name}</finalName> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <mainClass>org.openjdk.jmh.Main</mainClass> |
| </transformer> |
| </transformers> |
| <filters> |
| <filter> |
| <!-- |
| Shading signed JARs will fail without this. |
| http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar |
| --> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <artifactId>maven-clean-plugin</artifactId> |
| <version>2.5</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <version>2.8.1</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-install-plugin</artifactId> |
| <version>2.5.1</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>2.4</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>2.9.1</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.6</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-site-plugin</artifactId> |
| <version>3.3</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>2.2.1</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.17</version> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| |
| </project> |