Alfresco 的 MMT 与集成部署

发布于 2024-12-07 08:32:04 字数 394 浏览 2 评论 0原文

在为 Alfresco 进行开发时,使用 MMT 相比 集成部署?有什么东西可以使用一种方法开发而不能使用另一种方法吗?

浏览 Alfresco 的 SDK 示例,我注意到其中许多都使用集成部署,我在 Google Code 上看到的所有共享网页脚本也是如此。现在我只是使用集成部署方法,一切似乎都运行良好,但我很好奇是否因为不使用 MMT 而错过了任何东西。

When developing for Alfresco, are there any advantages to using the MMT over Integrated Deployment? Is there anything you can develop using one method, but not the other?

Browsing through Alfresco's SDK examples, I noticed many of them used integrated deployment, and the same went for all of the Share webscripts I saw on Google Code. Right now I'm just using the Integrated Deployment method, and everything seems to be working well, but I'm curious if I'm missing out on anything by not using the MMT.

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

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

发布评论

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

评论(1

小苏打饼 2024-12-14 08:32:05

模块和集成部署在代码能力上是完全一样的。 主要区别在于分发您的自定义:如果您需要/想要

  • 向外部世界提供自定义或
  • 在不同项目中重用它们或
  • 将它们移植到不同的 Alfresco 版本

,那么模块就是最佳选择,特别是如果您不发布源代码。 AMP 的唯一缺点是它们会在数据库中写入一些内容,但您目前无法卸载它们,即使有一些技巧,你也可以 试用。

我个人仍然更喜欢尽可能多地使用 AMP 进行自定义,只保留无法进入 AMP 的嵌入更改(例如覆盖原始 Alfresco 文件)。 maven 方式也有助于(并推动您一点)这种实践。

Modules and integrated deployments are exactly the same in terms of code capabilities. The main difference is about distributing your customization: if you need/want to

  • provide your customizations to the external world or
  • reusing them across different projects or
  • port them to different Alfresco versions

then modules are the way to go, especially if you're not releasing the source code. The only downside of AMPs is that they write something in the DB but you currently can't uninstall them, even if there are some tricks you can try out.

I personally still prefer using AMPs as much as I can for my customization, leaving to embedded changes only stuff that can't go into an AMP (e.g. overriding original Alfresco files). The maven way also helps (and drives you a little) towards this practice.

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