pom.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. <dependencies>
  15. <!--&lt;!&ndash; 测试时把以下两个依赖注释&ndash;&gt;-->
  16. <!-- <dependency>-->
  17. <!-- <groupId>org.springframework.boot</groupId>-->
  18. <!-- <artifactId>spring-boot-starter-web</artifactId>-->
  19. <!-- &lt;!&ndash; Maven整个生命周期内排除内置容器,排除内置容器导出成war包可以让外部容器运行spring-boot项目&ndash;&gt;-->
  20. <!-- <exclusions>-->
  21. <!-- <exclusion>-->
  22. <!-- <groupId>org.springframework.boot</groupId>-->
  23. <!-- <artifactId>spring-boot-starter-tomcat</artifactId>-->
  24. <!-- </exclusion>-->
  25. <!-- </exclusions>-->
  26. <!-- </dependency>-->
  27. <!-- <dependency>-->
  28. <!-- <groupId>javax.servlet</groupId>-->
  29. <!-- <artifactId>javax.servlet-api</artifactId>-->
  30. <!-- <version>3.1.0</version>-->
  31. <!-- <scope>provided</scope>-->
  32. <!-- </dependency>-->
  33. <!-- 测试时把以下两个依赖注释-->
  34. <dependency>
  35. <groupId>com.tuoren</groupId>
  36. <artifactId>pump-common</artifactId>
  37. <version>0.0.1-SNAPSHOT</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.tuoren</groupId>
  41. <artifactId>pump-web</artifactId>
  42. <version>0.0.1-SNAPSHOT</version>
  43. </dependency>
  44. </dependencies>
  45. <build>
  46. <plugins>
  47. <plugin>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-maven-plugin</artifactId>
  50. <configuration><!-- 指定该Main Class为全局的唯一入口 -->
  51. <mainClass>com.tuoren.TuorenApplication</mainClass>
  52. <layout>WAR</layout>
  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>