https://mvnrepository.com/?__cf_chl_rt_tk=vRzDsumjmJ_HF95MK4otu9XluVRHGqAY5Wv4UQYETR8-1714103058-0.0.1.1-1557
- <dependencies>
- <dependency>
- <groupId></groupId>
- <artifactId></artifactId>
- <version></version>
- </dependency>
- </dependencies>
注:pom.xml中只能有一个dependencies标签,否则会报如下错误
Non-parseable POM\maven-project01\pom.xml: Duplicated tag: 'dependencies' (position: START_TAG seen ...</dependencies>\r\n\r\n<dependencies>... @26:15)
注:快捷键:CTRL+单击
若A->B->jar,但是A不需要jar,所以可以使用排除依赖。
- <dependencies>
- <dependency>
- <groupId>...</groupId>
- <artifactId>maven-projectB</artifactId>
- <version>....</version>
- <exclusions>
- <exclusion>
- <groupId>...</groupId>
- <artifactId>...</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
排除依赖不指定版本。
如果你觉得本文对你有用的话,请随意打赏~