pom.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>market-server</artifactId>
  7. <groupId>com.pj</groupId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <relativePath>../pom.xml</relativePath>
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <artifactId>sp-service</artifactId>
  13. <packaging>pom</packaging>
  14. <modules>
  15. <module>sp-admin</module>
  16. <module>sp-home</module>
  17. <module>level-one-server</module>
  18. <module>level-two-server</module>
  19. <module>transport-server</module>
  20. <module>sp-task</module>
  21. <module>async-server</module>
  22. </modules>
  23. <!-- 构建配置 -->
  24. <build>
  25. <plugins>
  26. <!-- 打包jar文件时,可配置manifest文件,加入lib包的jar依赖 -->
  27. <plugin>
  28. <groupId>org.apache.maven.plugins</groupId>
  29. <artifactId>maven-jar-plugin</artifactId>
  30. <!-- <configuration>-->
  31. <!-- <source>${java.version}</source>-->
  32. <!-- <target>${java.version}</target>-->
  33. <!-- <encoding>${project.build.sourceEncoding}</encoding>-->
  34. <!-- <archive>-->
  35. <!-- <manifest>-->
  36. <!-- <addClasspath>true</addClasspath>-->
  37. <!-- <classpathPrefix>lib/</classpathPrefix>-->
  38. <!-- <mainClass>${java.run.main.class}</mainClass>-->
  39. <!-- </manifest>-->
  40. <!-- </archive>-->
  41. <!-- </configuration>-->
  42. </plugin>
  43. <!-- 拷贝依赖的jar包到lib目录 -->
  44. <plugin>
  45. <groupId>org.apache.maven.plugins</groupId>
  46. <artifactId>maven-dependency-plugin</artifactId>
  47. <executions>
  48. <execution>
  49. <id>copy</id>
  50. <phase>package</phase>
  51. <goals>
  52. <goal>copy-dependencies</goal>
  53. </goals>
  54. <configuration>
  55. <outputDirectory>
  56. ${project.build.directory}/lib
  57. </outputDirectory>
  58. </configuration>
  59. </execution>
  60. </executions>
  61. </plugin>
  62. </plugins>
  63. </build>
  64. </project>