maven插件之Dependency:analyze,去掉无用maven依赖 前言 完成新功能的开发后,在发包前组长告诉我要检查maven工程的依赖,并告诉我相关指令,此文记录一下使用方式 正文 简介 maven官网之Dependency插件 Dependency插件提供了操纵artifact的能力,可以复制以及拆包本地或远程仓库的artifact到指定地点。 Dependency有很多的goal,这...
一、插件目标(goal) 1、analyze:分析项目依赖,确定哪些是已使用已声明的,哪些是已使用未声明的,哪些是未使用已声明的 2、analyze-dep-mgt:分析项目依赖,列出已解析的依赖项与dependencyManagement中定义的依赖项不匹配的部分 3、analyze-report:生成项目报告 4、analyze-duplicate:分析pom.xml中的<dependencies/>和<de...
键入命令:mvn dependency:analyze,然后就出一个分析报告,所有的warning都是有问题的地方,当然,报告里可能有三方包的一些warnning,这些不用关心,因为分析规则可能是写死的,只需看下与本系统相关引入的包即可。
这是我在pom中的依赖关系: <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifactId> <scope>provided</scope> </dependency> 当我跑的时候 mvn dependency:analyze 这就是我得到的: [WARNING] Used undeclared dependencies found: [WARNING] org.apache.hadoop:hadoop-common:...
--- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only (analyze-dependencies) on project my-lib: Dependency problems found -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR...
【maven】dependency:analyze白名单 <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><version>3.0.0</version><configuration><ignoredUsedUndeclaredDependencies><ignoredUsedUndeclaredDependency>org.springframework:spring-context</ignoredUsedUndeclaredDependency></...
<version>${maven-dependency-plugin.version}</version> <reportSets> <reportSet> <reports> <report>analyze-report</report> </reports> </reportSet> </reportSets> </plugin> </plugins> </reporting> <profiles> <profile> <id>src</id> <activation> <activeByDefault>false</activeByDefault> </...
作者个人研发的在高并发场景下,提供的简单、稳定、可扩展的延迟消息队列框架,具有精准的定时任务和延迟队列处理功能。自开源半年多以来,已成功为十几家中小型企业提供了精准定时调度方案,经受住了生产环境的考验。为使更多童鞋受益,现给出开源框架地址:
[INFO] --- maven-deploy-plugin:3.1.1:deploy (default-deploy) @ parent-pom --- [DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=25087, ConflictMarker.markTime=75963, ConflictMarker.nodeCount=4, ConflictIdSorter.graphTime=10419, ConflictIdSorter.topsortTime=10239, ConflictIdSorter....
Maven Dependency Plugin: Simplifying dependency management, this plugin offers functionalities to analyze and visualize the project’s dependency tree, resolve conflicts, and copy dependencies to desired locations. Maven Clean Plugin: By removing generated files and directories, such as the target directory...