pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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.0.1-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. </plugins>
  80. <pluginManagement>
  81. <plugins>
  82. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  83. <plugin>
  84. <groupId>org.eclipse.m2e</groupId>
  85. <artifactId>lifecycle-mapping</artifactId>
  86. <version>1.0.0</version>
  87. <configuration>
  88. <lifecycleMappingMetadata>
  89. <pluginExecutions>
  90. <pluginExecution>
  91. <pluginExecutionFilter>
  92. <groupId>
  93. org.apache.maven.plugins
  94. </groupId>
  95. <artifactId>
  96. maven-dependency-plugin
  97. </artifactId>
  98. <versionRange>
  99. [2.8,)
  100. </versionRange>
  101. <goals>
  102. <goal>
  103. copy-dependencies
  104. </goal>
  105. </goals>
  106. </pluginExecutionFilter>
  107. <action>
  108. <ignore></ignore>
  109. </action>
  110. </pluginExecution>
  111. </pluginExecutions>
  112. </lifecycleMappingMetadata>
  113. </configuration>
  114. </plugin>
  115. </plugins>
  116. </pluginManagement>
  117. </build>
  118. <dependencies>
  119. <dependency>
  120. <groupId>commons-io</groupId>
  121. <artifactId>commons-io</artifactId>
  122. <version>2.2</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.fasterxml.jackson.core</groupId>
  126. <artifactId>jackson-databind</artifactId>
  127. <version>2.3.0</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>junit</groupId>
  131. <artifactId>junit</artifactId>
  132. <version>4.11</version>
  133. <scope>test</scope>
  134. </dependency>
  135. <dependency>
  136. <groupId>log4j</groupId>
  137. <artifactId>log4j</artifactId>
  138. <version>1.2.17</version>
  139. <scope>compile</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>commons-lang</groupId>
  143. <artifactId>commons-lang</artifactId>
  144. <version>2.6</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>commons-cli</groupId>
  148. <artifactId>commons-cli</artifactId>
  149. <version>1.2</version>
  150. </dependency>
  151. </dependencies>
  152. </project>