pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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>face-admin</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-start</artifactId>
  13. <packaging>jar</packaging>
  14. <!-- 指定一些属性 -->
  15. <properties>
  16. <!-- 主类地址,一定要配置,否则打包时运行会出错 -->
  17. <java.run.main.class>com.pj.SpStartApplication</java.run.main.class>
  18. </properties>
  19. <dependencies>
  20. <!-- ============== 项目依赖 start =============== -->
  21. <dependency>
  22. <groupId>com.pj</groupId>
  23. <artifactId>sp-admin</artifactId>
  24. <version>${project.parent.version}</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.pj</groupId>
  28. <artifactId>alarm-system</artifactId>
  29. <version>${project.parent.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.pj</groupId>
  33. <artifactId>venues-system</artifactId>
  34. <version>${project.parent.version}</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.pj</groupId>
  38. <artifactId>alarm-system</artifactId>
  39. <version>${project.parent.version}</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.pj</groupId>
  43. <artifactId>filing-system</artifactId>
  44. <version>${project.parent.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.pj</groupId>
  48. <artifactId>face-identify</artifactId>
  49. <version>${project.parent.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.pj</groupId>
  53. <artifactId>car-identify</artifactId>
  54. <version>${project.parent.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.pj</groupId>
  58. <artifactId>epidemic-prevention</artifactId>
  59. <version>${project.parent.version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.pj</groupId>
  63. <artifactId>monitor-system</artifactId>
  64. <version>${project.parent.version}</version>
  65. </dependency>
  66. <!-- ============== 项目依赖 end =============== -->
  67. </dependencies>
  68. <!-- 构建配置 -->
  69. <build>
  70. <finalName>face-system</finalName>
  71. <plugins>
  72. <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-jar-plugin</artifactId>
  76. <configuration>
  77. <archive>
  78. <manifest>
  79. <addClasspath>true</addClasspath>
  80. <classpathPrefix>lib/</classpathPrefix>
  81. <mainClass>${java.run.main.class}</mainClass>
  82. </manifest>
  83. </archive>
  84. </configuration>
  85. </plugin>
  86. <!-- 拷贝依赖的jar包到lib目录 -->
  87. <plugin>
  88. <groupId>org.apache.maven.plugins</groupId>
  89. <artifactId>maven-dependency-plugin</artifactId>
  90. <executions>
  91. <execution>
  92. <id>copy</id>
  93. <phase>package</phase>
  94. <goals>
  95. <goal>copy-dependencies</goal>
  96. </goals>
  97. <configuration>
  98. <outputDirectory>
  99. ${project.build.directory}/lib
  100. </outputDirectory>
  101. </configuration>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. </plugins>
  106. </build>
  107. </project>