How to use external AMP in alfresco Maven Project

2019-09-16 05:13发布

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条回答
一夜七次
2楼-- · 2019-09-16 05:21

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.

查看更多
登录 后发表回答