pom.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>shop.alien</groupId>
  7. <artifactId>alien-cloud</artifactId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <artifactId>alien-merchant</artifactId>
  11. <version>1.0.0</version>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  15. </properties>
  16. <build>
  17. <plugins>
  18. <plugin>
  19. <groupId>org.apache.maven.plugins</groupId>
  20. <artifactId>maven-dependency-plugin</artifactId>
  21. <version>3.1.2</version> <!-- 使用最新版本 -->
  22. <executions>
  23. <execution>
  24. <id>copy-dependencies</id>
  25. <phase>prepare-package</phase> <!-- 在package之前执行 -->
  26. <goals>
  27. <goal>copy-dependencies</goal>
  28. </goals>
  29. <configuration>
  30. <outputDirectory>${project.build.directory}/lib</outputDirectory> <!-- 指定输出目录 -->
  31. <includeScope>runtime</includeScope> <!-- 仅包含运行时依赖 -->
  32. </configuration>
  33. </execution>
  34. </executions>
  35. </plugin>
  36. <plugin>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-maven-plugin</artifactId>
  39. <configuration>
  40. <mainClass>shop.alien.store.AlienStoreApplication</mainClass>
  41. <layout>ZIP</layout>
  42. <includes>
  43. <include>
  44. <groupId>nothing</groupId>
  45. <artifactId>nothing</artifactId>
  46. </include>
  47. </includes>
  48. </configuration>
  49. <executions>
  50. <execution>
  51. <goals>
  52. <goal>repackage</goal>
  53. </goals>
  54. </execution>
  55. </executions>
  56. </plugin>
  57. <plugin>
  58. <groupId>org.apache.maven.plugins</groupId>
  59. <artifactId>maven-compiler-plugin</artifactId>
  60. <configuration>
  61. <source>8</source>
  62. <target>8</target>
  63. </configuration>
  64. </plugin>
  65. </plugins>
  66. </build>
  67. </project>