2

根据这篇文章,应该可以使用 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]

有什么想法吗?

4

1 回答 1

4

尝试mvn integration-test -Pamp-to-war

并确保您的父母具备以下条件:

<parent>
        <groupId>org.alfresco.maven</groupId>
        <artifactId>alfresco-sdk-parent</artifactId>
        <version>1.0.2</version>
    </parent>
于 2013-08-15T21:56:12.163 回答