且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在露天Maven项目中使用外部AMP

更新时间:2023-09-17 21:39:46

是的,假设您的项目使用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.