pom.xml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <artifactId>netpump</artifactId>
  7. <groupId>com.tuoren</groupId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. </parent>
  10. <name>pump-admin</name>
  11. <description>Demo project for Spring Boot</description>
  12. <artifactId>pump-admin</artifactId>
  13. <!--<packaging>war</packaging>-->
  14. <packaging>jar</packaging>
  15. <dependencies>
  16. <!-- 测试时把以下两个依赖注释-->
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-web</artifactId>
  20. <!-- Maven整个生命周期内排除内置容器,排除内置容器导出成war包可以让外部容器运行spring-boot项目-->
  21. <!--<exclusions>-->
  22. <!--<exclusion>-->
  23. <!--<groupId>org.springframework.boot</groupId>-->
  24. <!--<artifactId>spring-boot-starter-tomcat</artifactId>-->
  25. <!--</exclusion>-->
  26. <!--</exclusions>-->
  27. </dependency>
  28. <!--<dependency>-->
  29. <!--<groupId>javax.servlet</groupId>-->
  30. <!--<artifactId>javax.servlet-api</artifactId>-->
  31. <!--<version>3.1.0</version>-->
  32. <!--<scope>provided</scope>-->
  33. <!--</dependency>-->
  34. <!-- 测试时把以下两个依赖注释-->
  35. <dependency>
  36. <groupId>com.tuoren</groupId>
  37. <artifactId>pump-common</artifactId>
  38. <version>0.0.1-SNAPSHOT</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.tuoren</groupId>
  42. <artifactId>pump-web</artifactId>
  43. <version>0.0.1-SNAPSHOT</version>
  44. </dependency>
  45. </dependencies>
  46. <build>
  47. <plugins>
  48. <plugin>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-maven-plugin</artifactId>
  51. <configuration><!-- 指定该Main Class为全局的唯一入口 -->
  52. <mainClass>com.tuoren.TuorenApplication</mainClass>
  53. </configuration>
  54. <!--<executions>-->
  55. <!--<execution>-->
  56. <!--<goals>-->
  57. <!--<goal>repackage</goal>&lt;!&ndash;可以把依赖的包都打包到生成的Jar包中&ndash;&gt;-->
  58. <!--</goals>-->
  59. <!--&lt;!&ndash;可以生成不含依赖包的不可执行Jar包&ndash;&gt;-->
  60. <!--&lt;!&ndash; configuration>-->
  61. <!--<classifier>exec</classifier>-->
  62. <!--</configuration> &ndash;&gt;-->
  63. <!--</execution>-->
  64. <!--</executions>-->
  65. </plugin>
  66. </plugins>
  67. </build>
  68. </project>