pom.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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>xy-device</artifactId>
  7. <groupId>com.xy</groupId>
  8. <version>1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>device-start</artifactId>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <maven.compiler.source>1.8</maven.compiler.source>
  15. <maven.compiler.target>1.8</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>com.xy</groupId>
  20. <artifactId>device-api-service</artifactId>
  21. <version>1.0</version>
  22. <exclusions>
  23. <exclusion>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-logging</artifactId>
  26. </exclusion>
  27. </exclusions>
  28. </dependency>
  29. <!-- torna swagger 插件 -->
  30. <dependency>
  31. <groupId>cn.torna</groupId>
  32. <artifactId>swagger-plugin</artifactId>
  33. <version>1.2.14</version>
  34. <scope>test</scope>
  35. </dependency>
  36. </dependencies>
  37. <build>
  38. <plugins>
  39. <!-- 打包 -->
  40. <plugin>
  41. <groupId>org.apache.maven.plugins</groupId>
  42. <artifactId>maven-assembly-plugin</artifactId>
  43. </plugin>
  44. <plugin>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-maven-plugin</artifactId>
  47. <version>2.3.12.RELEASE</version>
  48. <configuration>
  49. <mainClass>com.xy.StartCloud</mainClass>
  50. </configuration>
  51. <executions>
  52. <execution>
  53. <goals>
  54. <goal>repackage</goal>
  55. </goals>
  56. </execution>
  57. </executions>
  58. </plugin>
  59. <!-- 上传源码 -->
  60. <plugin>
  61. <artifactId>maven-source-plugin</artifactId>
  62. <version>2.4</version>
  63. <configuration>
  64. <attach>true</attach>
  65. </configuration>
  66. <executions>
  67. <execution>
  68. <phase>compile</phase>
  69. <goals>
  70. <goal>jar</goal>
  71. </goals>
  72. </execution>
  73. </executions>
  74. </plugin>
  75. </plugins>
  76. </build>
  77. </project>