如何在alfresco-sdk中添加多个AMP模块?

时间:2015-11-11 00:40:19

标签: alfresco

我是alfresco-sdk的新手。我习惯使用旧式的AMP模块,然后运行ant脚本将它们组合到alfresco WAR文件中。

我已经按照alfresco-sdk的教程进行了

  1. alfresco all in one
  2. alfresco AMP
  3. alfresco分享
  4. archetypes并且它成功运行。

    我无法弄清楚我是否有三种不同的AMP模块,如何将它们组合在一起呢?

    比如说,目前我在我的仓库中跟踪AMP模块 -

    1. 露天-DEF-AMP
    2. 露天泛型-AMP
    3. alresco-ABC-AMP
    4. 我应该做什么,这样当我给出放大器对战命令时,它需要从三个模块中进行定制,然后放入露天战争。

2 个答案:

答案 0 :(得分:1)

I think you should stick with using a seperate archetype alfresco (AKA repository) AMP for each of your existing modules.

By Running the alfresco SDK maven build with target mvn package on each module, will create an amp file for you. These amps can then be deployed to your alfresco instance (with apply_amps.bat), just like you probably are used to, with ant builds. You don t have to execute the maven build via run.bat file, which starts alfresco with your module in an embedded container.

If you really want to combine them into one, I suppose you ll have to merge your code of the 3 modules into one module of type alfresco AMP, and still work the above way.

答案 1 :(得分:0)

我们可以使用alfresco All-in-one原型。

我们可以使用叠加层来包含我们的自定义模块,例如

alfresco-DEF-AMP
alfresco-generic-AMP
alresco-ABC-AMP

生成单个WAR文件(alfresco / repo.war)

以下链接非常有用

http://docs.alfresco.com/sdk2.1/concepts/alfresco-sdk-advanced-add-custom-amps.html