pom.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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-comment</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.job.AlienJobApplication</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. <profiles>
  68. <profile>
  69. <id>test</id>
  70. <properties>
  71. <profiles.active>test</profiles.active>
  72. <nacos.server-addr>192.168.2.252:8848</nacos.server-addr>
  73. <nacos.namespace>0e1e2d77-56e8-422c-8317-6f71d7285e59</nacos.namespace>
  74. <nacos.username>nacos</nacos.username>
  75. <nacos.password>ngfriend198092</nacos.password>
  76. </properties>
  77. <activation>
  78. <activeByDefault>true</activeByDefault>
  79. </activation>
  80. </profile>
  81. </profiles>
  82. </project>