在idea上创建一个maven的javaEE项目

时间:2025-03-18 08:48:09
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="/POM/4.0.0" xmlns:xsi="http:///2001/XMLSchema-instance" xsi:schemaLocation="/POM/4.0.0 /xsd/maven-4.0."> <modelVersion>4.0.0</modelVersion> <!--本项目坐标--> <groupId></groupId> <artifactId>HumanResource</artifactId> <version>1.0-SNAPSHOT</version> <name>HumanResource</name> <packaging>war</packaging> <properties> <>1.8</> <>1.8</> <>5.7.0</> </properties> <dependencies> <!--sql依赖--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.13</version><!--$NO-MVN-MAN-VER$ --> </dependency> <!--jstl标签库依赖--> <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <!--Ajax依赖--> <dependency> <groupId></groupId> <artifactId>jackson-databind</artifactId> <version>2.13.2.2</version> </dependency> <!--下面是创建好项目就有的--> <dependency> <groupId></groupId> <artifactId>-api</artifactId> <version>4.0.1</version> <scope>provided</scope> </dependency> <dependency> <groupId></groupId> <artifactId>junit-jupiter-api</artifactId> <version>${}</version> <scope>test</scope> </dependency> <dependency> <groupId></groupId> <artifactId>junit-jupiter-engine</artifactId> <version>${}</version> <scope>test</scope> </dependency> </dependencies> <!--这个是打包的插件--> <build> <plugins> <plugin> <groupId></groupId> <artifactId>maven-war-plugin</artifactId> <version>3.3.0</version> </plugin> </plugins> </build> </project>

相关文章