是否有 Netbeans 版本的 m2eclipse 工作区解析功能?
我的同事使用 m2eclipse 工作区分辨率,我发现它非常高效。
我想知道是否有上述行为的 netbeans 版本?
更新:m2eclipse 工作空间分辨率的定义
您可以配置项目来解析工作区中的依赖项。这有以下效果 改变 Maven 定位依赖项的方式。如果项目配置为解析 由于来自工作区的依赖项,这些工件不需要存在于您的本地中 存储库。假设project-a和project-b都在同一个Eclipse工作区中,并且 项目 a 依赖于项目 b。如果禁用工作区解析,则 m2eclipse Maven 构建 仅当项目 b 的工件存在于本地存储库中时,项目 a 才会成功。如果 启用工作区解析,m2eclipse将通过eclipse解决依赖关系 工作区。换句话说,当启用工作区解析时,项目不必是 安装在本地存储库中以相互关联。
I colleague of mine uses m2eclipse workspace resolution, and I find it quite productive.
I'm wondering is there a netbeans version of mentioned behaviour?
UPDATE: definition of m2eclipse workspace resolution
You can configure a project to resolve dependencies from a workspace. This has the effect of
altering the way that Maven locates dependency artifacts. If a project is configured to resolve
dependencies from the workspace, these artifacts do not need to be present in your local
repository. Assume that project-a and project-b are both in the same Eclipse workspace, and that
project-a depends on project-b. If workspace resolution is disabled, the m2eclipse Maven build
for project-a will only succeed if project-b's artifact is present in the local repository. If
workspace resolution is enabled, m2eclipse will resolve the dependency via the eclipse
workspace. In other words, when workspace resolution is enabled, project's don't have to be
installed in the local repository to relate to one another.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Netbeans 也内置了对 Maven 的支持。请参阅 http://wiki.netbeans.org/Maven。
Netbeans too has built-in support for Maven. See http://wiki.netbeans.org/Maven.
更新:支持,但是 ...
/build.xml
和/nbproject
文件夹必须删除/inexistent 因此项目被识别为 Maven 项目(蓝色 M 图标),而不是(基于 ANT 的)Java 项目(咖啡图标),例如:旧调查:似乎有8.1(2015 年 11 月) 中不支持此功能,也没有提及NetBeans Maven 常见问题解答。
这里提到从 6.5 开始就支持它,但对我们不起作用或者意味着不同的是:
并且有一个无效功能请求(2011) 可能会显示一些带有隐含优点和缺点的替代方案。
Update: It is supported, but ...
<projx>/build.xml
and<projx>/nbproject
folders must be deleted/inexistent so the projects are recognized as Maven projects (blue M icons) and not as (ANT-based) Java projects (Coffee icons), e.g.:Old investigation: There seems no support for this in 8.1 (Nov 2015) nor is it mentioned in the NetBeans Maven FAQ.
Here it is mentioned to be supported since 6.5, but does not work for us or is meant differently:
And there is an invalid feature request (2011) that may show some alternatives with implied pros and cons.