pom.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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>uas-eis</artifactId>
  7. <groupId>com.uas</groupId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>eis-api</artifactId>
  12. <name>eis-api</name>
  13. <url>http://maven.apache.org</url>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>com.uas</groupId>
  20. <artifactId>eis-common</artifactId>
  21. <version>0.0.1-SNAPSHOT</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework</groupId>
  25. <artifactId>spring-test</artifactId>
  26. <version>4.0.2.RELEASE</version>
  27. <scope>test</scope>
  28. </dependency>
  29. </dependencies>
  30. <build>
  31. <plugins>
  32. <plugin>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-maven-plugin</artifactId>
  35. <configuration>
  36. <!-- 指定SpringBoot程序的main函数入口类 -->
  37. <mainClass>com.uas.eis.UasApiApplication</mainClass>
  38. <includeSystemScope>true</includeSystemScope>
  39. </configuration>
  40. <executions>
  41. <execution>
  42. <goals>
  43. <goal>repackage</goal>
  44. </goals>
  45. </execution>
  46. </executions>
  47. </plugin>
  48. <plugin>
  49. <groupId>org.apache.maven.plugins</groupId>
  50. <artifactId>maven-compiler-plugin</artifactId>
  51. <configuration>
  52. <source>1.7</source>
  53. <target>1.7</target>
  54. <compilerArguments>
  55. <!-- 打包本地jar包 -->
  56. <extdirs>${project.basedir}/lib</extdirs>
  57. </compilerArguments>
  58. </configuration>
  59. </plugin>
  60. </plugins>
  61. <!-- 打包所有jar包 -->
  62. <resources>
  63. <resource>
  64. <directory>lib</directory>
  65. <targetPath>BOOT-INF/lib/</targetPath>
  66. <includes>
  67. <include>**/*.jar</include>
  68. </includes>
  69. </resource>
  70. <!-- 某些情况下,打包后运行不起来需要打开注释 -->
  71. <!-- <resource>
  72. <directory>src/main/resources</directory>
  73. <targetPath>BOOT-INF/classes/</targetPath>
  74. </resource> -->
  75. </resources>
  76. </build>
  77. </project>