How to use external AMP in alfresco Maven Project

痴心易碎 提交于 2019-12-25 08:02:58

问题


I'm trying to use the alfresco-pdf-toolkit addon in my Alfresco Maven project, is there anyway to include the amp in the pom.xml file of my project?


回答1:


Yes, assuming your project uses the all-in-one archetype of the Alfresco Maven SDK, you can add an AMP dependency as an overlay.

Go look in the repo pom.xml for an example. You'll see something like:

<overlay>
    <groupId>${alfresco.groupId}</groupId>
    <artifactId>alfresco-spp</artifactId>
    <type>amp</type>
</overlay>

Which is how the all-in-one project brings in the SPP dependency. You can add additional AMPs below that.

You must have already run "mvn install" for the AMPs you are depending on so that they are installed in your local Maven repo, or they must be available in some other maven repo that your build knows about.



来源:https://stackoverflow.com/questions/39847132/how-to-use-external-amp-in-alfresco-maven-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!