pom.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0"?>
  2. <project
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4. xmlns="http://maven.apache.org/POM/4.0.0"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  6. <modelVersion>4.0.0</modelVersion>
  7. <parent>
  8. <groupId>xiugou</groupId>
  9. <artifactId>x1-project</artifactId>
  10. <version>0.0.1</version>
  11. </parent>
  12. <artifactId>x1-cross-server</artifactId>
  13. <dependencies>
  14. <dependency>
  15. <groupId>xiugou</groupId>
  16. <artifactId>x1-design</artifactId>
  17. <version>${xiugou.x1.version}</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>xiugou</groupId>
  21. <artifactId>x1-pojo</artifactId>
  22. <version>${xiugou.x1.version}</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>game</groupId>
  26. <artifactId>gaming-agent</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>game</groupId>
  30. <artifactId>gaming-fakecmd</artifactId>
  31. <version>0.0.1</version>
  32. </dependency>
  33. </dependencies>
  34. <build>
  35. <plugins>
  36. <plugin>
  37. <groupId>org.apache.maven.plugins</groupId>
  38. <artifactId>maven-compiler-plugin</artifactId>
  39. <configuration>
  40. <source>1.8</source>
  41. <target>1.8</target>
  42. </configuration>
  43. </plugin>
  44. <plugin>
  45. <groupId>org.apache.maven.plugins</groupId>
  46. <artifactId>maven-dependency-plugin</artifactId>
  47. <executions>
  48. <execution>
  49. <id>copy-main</id>
  50. <phase>package</phase>
  51. <goals>
  52. <goal>copy-dependencies</goal>
  53. </goals>
  54. <!-- 把游戏与框架分组的jar拷贝到jar目录下 -->
  55. <configuration>
  56. <outputDirectory>${project.build.directory}/jar</outputDirectory>
  57. <includeGroupIds>game,xiugou,gaming-project</includeGroupIds>
  58. </configuration>
  59. </execution>
  60. </executions>
  61. </plugin>
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-resources-plugin</artifactId>
  65. <executions>
  66. <execution>
  67. <id>copy-config</id>
  68. <phase>prepare-package</phase>
  69. <goals>
  70. <goal>copy-resources</goal>
  71. </goals>
  72. <configuration>
  73. <outputDirectory>${project.build.directory}/config</outputDirectory>
  74. <resources>
  75. <resource>
  76. <directory>config</directory>
  77. <filtering>false</filtering>
  78. </resource>
  79. </resources>
  80. </configuration>
  81. </execution>
  82. </executions>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-jar-plugin</artifactId>
  87. <configuration>
  88. <outputDirectory>${project.build.directory}/jar</outputDirectory>
  89. <archive>
  90. <manifest>
  91. <addClasspath>false</addClasspath>
  92. <mainClass>com.xiugou.x1.cross.server.X1CrossServer</mainClass>
  93. </manifest>
  94. </archive>
  95. </configuration>
  96. </plugin>
  97. </plugins>
  98. </build>
  99. </project>