DPascalBernard / maven-alfresco-archetypes

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

SWF files contained into src/main/amp get corrupted #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate an AMP project using archetypes (1.0.2 version)
2. Add - in any location below src/main/amp - an .swf file
3. mvn clean package
4. Track the .swf file in the target folder and open it
5. The file is corrupted

What is the expected output? What do you see instead?
The file is a copy of the original one contained into src/main/amp

  --- oOo ---

The issue can be fixed adding .swf to the nonFilteredExtensions configuration 
of the maven-resources-plugin contained into 
org.alfresco.maven.alfresco-sdk-parent.1.0.2

Hereby is reported the configuration to use

  <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-resources-plugin</artifactId>
          <version>${maven.resources.version}</version>
          <configuration>
            <encoding>UTF-8</encoding>
            <nonFilteredFileExtensions>
              <nonFilteredFileExtension>ftl</nonFilteredFileExtension>
              <nonFilteredFileExtension>acp</nonFilteredFileExtension>
              <nonFilteredFileExtension>jpg</nonFilteredFileExtension>
              <nonFilteredFileExtension>png</nonFilteredFileExtension>
              <nonFilteredFileExtension>gif</nonFilteredFileExtension>
              <nonFilteredFileExtension>pdf</nonFilteredFileExtension>
              <nonFilteredFileExtension>doc</nonFilteredFileExtension>
              <nonFilteredFileExtension>xls</nonFilteredFileExtension>
              <nonFilteredFileExtension>ppt</nonFilteredFileExtension>
              <nonFilteredFileExtension>bin</nonFilteredFileExtension>
              <nonFilteredFileExtension>lic</nonFilteredFileExtension>
            </nonFilteredFileExtensions>
          </configuration>
        </plugin>

Original issue reported on code.google.com by maurizio...@alfresco.com on 14 Aug 2013 at 3:15

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r698.

Original comment by colum...@gmail.com on 14 Aug 2013 at 3:16

GoogleCodeExporter commented 9 years ago
We need to add the MS Office 2007 extensions to this list as well.  Possibly as 
a stretch the OpenOffice extensions.

Original comment by jared.ot...@alfresco.com on 14 Aug 2013 at 3:17

GoogleCodeExporter commented 9 years ago
Fixed by adding swf to the list of nonFilteredExtensions

Original comment by colum...@gmail.com on 14 Aug 2013 at 3:19

GoogleCodeExporter commented 9 years ago
Sorry @Jared, overlooked your comment.

Can you provide the mimetypes required and I'll add them to the list?

(until we find a better way to handle this)

Original comment by gabriele...@alfresco.com on 14 Aug 2013 at 5:11