<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <!--SpringBoot父项目依赖管理--> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.5</version> <relativePath/> </parent> .... <dependencies> <!--导入 spring-boot-starter-web--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> ... </dependencies> ... </project>
mvn dependency:tree
[INFO] Scanning for projects... [INFO] [INFO] --------------------< net.biancheng.www:helloworld >-------------------- [INFO] Building helloworld 0.0.1-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) @ helloworld --- [INFO] net.biancheng.www:helloworld:jar:0.0.1-SNAPSHOT [INFO] \- org.springframework.boot:spring-boot-starter-web:jar:2.4.5:compile [INFO] +- org.springframework.boot:spring-boot-starter:jar:2.4.5:compile [INFO] | +- org.springframework.boot:spring-boot:jar:2.4.5:compile [INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.4.5:compile [INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.4.5:compile [INFO] | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile [INFO] | | | +- ch.qos.logback:logback-core:jar:1.2.3:compile [INFO] | | | \- org.slf4j:slf4j-api:jar:1.7.30:compile [INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile [INFO] | | | \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile [INFO] | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile [INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile [INFO] | +- org.springframework:spring-core:jar:5.3.6:compile [INFO] | | \- org.springframework:spring-jcl:jar:5.3.6:compile [INFO] | \- org.yaml:snakeyaml:jar:1.27:compile [INFO] +- org.springframework.boot:spring-boot-starter-json:jar:2.4.5:compile [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.4:compile [INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.4:compile [INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.11.4:compile [INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.11.4:compile [INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.4:compile [INFO] | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.4:compile [INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.4.5:compile [INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.45:compile [INFO] | +- org.glassfish:jakarta.el:jar:3.0.3:compile [INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.45:compile [INFO] +- org.springframework:spring-web:jar:5.3.6:compile [INFO] | \- org.springframework:spring-beans:jar:5.3.6:compile [INFO] \- org.springframework:spring-webmvc:jar:5.3.6:compile [INFO] +- org.springframework:spring-aop:jar:5.3.6:compile [INFO] +- org.springframework:spring-context:jar:5.3.6:compile [INFO] \- org.springframework:spring-expression:jar:5.3.6:compile [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.505 s [INFO] Finished at: 2021-04-30T14:52:30+08:00 [INFO] ------------------------------------------------------------------------
<!--SpringBoot父项目依赖管理--> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.5</version> <relativePath/> </parent>
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>2.4.5</version> </parent>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>2.4.5</version> <packaging>pom</packaging> .... <properties> <activemq.version>5.16.1</activemq.version> <antlr2.version>2.7.7</antlr2.version> <appengine-sdk.version>1.9.88</appengine-sdk.version> <artemis.version>2.15.0</artemis.version> <aspectj.version>1.9.6</aspectj.version> <assertj.version>3.18.1</assertj.version> <atomikos.version>4.0.6</atomikos.version> .... </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-amqp</artifactId> <version>${activemq.version}</version> </dependency> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-blueprint</artifactId> <version>${activemq.version}</version> </dependency> ... </dependencies> </dependencyManagement> <build> <pluginManagement> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>${build-helper-maven-plugin.version}</version> </plugin> <plugin> <groupId>org.flywaydb</groupId> <artifactId>flyway-maven-plugin</artifactId> <version>${flyway.version}</version> </plugin> ... </plugins> </pluginManagement> </build> </project>
以上配置中,部分元素说明如下:
本文链接:http://task.lmcjl.com/news/15119.html