cancel
Showing results for 
Search instead for 
Did you mean: 

PNG files corrupted when using SDK3 beta 5

douglascrp
World-Class Innovator
World-Class Innovator

Is anyone here using the SDK3 beta 5 and trying to package customizations containing PNG files?

I'm doing so, and I'm getting the error described in this issue Problems trying to include client side resources with SDK 3 beta 5 · Issue #430 · Alfresco/alfresco-...

Any idea on how to avoid that?

Thank you.

1 ACCEPTED ANSWER

douglascrp
World-Class Innovator
World-Class Innovator

Ok, I was able to "fix" this by changing the block below into the file src/main/assembly/amp.xml:

<fileSet>
    <directory>src/main/assembly/web</directory>
    <outputDirectory>web</outputDirectory>
    <filtered>false</filtered> <!-- Will filter files and substitute POM props such as for example ${project.name} -->
    <excludes>
       <exclude>README.md</exclude>
    </excludes>
</fileSet>

View answer in original post

3 REPLIES 3

douglascrp
World-Class Innovator
World-Class Innovator

Ok, I was able to "fix" this by changing the block below into the file src/main/assembly/amp.xml:

<fileSet>
    <directory>src/main/assembly/web</directory>
    <outputDirectory>web</outputDirectory>
    <filtered>false</filtered> <!-- Will filter files and substitute POM props such as for example ${project.name} -->
    <excludes>
       <exclude>README.md</exclude>
    </excludes>
</fileSet>

Hi Douglas,

Maybe you can just exclude image files. It will allow you to use maven filtering feature in text based files.

Take a look at maven documentation Apache Maven Resources Plugin – Including and excluding files and directories 

Yann 

douglascrp
World-Class Innovator
World-Class Innovator

I tried it, but it didn't work.

But, if you can, please, try it and let me know if it works for you.

What I did was to change the resource plugin configuration in the pom.xml file.