maven - Simple way to remove unused dependencies from POM in Spring Initializr web project (IntelliJ Idea 2017.2.1) -


i created 1 simple spring initializr web project in intellij idea. after project creation, see 2 dependencies (spring-boot-starter-web , spring-boot-starter-test) in pom.xml file external libraries in project structure contain many unused jars (which degrades performance). see below screenshot. enter image description here there shortcut or manual way remove unused dependencies , keep required ones.

edit- though remove unused resources option available (right click on external libraries refactor option) doesn't seem work.

any admired. thanks!!!

you can try dependency:analyze, you. main goal of dependency:analyze analyse dependencies in project , determines used , declared , used , undeclared , unused , declared.

you can refer below link reference more study:

http://maven.apache.org/plugins/maven-dependency-plugin/index.html http://maven.apache.org/plugins/maven-dependency-plugin/usage.html

you can try run mvn dependency:tree, won't remove dependencies
allow analysis yourself


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -