pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>logstash-forwarder-java</groupId>
  5. <artifactId>logstash-forwarder-java</artifactId>
  6. <version>0.1.4-SNAPSHOT</version>
  7. <name>logstash-forwarder-java</name>
  8. <description>Java version of logstash forwarder</description>
  9. <url>https://github.com/didfet/logstash-forwarder-java</url>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. </properties>
  13. <licenses>
  14. <license>
  15. <name>The Apache Software License, Version 2.0</name>
  16. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  17. <distribution>manual</distribution>
  18. <comments>A business-friendly OSS license</comments>
  19. </license>
  20. </licenses>
  21. <scm>
  22. <!-- See http://maven.apache.org/plugins/maven-release-plugin/examples/perform-release.html -->
  23. <!-- for how to perform a release from the connection below. -->
  24. <connection>scm:git:https://github.com/didfet/logstash-forwarder-java</connection>
  25. <developerConnection>scm:git:https://github.com/didfet/logstash-forwarder-java</developerConnection>
  26. <url>https://github.com/didfet/logstash-forwarder-java</url>
  27. </scm>
  28. <build>
  29. <finalName>${project.artifactId}-${project.version}</finalName>
  30. <plugins>
  31. <plugin>
  32. <groupId>org.apache.maven.plugins</groupId>
  33. <artifactId>maven-surefire-plugin</artifactId>
  34. <version>2.18.1</version>
  35. <configuration>
  36. <forkCount>0</forkCount>
  37. </configuration>
  38. </plugin>
  39. <plugin>
  40. <groupId>org.apache.maven.plugins</groupId>
  41. <artifactId>maven-jar-plugin</artifactId>
  42. <version>2.4</version>
  43. <configuration>
  44. <archive>
  45. <manifest>
  46. <addClasspath>true</addClasspath>
  47. <classpathPrefix>lib/</classpathPrefix>
  48. <mainClass>info.fetter.logstashforwarder.Forwarder</mainClass>
  49. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  50. </manifest>
  51. <manifestEntries>
  52. <Implementation-Build>${prefix.revision}</Implementation-Build>
  53. <buildtime>${timestamp}</buildtime>
  54. </manifestEntries>
  55. </archive>
  56. </configuration>
  57. </plugin>
  58. <plugin>
  59. <groupId>org.apache.maven.plugins</groupId>
  60. <artifactId>maven-dependency-plugin</artifactId>
  61. <version>2.8</version>
  62. <executions>
  63. <execution>
  64. <id>copy-dependencies</id>
  65. <phase>package</phase>
  66. <goals>
  67. <goal>copy-dependencies</goal>
  68. </goals>
  69. <configuration>
  70. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  71. <overWriteReleases>false</overWriteReleases>
  72. <overWriteSnapshots>false</overWriteSnapshots>
  73. <overWriteIfNewer>true</overWriteIfNewer>
  74. <excludeScope>provided</excludeScope>
  75. </configuration>
  76. </execution>
  77. </executions>
  78. </plugin>
  79. <plugin>
  80. <artifactId>maven-assembly-plugin</artifactId>
  81. <version>2.5.3</version>
  82. <configuration>
  83. <descriptor>src/assembly/tarball.xml</descriptor>
  84. </configuration>
  85. <executions>
  86. <execution>
  87. <id>create-archive</id>
  88. <phase>package</phase>
  89. <goals>
  90. <goal>single</goal>
  91. </goals>
  92. </execution>
  93. </executions>
  94. </plugin>
  95. </plugins>
  96. <pluginManagement>
  97. <plugins>
  98. <!--This plugin's configuration is used to store Eclipse m2e settings
  99. only. It has no influence on the Maven build itself. -->
  100. <plugin>
  101. <groupId>org.eclipse.m2e</groupId>
  102. <artifactId>lifecycle-mapping</artifactId>
  103. <version>1.0.0</version>
  104. <configuration>
  105. <lifecycleMappingMetadata>
  106. <pluginExecutions>
  107. <pluginExecution>
  108. <pluginExecutionFilter>
  109. <groupId>
  110. org.apache.maven.plugins
  111. </groupId>
  112. <artifactId>
  113. maven-dependency-plugin
  114. </artifactId>
  115. <versionRange>
  116. [2.8,)
  117. </versionRange>
  118. <goals>
  119. <goal>
  120. copy-dependencies
  121. </goal>
  122. </goals>
  123. </pluginExecutionFilter>
  124. <action>
  125. <ignore></ignore>
  126. </action>
  127. </pluginExecution>
  128. </pluginExecutions>
  129. </lifecycleMappingMetadata>
  130. </configuration>
  131. </plugin>
  132. </plugins>
  133. </pluginManagement>
  134. </build>
  135. <dependencies>
  136. <dependency>
  137. <groupId>commons-io</groupId>
  138. <artifactId>commons-io</artifactId>
  139. <version>2.2</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.fasterxml.jackson.core</groupId>
  143. <artifactId>jackson-databind</artifactId>
  144. <version>2.1.5</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>junit</groupId>
  148. <artifactId>junit</artifactId>
  149. <version>4.11</version>
  150. <scope>test</scope>
  151. </dependency>
  152. <dependency>
  153. <groupId>log4j</groupId>
  154. <artifactId>log4j</artifactId>
  155. <version>1.2.17</version>
  156. <scope>compile</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>commons-lang</groupId>
  160. <artifactId>commons-lang</artifactId>
  161. <version>2.6</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>commons-cli</groupId>
  165. <artifactId>commons-cli</artifactId>
  166. <version>1.2</version>
  167. </dependency>
  168. </dependencies>
  169. </project>