From 45a65826ae6052129730e3703d65c8cd156af689 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期六, 07 十月 2023 10:44:29 +0800 Subject: [PATCH] 改为war发布程序 --- pom.xml | 27 ++++++++++++++++++++++++--- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 883ed4b..9232fdd 100644 --- a/pom.xml +++ b/pom.xml @@ -6,23 +6,39 @@ <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.6.RELEASE</version> - <relativePath/> <!-- lookup parent from repository --> + <relativePath/> </parent> + <packaging>war</packaging> + <groupId>com.smartearth</groupId> <artifactId>poiExcel</artifactId> <version>0.2</version> <name>poiExcel</name> - <packaging>jar</packaging> - <description>poiExcel</description> + <description>PoiExcel</description> <properties> <java.version>1.8</java.version> </properties> <dependencies> + <!--spring-boot--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> + <!--鎺掗櫎鍐呯疆tomcat瀹瑰櫒锛岃澶栭儴瀹瑰櫒杩愯spring-boot椤圭洰--> + <exclusions> + <exclusion> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-tomcat</artifactId> + </exclusion> + </exclusions> + </dependency> + <!--war:servlet--> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>javax.servlet-api</artifactId> + <version>3.1.0</version> + <scope>provided</scope> </dependency> <dependency> <groupId>com.alibaba</groupId> @@ -162,12 +178,17 @@ </dependencies> <build> + <finalName>PoiExcel</finalName> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> + <configuration> + <mainClass>com.smartearth.poiexcel.PoiExcelApplication</mainClass> + </configuration> </plugin> </plugins> </build> + </project> -- Gitblit v1.9.3