根据这篇文章,应该可以使用 Alfresco Module Package (AMP) 作为覆盖(它似乎是一个普通的 .zip 文件)
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<overlays>
<overlay/>
<overlay>
<groupId>org.alfresco</groupId>
<artifactId>alfresco</artifactId>
<type>war</type>
<excludes/>
</overlay>
<overlay>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-wcm-quickstart-repo</artifactId>
<type>amp</type>
</overlay>
</overlays>
</configuration>
</plugin>
</plugins>
</build>
依赖项:
<dependencies>
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco</artifactId>
<version>4.0.e</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-wcm-quickstart-repo</artifactId>
<version>4.0.e</version>
<type>amp</type>
</dependency>
</dependencies>
但是我在打包战争时收到以下警告消息:
[WARNING] Skip unpacking dependency file [C:\Users\svorc\.m2\repository\org\alfresco\alfresco-wcm-quickstart-repo\4.0.e\alfresco-wcm-quickstart-repo-4.0.e.amp with unknown extension [amp]
有什么想法吗?