pom.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. <dependencies>
  13. <dependency>
  14. <groupId>com.xy</groupId>
  15. <artifactId>device-api-service</artifactId>
  16. <version>1.0</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>com.xy</groupId>
  20. <artifactId>authorize-api-cloud</artifactId>
  21. <version>1.0</version>
  22. </dependency>
  23. </dependencies>
  24. <build>
  25. <plugins>
  26. <!-- 打包 -->
  27. <plugin>
  28. <groupId>org.apache.maven.plugins</groupId>
  29. <artifactId>maven-assembly-plugin</artifactId>
  30. </plugin>
  31. <plugin>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-maven-plugin</artifactId>
  34. <configuration>
  35. <mainClass>com.xy.StartCloud</mainClass>
  36. </configuration>
  37. <executions>
  38. <execution>
  39. <goals>
  40. <goal>repackage</goal>
  41. </goals>
  42. </execution>
  43. </executions>
  44. </plugin>
  45. <!-- 上传源码 -->
  46. <plugin>
  47. <artifactId>maven-source-plugin</artifactId>
  48. <version>2.4</version>
  49. <configuration>
  50. <attach>true</attach>
  51. </configuration>
  52. <executions>
  53. <execution>
  54. <phase>compile</phase>
  55. <goals>
  56. <goal>jar</goal>
  57. </goals>
  58. </execution>
  59. </executions>
  60. </plugin>
  61. </plugins>
  62. </build>
  63. </project>