pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.alibaba.smartfox.eclipse</groupId>
  7. <artifactId>smartfox-eclipse</artifactId>
  8. <version>2.0.1-SNAPSHOT</version>
  9. </parent>
  10. <artifactId>com.alibaba.smartfox.eclipse.plugin</artifactId>
  11. <packaging>eclipse-plugin</packaging>
  12. <inceptionYear>2017</inceptionYear>
  13. <properties>
  14. <kotlin.compiler.incremental>false</kotlin.compiler.incremental>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>log4j</groupId>
  19. <artifactId>log4j</artifactId>
  20. <version>1.2.17</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.alibaba.p3c</groupId>
  24. <artifactId>p3c-pmd</artifactId>
  25. <version>2.0.1</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.jetbrains.kotlin</groupId>
  29. <artifactId>kotlin-stdlib-jdk8</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.google.guava</groupId>
  33. <artifactId>guava</artifactId>
  34. <version>20.0</version>
  35. </dependency>
  36. </dependencies>
  37. <build>
  38. <sourceDirectory>src/main/kotlin</sourceDirectory>
  39. <plugins>
  40. <plugin>
  41. <groupId>org.jetbrains.kotlin</groupId>
  42. <artifactId>kotlin-maven-plugin</artifactId>
  43. <version>${kotlin.version}</version>
  44. <executions>
  45. <execution>
  46. <id>compile</id>
  47. <phase>compile</phase>
  48. <goals>
  49. <goal>compile</goal>
  50. </goals>
  51. </execution>
  52. <execution>
  53. <id>test-compile</id>
  54. <phase>test-compile</phase>
  55. <goals>
  56. <goal>test-compile</goal>
  57. </goals>
  58. </execution>
  59. </executions>
  60. </plugin>
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-dependency-plugin</artifactId>
  64. <version>3.1.1</version>
  65. <configuration>
  66. <stripVersion>true</stripVersion>
  67. <prependGroupId>false</prependGroupId>
  68. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  69. <!-- exclude the apex (transitive) dependencies - we use the shaded
  70. version instead -->
  71. <excludeGroupIds>p2.eclipse-plugin,apex</excludeGroupIds>
  72. <excludeArtifactIds>com.alibaba.smartfox.eclipse.plugin
  73. </excludeArtifactIds>
  74. <useRepositoryLayout>false</useRepositoryLayout>
  75. </configuration>
  76. <executions>
  77. <execution>
  78. <id>get-dependencies</id>
  79. <phase>process-sources</phase>
  80. <goals>
  81. <goal>copy-dependencies</goal>
  82. </goals>
  83. </execution>
  84. </executions>
  85. </plugin>
  86. </plugins>
  87. <pluginManagement>
  88. <plugins>
  89. <!--This plugin's configuration is used to store Eclipse m2e settings
  90. only. It has no influence on the Maven build itself. -->
  91. <plugin>
  92. <groupId>org.eclipse.m2e</groupId>
  93. <artifactId>lifecycle-mapping</artifactId>
  94. <version>1.0.0</version>
  95. <configuration>
  96. <lifecycleMappingMetadata>
  97. <pluginExecutions>
  98. <pluginExecution>
  99. <pluginExecutionFilter>
  100. <groupId>
  101. org.apache.maven.plugins
  102. </groupId>
  103. <artifactId>
  104. maven-dependency-plugin
  105. </artifactId>
  106. <versionRange>[0,)</versionRange>
  107. <goals>
  108. <goal>copy-dependencies</goal>
  109. </goals>
  110. </pluginExecutionFilter>
  111. <action>
  112. <ignore></ignore>
  113. </action>
  114. </pluginExecution>
  115. </pluginExecutions>
  116. </lifecycleMappingMetadata>
  117. </configuration>
  118. </plugin>
  119. </plugins>
  120. </pluginManagement>
  121. </build>
  122. </project>