AnsweredAssumed Answered

Alfresco Maven 1.1.1 SDK Plugin - corrupts JAR file

Question asked by mibesis on Jun 19, 2014
Latest reply on Jul 4, 2014 by michaelp
Hi,

I am using Alfresco Maven 1.1.1 SDK plugin.

  <parent>
    <groupId>org.alfresco.maven</groupId>
    <artifactId>alfresco-sdk-parent</artifactId>
    <version>1.1.1</version>
  </parent>


to develop Alfresco 4.2 AMP extensions.

I am trying to build an extension with a Java Applet. I have noticed that JAR file containing applet logic is corrupted when AMP is created.


mvn integration-test -Pamp-to-war


JAR file in target folder (and downloaded from application) is unpackable. Its size grows from 130kb to 225kb.

From what I found out, or better, my assumption is - this is caused by the maven resource plugin, doing binary filtering.

From alfresco-sdk-parent POM file.


        <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>
              <nonFilteredFileExtension>swf</nonFilteredFileExtension>
            </nonFilteredFileExtensions>
          </configuration>
        </plugin>


but, I am not sure.

Has any one else tied to bundle a JAR file in an Alfresco Share AMP extension?


Kind Regards,
Miroslav

Outcomes