Apache Maven 3.8.1 发布,项目管理和构建工具

来源: OSCHINA
2021-04-06

Apache Maven 3.8.1 发布了。Apache Maven 是一个项目管理和构建工具。基于项目对象模型(POM)的概念, Maven 可以从中心位置管理项目的构建、报告和文档。

此版本更新内容如下:

Bug

  • [MNG-7128] - 改进在构建 POM 中定义的 blocked repository 时的错误信息。

New Feature

  • [MNG-7116] - 增加对 external:http:* 镜像选择器的支持
  • [MNG-7117] - 增加对 blocking mirrors 的支持
  • [MNG-7118] - 默认屏蔽外部 HTTP 资源库

Dependency upgrade

  • 将 Maven Wagon 升级至 3.4.3
  • 将 Maven Resolver 升级至 1.6.2

更新公告

展开阅读全文
6 收藏
分享
加载中
精彩评论
Why not 3.6.4?
This is not just a bugfix as it contains three features that cause a change of default behavior (external HTTP insecure URLs are now blocked by default): your builds may fail when using this new Maven release, if you use now blocked repositories. Please check and eventually fix before upgrading.

Why not 3.7.0?
Apache Maven 3.7.0 has been advertised in the past that it would be the first release where you could optionally activate the build/consumer feature: the version containing this feature has been renamed to 4.0.0. Reusing 3.7.0 might lead to confusion, hence we picked the next available minor version.

Why not 3.8.0?
With every release there’s a 72h+ voting period. During the vote of 3.8.0 a bug was discovered, one that was important enough to cancel the vote. With Maven we burn versions, to ensure we’re always talking about the same “version”. This way there will be never confusion about which Maven 3.8.0 one was using.
2021-04-06 09:38
2
举报
最新发布版本是 3.6.3 吧,怎么就突然到 3.8.1 了,发生了什么呢?
2021-04-06 18:01
1
举报
3.7呢?
2021-04-06 08:59
1
举报
最新评论 (8)
最新发布版本是 3.6.3 吧,怎么就突然到 3.8.1 了,发生了什么呢?
2021-04-06 18:01
1
回复
举报
为什么不是3.6.4?

这不仅仅是一个错误修复,因为它包含三个导致默认行为改变的特性(外部HTTP不安全url现在默认被阻止):如果使用现在被阻止的存储库,那么在使用这个新的Maven版本时,您的构建可能会失败。升级前请检查并最终修复。



为什么不是3.7.0?

ApacheMaven3.7.0在过去曾发布过广告,称它将是第一个可以选择激活构建/使用者特性的版本:包含此特性的版本已重命名为4.0.0。重用3.7.0可能会导致混乱,因此我们选择了下一个可用的次要版本。



为什么不是3.8.0?

每次发布都有72小时以上的投票时间。在3.8.0的投票过程中发现了一个bug,这个bug非常重要,足以取消投票。对于Maven,我们烧版本,以确保我们总是谈论相同的“版本”。这样就不会混淆maven3.8.0使用的是哪一个。
2021-04-06 17:26
0
回复
举报
我从3.6.3 更新成 3.8.1之后,项目引用的某些依赖在本地仓库中存在,但是提示读取失败。又更换成 3.6.3之后,问题消失。
2021-04-06 12:10
0
回复
举报
可能是因为官方还没有更新settings.xml的schema
2021-04-06 13:59
0
回复
举报
您好,请问maven有很多功能,这些功能哪里有中文的详细文档说明吗?
2021-04-06 09:35
0
回复
举报
还是熟悉maven。如果一个应用用maven编译很慢,那就应该想着拆分了。
2021-04-06 09:24
0
回复
举报
3.7呢?
2021-04-06 08:59
1
回复
举报
Why not 3.6.4?
This is not just a bugfix as it contains three features that cause a change of default behavior (external HTTP insecure URLs are now blocked by default): your builds may fail when using this new Maven release, if you use now blocked repositories. Please check and eventually fix before upgrading.

Why not 3.7.0?
Apache Maven 3.7.0 has been advertised in the past that it would be the first release where you could optionally activate the build/consumer feature: the version containing this feature has been renamed to 4.0.0. Reusing 3.7.0 might lead to confusion, hence we picked the next available minor version.

Why not 3.8.0?
With every release there’s a 72h+ voting period. During the vote of 3.8.0 a bug was discovered, one that was important enough to cancel the vote. With Maven we burn versions, to ensure we’re always talking about the same “version”. This way there will be never confusion about which Maven 3.8.0 one was using.
2021-04-06 09:38
2
回复
举报
更多评论
8 评论
6 收藏
分享
返回顶部
顶部