m2eclipse 和 RAD 7.5

发布于 2024-09-10 02:55:16 字数 355 浏览 8 评论 0原文

我正在使用 Maven 来自动化正在 RAD 7.5 中开发的项目。 我已经在 RAD 7.5 中安装了 m2eclipse,更新了(手动)maven 依赖项,并且它在 RAD 中构建了 Maven 方式。 我的主要问题:将 m2eclipse 与 RAD 结合使用的最佳实践是什么? 我们应该在项目工作区中保留两个( RAD 和 maven )设置还是删除所有 RAD 设置并仅使用 Maven?

另外,我想知道 m2eclipse 依赖管理功能。我希望当我将 pom.xml 添加到类路径时,它将使用新的依赖项更新 pom.xml ,反之亦然(如果我们保留这两种配置)。这是一个正确的假设吗? 这似乎不会发生。也许我需要再试一次......

非常感谢任何建议!

I am using Maven to automate a project that is being developed in RAD 7.5.
I've installed m2eclipse in RAD 7.5 , updated ( manually ) maven dependencies , and it builds Maven way within RAD.
My main question : what is the best practice using m2eclipse with RAD?
Should we keep both ( RAD and maven ) settings in the project workspace or remove all RAD settings and stick with Maven only?

Also , I am wondering about m2eclipse dependency management feature. I was hoping that it will update pom.xml with the new dependency when I add it to the classpath and vise versa ( in case we are keeping both configurations ). Is this a correct assumption?
this doesn't seem to happen. Maybe I need to give it another try....

Any suggestions are very much appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

咋地 2024-09-17 02:55:16

文章“使用 Rational Application Developer 7.5.5 和 Maven 进行 Java EE 开发”(http://www.ibm.com/developerworks/wikis/display/rad/Articles) 不错,但该站点是错误的。

由于 RAD 7.5.5 基于 Eclipse 3.4.2,因此您需要指向此处:
http://m2eclipse.sonatype.org/sites/m2e-e34/

The article "Java EE development using Rational Application Developer 7.5.5 and Maven" (http://www.ibm.com/developerworks/wikis/display/rad/Articles) is OK but the site is wrong.

Since RAD 7.5.5 is based on Eclipse 3.4.2 you need to point here:
http://m2eclipse.sonatype.org/sites/m2e-e34/

〆一缕阳光ご 2024-09-17 02:55:16

我的主要问题:将 m2eclipse 与 RAD 结合使用的最佳实践是什么?我们应该在项目工作区中同时保留(RAD 和 Maven)设置,还是删除所有 RAD 设置并仅使用 Maven?

我不使用 RAD,所以我不确定我的答案是否完全准确,但在使用 Eclipse 时,m2eclipse 会处理 .classpath.project文件和所有内容都源自 pom.xml,而不是相反。我认为这与 RAD 没有什么不同。

[...] 我希望当我将 pom.xml 添加到类路径时,它会使用新的依赖项更新 pom.xml,反之亦然(如果我们保留这两种配置)。这是一个正确的假设吗?

我不这么认为,m2eclipse 不会将随机依赖项(可能在任何存储库中都不可用)转换为 Maven 工件并将坐标添加到 pom.xml 中。编辑 pom.xml 或使用向导添加依赖项。正如我上面所说,它的工作方式相反,事物是从 pom.xml 派生的。

My main question : what is the best practice using m2eclipse with RAD? Should we keep both (RAD and maven) settings in the project workspace or remove all RAD settings and stick with Maven only?

I don't work with RAD so I'm not sure my answer will be totally accurate but when working with Eclipse, m2eclipse takes care of the .classpath and the .project files and everything is derived from the pom.xml, not the other way around. I don't think it's different with RAD.

[...] I was hoping that it will update pom.xml with the new dependency when I add it to the classpath and vise versa (in case we are keeping both configurations). Is this a correct assumption?

I don't think so, m2eclipse won't translate a random dependency (that may not be available in any repo) into a maven artifact and add the coordinates to the pom.xml. Edit the pom.xml or use the wizard to add a dependency. As I said above, it works the other way around, things are derived from a pom.xml.

倒带 2024-09-17 02:55:16

由于 m2eclipse (至少 0.10+)和 RAD 7.5 似乎存在许多未解决的问题,我正在考虑在 RAD 中采用手动方式实现 eclipse:rad 目标:

http://maven.apache.org/plugins/maven-eclipse-plugin/rad-mojo.html

As there seem to be many open issues with m2eclipse (at least 0.10+) and RAD 7.5, I'm thinking of going the manual way in RAD with the eclipse:rad goal:

http://maven.apache.org/plugins/maven-eclipse-plugin/rad-mojo.html

烟火散人牵绊 2024-09-17 02:55:16

请访问 http://www.ibm.com/developerworks/wikis/显示/rad/文章
请参阅 Java EE 部分的文章“使用 Rational Application Developer 7.5.5 和 Maven 进行 Java EE 开发”。

这是由 Rational Application Developer 开发团队发布的最佳实践论文。

请注意,Pascal 的注释可能会对发布到 WebSphere Application Server 或 WebSphere Portal Server 期间的性能产生影响。

Rational Application Developer 的developerWorks 论坛也包含相当多的帖子。

本网站上的帖子是我自己发表的,并不一定代表 IBM 的立场、策略或意见。

Please to go to http://www.ibm.com/developerworks/wikis/display/rad/Articles
See section Java EE, article "Java EE development using Rational Application Developer 7.5.5 and Maven".

This is a best-practices paper published by Rational Application Developer development team.

Be aware that the comment from Pascal might have performance implications during publishing to WebSphere Application Server or WebSphere Portal Server.

The developerWorks forum for Rational Application Developer contains also quite a number of posts.

The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文