DPascalBernard / maven-alfresco-archetypes

Automatically exported from code.google.com/p/maven-alfresco-archetypes
0 stars 0 forks source link

maven sdk + mmt : Warning reported when runnin alfresco amp #183

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When running  an amp (mvn install -Pamp-to-war) in all-in-one project type, mmt 
report some warning :
-------------------
[INFO] --- alfresco-maven-plugin:1.1.1:install (amps-to-war-overlay) @ my-amp 

---
   - WARNING: The file '/WEB-INF/classes/alfresco/module/mymodule-amp/context/a-service-context.xml' is being overwritten by this module. The original has been backed-up to '/WEB-INF/classes/alfresco/module/backup/342f3273-bf1a-11e3-8690-49e0d19a4f9a.bin'
--------------

In fact, before alfresco-maven-plugin execution , maven resource plugin do a 
copy of amp files into target warfolder :

 <execution>
            <id>copy-alfresco-test-resources</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>/home/altha/Projets/Alfresco-Panier/sources/my/my-amp/target/my-amp-war</outputDirectory>

Then mmt override the files, and log WARNING for each file.

Ok, it's just a Warning, but at first, before investigating, you can think it's 
an issue.

Original issue reported on code.google.com by alexis.t...@gmail.com on 8 Apr 2014 at 12:53

GoogleCodeExporter commented 8 years ago

Original comment by colum...@gmail.com on 10 Jun 2014 at 12:52