I createad simple springboot project and i removed all dependencies from the pom.xml file. But still maven download some dependencies when reloading the projects. These dependencies are not used by the project but i don't want to download the dependencies in to .m2 repositoy by default.
In below the pom.xml file for the project is added.
<?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>
<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>11</java.version>
</properties>
<dependencies></dependencies>
<build>
</build>
</project>
In below the dependencies which are download by default by maven are added.
Read more here: https://stackoverflow.com/questions/65839403/maven-downloads-some-default-dependencies-which-are-added-in-dependencies-list-o
Content Attribution
This content was originally published by netajik at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.