You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/07/03 10:53:00 UTC
[jira] [Closed] (MNG-6954) dependencyManagement 版本范围配置与仓库选择问题
[ https://issues.apache.org/jira/browse/MNG-6954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MNG-6954.
-------------------------------
Resolution: Invalid
Same is with the previous issue.
> dependencyManagement 版本范围配置与仓库选择问题
> ----------------------------------
>
> Key: MNG-6954
> URL: https://issues.apache.org/jira/browse/MNG-6954
> Project: Maven
> Issue Type: Improvement
> Reporter: Wang Haiqi
> Priority: Major
>
> 当<dependencyManagement>标签里面使用的依赖包,使用了<version>[2.9,)</version>版本范围配置时。
> 在package时,会扫描依赖包的其它jar包里面的<repository>。
> 为什么是这样的?而不是使用当前pom.xml里面的<repository>
> 比如:
> <dependencyManagement>
> <dependency>
> <groupId>joda-time</groupId>
> <artifactId>joda-time</artifactId>
> <version>[2.9,)</version>
> </dependency>
> <dependency>
> <groupId>com.ly.ta</groupId>
> <artifactId>ta-smart-facade</artifactId>
> <version>1.0.2018040301</version>
> </dependency>
> </dependencyManagement>
> joda-time 使用了版本范围配置,当package时,从远程仓库拉取jar包,会拉到ta-smart-facade这个包里面配置的仓库信息。
> 而不是止是使用当前pom.xml里面配置的仓库信息
--
This message was sent by Atlassian Jira
(v8.3.4#803005)