pom.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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>ZZBusiness</artifactId>
  7. <groupId>org.zhongzheng</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>zzbusiness-gateway</artifactId>
  12. <dependencies>
  13. <dependency>
  14. <groupId>com.alibaba.cloud</groupId>
  15. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  16. </dependency>
  17. <!--网关-->
  18. <dependency>
  19. <groupId>org.springframework.cloud</groupId>
  20. <artifactId>spring-cloud-starter-gateway</artifactId>
  21. <version>${springcloud.alibaba.version}</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.projectlombok</groupId>
  25. <artifactId>lombok</artifactId>
  26. <scope>provided</scope>
  27. </dependency>
  28. <!-- JWT -->
  29. <dependency>
  30. <groupId>io.jsonwebtoken</groupId>
  31. <artifactId>jjwt-impl</artifactId>
  32. <version>0.11.2</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>io.jsonwebtoken</groupId>
  36. <artifactId>jjwt-jackson</artifactId>
  37. <version>0.11.2</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.zhongzheng</groupId>
  41. <artifactId>zzbusiness-common</artifactId>
  42. <version>1.0-SNAPSHOT</version>
  43. </dependency>
  44. </dependencies>
  45. <packaging>jar</packaging>
  46. <build>
  47. <plugins>
  48. <plugin>
  49. <groupId>org.apache.maven.plugins</groupId>
  50. <artifactId>maven-jar-plugin</artifactId>
  51. <configuration>
  52. <archive>
  53. <!--生成的jar中,不要包含pom.xml和pom.properties这两个文件-->
  54. <addMavenDescriptor>true</addMavenDescriptor>
  55. <manifest>
  56. <mainClass>org.zhongzheng.gateway.GatewayServerApplication</mainClass>
  57. </manifest>
  58. </archive>
  59. </configuration>
  60. </plugin>
  61. <plugin>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-maven-plugin</artifactId>
  64. <version>${springboot.version}</version>
  65. <executions>
  66. <execution>
  67. <goals>
  68. <goal>repackage</goal>
  69. </goals>
  70. </execution>
  71. </executions>
  72. </plugin>
  73. </plugins>
  74. </build>
  75. </project>