pom.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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. <parent>
  5. <groupId>org.springframework.boot</groupId>
  6. <artifactId>spring-boot-starter-parent</artifactId>
  7. <version>2.1.0.RELEASE</version>
  8. <relativePath/>
  9. </parent>
  10. <groupId>xiugou</groupId>
  11. <artifactId>x1-project</artifactId>
  12. <packaging>pom</packaging>
  13. <version>0.0.1</version>
  14. <modules>
  15. <module>x1-protobuf</module>
  16. <module>x1-battle</module>
  17. <module>x1-design</module>
  18. <module>x1-pojo</module>
  19. <module>x1-game-server</module>
  20. <module>x1-backstage</module>
  21. <module>x1-cross-server</module>
  22. </modules>
  23. <properties>
  24. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  25. <project.build.jdk>1.8</project.build.jdk>
  26. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  27. <maven.compiler.source>1.8</maven.compiler.source>
  28. <maven.compiler.target>1.8</maven.compiler.target>
  29. <gaming.version>0.0.1</gaming.version>
  30. <xiugou.x1.version>0.0.1</xiugou.x1.version>
  31. </properties>
  32. <dependencyManagement>
  33. <dependencies>
  34. <dependency>
  35. <groupId>game</groupId>
  36. <artifactId>gaming-agent</artifactId>
  37. <version>${gaming.version}</version>
  38. </dependency>
  39. </dependencies>
  40. </dependencyManagement>
  41. <build>
  42. <plugins>
  43. <plugin>
  44. <groupId>org.apache.maven.plugins</groupId>
  45. <artifactId>maven-compiler-plugin</artifactId>
  46. <configuration>
  47. <source>1.8</source>
  48. <target>1.8</target>
  49. </configuration>
  50. </plugin>
  51. <plugin>
  52. <groupId>org.apache.maven.plugins</groupId>
  53. <artifactId>maven-dependency-plugin</artifactId>
  54. <executions>
  55. <execution>
  56. <id>copy-thirds</id>
  57. <phase>package</phase>
  58. <goals>
  59. <goal>copy-dependencies</goal>
  60. </goals>
  61. <!-- 把第三方的jar拷贝在common-libs目录下 -->
  62. <configuration>
  63. <echo message="${project.build.directory}"/>
  64. <outputDirectory>${project.build.directory}/common-libs</outputDirectory>
  65. <outputDirectory>../common-libs</outputDirectory>
  66. <excludeGroupIds>game,xiugou,gaming-project</excludeGroupIds>
  67. </configuration>
  68. </execution>
  69. </executions>
  70. </plugin>
  71. </plugins>
  72. </build>
  73. </project>