如何在露天Maven项目中使用外部AMP [英] How to use external AMP in alfresco Maven Project

查看:109
本文介绍了如何在露天Maven项目中使用外部AMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Alfresco Maven项目中使用alfresco-pdf-toolkit插件,无论如何,该项目的pom.xml文件中是否包含了放大器?

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?

推荐答案

是的,假设您的项目使用Alfresco Maven SDK的多合一原型,则可以添加AMP依赖项作为覆盖.

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

在回购文件pom.xml中查看示例.您会看到类似的内容:

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>

多合一项目如何引入SPP依赖关系.您可以在其下添加其他AMP.

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

您必须已经为要依赖的AMP运行"mvn install",以便将它们安装在本地Maven仓库中,或者它们必须在您的构建已知的其他Maven仓库中可用.

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.

这篇关于如何在露天Maven项目中使用外部AMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆