pom.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.kyl</groupId>
  8. <artifactId>kyl</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>kyl-web</artifactId>
  12. <properties>
  13. <maven.compiler.source>11</maven.compiler.source>
  14. <maven.compiler.target>11</maven.compiler.target>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. </properties>
  17. <!-- 定义项目依赖,此处仅包含一个内部模块依赖 -->
  18. <dependencies>
  19. <dependency>
  20. <groupId>com.kyl</groupId>
  21. <artifactId>kyl-service</artifactId>
  22. </dependency>
  23. </dependencies>
  24. <!-- 配置项目构建过程 -->
  25. <build>
  26. <plugins>
  27. <plugin>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-maven-plugin</artifactId>
  30. <!--kyl-web模块作为整个项目的入口需要进行两个配置:-->
  31. <!--1、要指定运行的主类文件-->
  32. <configuration>
  33. <mainClass>com.kyl.KylApplication</mainClass>
  34. </configuration>
  35. <!--2、要单独重新打包-->
  36. <executions>
  37. <execution>
  38. <goals>
  39. <goal>repackage</goal>
  40. </goals>
  41. </execution>
  42. </executions>
  43. </plugin>
  44. </plugins>
  45. </build>
  46. </project>