cancel
Showing results for 
Search instead for 
Did you mean: 

Maven overlay with AMP

msvorc
Champ in-the-making
Champ in-the-making
Hello,

I am trying to use maven war plugin overlay with amps using this example (Method 1) https://artifacts.alfresco.com/nexus/content/groups/public/alfresco-lifecycle-aggregator/latest/plug... .

The WAR file is created, however, I get following error:

[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]


The code of my pom.xml is the same as in the example.

Any ideas?

Thanks,
Martin
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

if you use the AMP overlay into a WAR with the WAR plugin without referring to the Alfresco SDK parent POM, you need to add a <dependency> to the Maven WAR plugin to support the AMP file format.


<plugin>
   <…>
   <dependency>
      <groupId>org.alfresco.maven.plugin</groupId>
      <artifactId>alfresco-maven-plugin</artifactId>
      <version>1.0.2</version>
   </dependency>
</plugin>


But it would be easier to just include the Alfresco SDK parent POM and re-use the already configured plugins there.

Regards
Axel