You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
114 lines
4.0 KiB
114 lines
4.0 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
|
http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.student</groupId>
|
|
<artifactId>student-management</artifactId>
|
|
<version>1.0.0</version>
|
|
<packaging>war</packaging>
|
|
|
|
<name>学生信息管理系统</name>
|
|
<description>基于JSP+Servlet+JavaBean+JDBC+DAO的学生信息管理系统</description>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
<maven.compiler.target>17</maven.compiler.target>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- Jakarta Servlet API (Tomcat 10+) -->
|
|
<dependency>
|
|
<groupId>jakarta.servlet</groupId>
|
|
<artifactId>jakarta.servlet-api</artifactId>
|
|
<version>6.1.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Jakarta JSP API -->
|
|
<dependency>
|
|
<groupId>jakarta.servlet.jsp</groupId>
|
|
<artifactId>jakarta.servlet.jsp-api</artifactId>
|
|
<version>4.0.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Jakarta JSTL API -->
|
|
<dependency>
|
|
<groupId>jakarta.servlet.jsp.jstl</groupId>
|
|
<artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
|
|
<version>3.0.2</version>
|
|
</dependency>
|
|
|
|
<!-- JSTL 实现 (GlassFish) -->
|
|
<dependency>
|
|
<groupId>org.glassfish.web</groupId>
|
|
<artifactId>jakarta.servlet.jsp.jstl</artifactId>
|
|
<version>3.0.1</version>
|
|
</dependency>
|
|
|
|
<!-- MySQL JDBC 驱动 -->
|
|
<dependency>
|
|
<groupId>com.mysql</groupId>
|
|
<artifactId>mysql-connector-j</artifactId>
|
|
<version>9.2.0</version>
|
|
</dependency>
|
|
|
|
<!-- Apache POI (Excel导入导出) -->
|
|
<dependency>
|
|
<groupId>org.apache.poi</groupId>
|
|
<artifactId>poi-ooxml</artifactId>
|
|
<version>5.3.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>student-management</finalName>
|
|
<plugins>
|
|
<!-- 编译插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.13.0</version>
|
|
<configuration>
|
|
<source>17</source>
|
|
<target>17</target>
|
|
<encoding>UTF-8</encoding>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- WAR 打包插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<version>3.4.0</version>
|
|
<configuration>
|
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- 依赖复制插件(下载JAR到lib目录) -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-dependencies</id>
|
|
<phase>process-sources</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
<includeScope>compile</includeScope>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|
|
|