pom.xml 3.1 KB

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