IDEA生成项目maven-tree依赖目录树结构

1.idea方式

选中idea的maven选项,输入命令:dependency:tree,点击执行

控制台即可以查看,maven-tree生成依赖结构

2.利用maven命令生成maven-tree树结构

切换到maven的pom目录,打开cmd进入命令行模式,输入命令如下:

D:\OnlyOneSmartGit> mvn dependency:tree>>tree.txt

查看tree.txt即可:

D:\JDK\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\idea项目\taco-cloud-3 -Djansi.passthrough=true -Dmaven.home=C:\Users\22291\.m2\wrapper\dists\apache-maven-3.9.9-bin\4nf9hui3q3djbarqar9g711ggc\apache-maven-3.9.9 -Dclassworlds.conf=C:\Users\22291\.m2\wrapper\dists\apache-maven-3.9.9-bin\4nf9hui3q3djbarqar9g711ggc\apache-maven-3.9.9\bin\m2.conf "-Dmaven.ext.class.path=D:\IntelliJ IDEA 2024.2.0.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\IntelliJ IDEA 2024.2.0.1\lib\idea_rt.jar=57218:D:\IntelliJ IDEA 2024.2.0.1\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\22291\.m2\wrapper\dists\apache-maven-3.9.9-bin\4nf9hui3q3djbarqar9g711ggc\apache-maven-3.9.9\boot\plexus-classworlds-2.8.0.jar;C:\Users\22291\.m2\wrapper\dists\apache-maven-3.9.9-bin\4nf9hui3q3djbarqar9g711ggc\apache-maven-3.9.9\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2024.2.0.1 -s D:\Maven\apache-maven-3.8.8\conf\settings.xml -Dmaven.repo.local=D:\Maven\maven-repository install [INFO] Scanning for projects... [INFO] [INFO] ----------------------< com.example:taco-cloud-3 >---------------------- [INFO] Building taco-cloud-3 0.0.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ taco-cloud-3 --- [INFO] Copying 1 resource from src\main\resources to target\classes [INFO] Copying 6 resources from src\main\resources to target\classes [INFO] [INFO] --- compiler:3.13.0:compile (default-compile) @ taco-cloud-3 --- [INFO] Recompiling the module because of changed source code. [INFO] Compiling 9 source files with javac [debug parameters release 17] to target\classes [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ taco-cloud-3 --- [INFO] skip non existing resourceDirectory D:\idea项目\taco-cloud-3\src\test\resources [INFO] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ taco-cloud-3 --- [INFO]
03-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值