DPascalBernard / maven-alfresco-archetypes

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

Files inside src/main/amp/web folder aren't packaged inside the resulting amp file. #176

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Looking at the 
https://artifacts.alfresco.com/nexus/content/repositories/alfresco-docs/alfresco
-lifecycle-aggregator/latest/archetypes/alfresco-amp-archetype/usage.html I saw 
this sample folder structure.

pom.xml
  src/main/amp  
            |-> module.properties
            |-> file-mapping.properties (optional)
            |-> config/
            |-> web/
            |-> licenses/

I tried to override the Share favicon putting my custom image inside the 
src/main/amp/web folder, but after the mvn package call, the resulting amp file 
doesn't include my favicon.

I also tried to create a file-mapping.properties file, as described on wiki amp 
files page, but even that didn't help me.
My file-mapping.properties file content:

include.default=false
/web=/

What is the expected output?
The final amp file should include my favicon inside /web.

What do you see instead?
The final amp fiel doesn't include my favicon.

What version of the product are you using? On what operating system?
Alfresco Community 4.2.e
Ubuntu 12.04
Alfresco Maven SDK 1.1.1

Original issue reported on code.google.com by douglascrp@gmail.com on 30 Jan 2014 at 5:17

GoogleCodeExporter commented 8 years ago
Sorry for the late reply; just stumbled on a similar issue; grepping the 
Alfresco webapp files we found the file-mapping.properties defaults (in 
./repository/config/org/alfresco/repo/module/tool/default-file-mapping.propertie
s)

# The default AMP => WAR file mappings
/config=/WEB-INF/classes
/lib=/WEB-INF/lib
/licenses=/WEB-INF/licenses
/web/jsp=/jsp
/web/css=/css
/web/images=/images
/web/scripts=/scripts
/web/php=/php

This means that - in order to add a file on src/main/amp/web - you need to add 
a custom file-mapping.properties containing the following lines (as stated in 
your comment)

include.default=false
/web=/

We have tested this with Alfresco Enterprise 4.2.1 and worked as expected.

Original comment by mauri...@session.it on 18 Jun 2014 at 12:39

GoogleCodeExporter commented 8 years ago
Next SDK release will contain a Share AMP archetype which includes this, as 
well as share-config-custom.xml.example etc. See 
https://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=70 for 
more info

Original comment by o...@magenta-aps.dk on 18 Jun 2014 at 12:43

GoogleCodeExporter commented 8 years ago
Thanks,
Apart from the /themes mapping, the defaults should also include the mapping 
for adding dojo extensions or component and module related javascripts.

such as:
/components
/modules
/js/

Original comment by alex.mah...@gmail.com on 18 Jun 2014 at 12:55