1<?xml version="1.0" encoding="UTF-8"?> 2<project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 5 6 <modelVersion>4.0.0</modelVersion> 7 <artifactId>protobuf-java-benchmark</artifactId> 8 <groupId>com.google.protobuf</groupId> 9 <version>1.0.0</version> 10 <name>Protocol Buffers [Benchmark]</name> 11 <description>The benchmark tools for Protobuf Java.</description> 12 13 <dependencies> 14 <dependency> 15 <groupId>com.google.protobuf</groupId> 16 <artifactId>protobuf-java</artifactId> 17 <version>${protobuf.version}</version> 18 <type>jar</type> 19 <scope>system</scope> 20 <systemPath>${project.basedir}/lib/protobuf-java.jar</systemPath> 21 </dependency> 22 <dependency> 23 <groupId>com.google.caliper</groupId> 24 <artifactId>caliper</artifactId> 25 <version>1.0-beta-2</version> 26 </dependency> 27 </dependencies> 28 29 <build> 30 <pluginManagement> 31 <plugins> 32 <plugin> 33 <groupId>org.apache.maven.plugins</groupId> 34 <artifactId>maven-assembly-plugin</artifactId> 35 <version>2.4.1</version> 36 <configuration> 37 <!-- get all project dependencies --> 38 <descriptorRefs> 39 <descriptorRef>jar-with-dependencies</descriptorRef> 40 </descriptorRefs> 41 <!-- MainClass in mainfest make a executable jar --> 42 <archive> 43 <manifest> 44 <mainClass>com.mkyong.core.utils.App</mainClass> 45 </manifest> 46 </archive> 47 </configuration> 48 <executions> 49 <execution> 50 <id>make-assembly</id> 51 <!-- bind to the packaging phase --> 52 <phase>package</phase> 53 <goals> 54 <goal>single</goal> 55 </goals> 56 </execution> 57 </executions> 58 </plugin> 59 <plugin> 60 <groupId>org.apache.maven.plugins</groupId> 61 <artifactId>maven-compiler-plugin</artifactId> 62 <version>3.5.1</version> 63 <configuration> 64 <source>1.8</source> 65 <target>1.8</target> 66 </configuration> 67 </plugin> 68 <plugin> 69 <groupId>org.apache.maven.plugins</groupId> 70 <artifactId>maven-jar-plugin</artifactId> 71 <version>2.5</version> 72 <configuration> 73 <archive> 74 <manifest> 75 <addClasspath>true</addClasspath> 76 <mainClass>com.google.protocolbuffers.ProtoBench</mainClass> 77 </manifest> 78 </archive> 79 </configuration> 80 </plugin> 81 <plugin> 82 <groupId>org.apache.maven.plugins</groupId> 83 <artifactId>maven-source-plugin</artifactId> 84 <version>2.4</version> 85 <executions> 86 <execution> 87 <id>attach-sources</id> 88 <goals> 89 <goal>jar-no-fork</goal> 90 </goals> 91 </execution> 92 </executions> 93 </plugin> 94 </plugins> 95 </pluginManagement> 96 </build> 97</project> 98 99