禁用单个依赖项的下载
我非常恼火,因为我导入的 Quartz 版本没有部署正确的 POM 文件(maven 仓库)。
因此,maven 尽职尽责地尝试在每个构建上下载它。
Downloading: http://repo1.maven.org/maven2/opensymphony/quartz/1.6.3/quartz-1.6.3.pom
我想跳过此步骤,但不想完全离线,因为这很有用。
有想法吗?
I am downright annoyed because the Quartz release I'm importing does not have a proper POM file deployed (maven repo).
Therefore maven dutifully tries to download it on every build.
Downloading: http://repo1.maven.org/maven2/opensymphony/quartz/1.6.3/quartz-1.6.3.pom
I'd like to skip this step but without going completely offline since that is useful.
Ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用此工件添加一个附加存储库,并确保 POM 正确。 这样主仓库 POM 将被覆盖。 您可以运行存储库管理器,例如 artifactory 或 nexus 本地
Add an additional repository, with this artifact and make sure the POM is correct. This way the main repo POM will be overridden. You can run repository manager such as artifactory or nexus locally
如果它是实际不需要的传递依赖项,那么您可以使用
元素来实现此目的。If its a transitive dependency that isn't actually required, then you can use the
<exclude />
element to achieve this.您可以将 POM 托管在本地存储库管理器或本地存储库中。 如果这确实困扰您,我建议联系项目团队并要求他们修复元数据或提出 请求 使用您自己的修复直接针对中央存储库。 有关如何提出请求的详细信息,请参阅此处
You could host the POM in a local repository manager, or in your local repository. If it's really bugging you I'd recommend contacting the project team and asking them to fix their metadata or raising a request directly against the central repository with your own fix. Details on how to raise a request can be found here