pom.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.jzg</groupId>
  6. <artifactId>tenant</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>openfeign</artifactId>
  10. <packaging>jar</packaging>
  11. <name>openfeign Maven Webapp</name>
  12. <url>http://maven.apache.org</url>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-starter-web</artifactId>
  17. <version>3.0.0</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.springframework.cloud</groupId>
  21. <artifactId>spring-cloud-starter-openfeign</artifactId>
  22. </dependency>
  23. </dependencies>
  24. <build>
  25. <plugins>
  26. <plugin>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-maven-plugin</artifactId>
  29. <executions>
  30. <execution>
  31. <id>repackage</id>
  32. <phase>none</phase>
  33. </execution>
  34. </executions>
  35. </plugin>
  36. <plugin>
  37. <groupId>org.apache.maven.plugins</groupId>
  38. <artifactId>maven-dependency-plugin</artifactId>
  39. <executions>
  40. <execution>
  41. <id>copy-dependencies</id>
  42. <phase>package</phase>
  43. <goals>
  44. <goal>copy-dependencies</goal>
  45. </goals>
  46. <configuration>
  47. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  48. <overWriteReleases>false</overWriteReleases>
  49. <overWriteSnapshots>false</overWriteSnapshots>
  50. <overWriteIfNewer>true</overWriteIfNewer>
  51. </configuration>
  52. </execution>
  53. </executions>
  54. </plugin>
  55. <plugin>
  56. <groupId>org.apache.maven.plugins</groupId>
  57. <artifactId>maven-jar-plugin</artifactId>
  58. <configuration>
  59. <archive>
  60. <manifest>
  61. <addClasspath>true</addClasspath>
  62. <classpathPrefix>lib/</classpathPrefix>
  63. <mainClass>com.jzg.organization.OrganizationApplication</mainClass> <!-- 替换为你的主类 -->
  64. <useUniqueVersions>false</useUniqueVersions>
  65. </manifest>
  66. <manifestEntries>
  67. <Class-Path>config/</Class-Path>
  68. </manifestEntries>
  69. </archive>
  70. </configuration>
  71. </plugin>
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-resources-plugin</artifactId>
  75. <version>3.1.0</version>
  76. </plugin>
  77. </plugins>
  78. </build>
  79. </project>