pom.xml 2.2 KB

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