pom.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.github.jfcloud</groupId>
  8. <artifactId>jfcloud-gene</artifactId>
  9. <version>2.0</version>
  10. </parent>
  11. <artifactId>jfcloud-gene-api</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>org.springframework.cloud</groupId>
  20. <artifactId>spring-cloud-openfeign-core</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.github.jfcloud</groupId>
  24. <artifactId>jfcloud-common-core</artifactId>
  25. </dependency>
  26. </dependencies>
  27. <build>
  28. <plugins>
  29. <plugin>
  30. <groupId>org.apache.maven.plugins</groupId>
  31. <artifactId>maven-jar-plugin</artifactId>
  32. <version>3.2.0</version>
  33. <configuration>
  34. <!-- 不指定 mainClass 属性 -->
  35. </configuration>
  36. </plugin>
  37. <!-- 配置 maven-source-plugin 以生成 sources.jar -->
  38. <plugin>
  39. <groupId>org.apache.maven.plugins</groupId>
  40. <artifactId>maven-source-plugin</artifactId>
  41. <version>3.0.1</version>
  42. <executions>
  43. <execution>
  44. <id>attach-sources</id>
  45. <goals>
  46. <goal>jar</goal>
  47. </goals>
  48. </execution>
  49. </executions>
  50. </plugin>
  51. </plugins>
  52. </build>
  53. </project>