04-24-2015 10:04 PM
Hi, I'm trying to brand my Nuxeo, and I created a bundle. Logo, CSS and other stuff are copied without problem to {NUXEO_HOME}/nxserver/nuxeo.war/
The problem is that I added some fonts in differents formats (EOT, TTF, WOFF...) and when the Nuxeo deploys the JAR Bundle, those font files are corruptly deployd. For example, original myFont.eot size is 54.096 bytes, but myFont.eot located at {NUXEO_HOME}/nxserver/nuxeo.war/fonts sizes 70.366 bytes after deploy.
Why those files incremented their size when I deployed the bundle?
I tried to put those files on /img, /incl, etc... but same result.
Any clue? Thanks in advice
04-25-2015 07:49 AM
I answer myself. The corrupted files are caused by maven, not nuxeo. In order to solve this, in the bundle pom, this must be added:
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>ttf</nonFilteredFileExtension>
<nonFilteredFileExtension>eot</nonFilteredFileExtension>
<nonFilteredFileExtension>woff</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</plugin>
04-25-2015 07:49 AM
I answer myself. The corrupted files are caused by maven, not nuxeo. In order to solve this, in the bundle pom, this must be added:
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>ttf</nonFilteredFileExtension>
<nonFilteredFileExtension>eot</nonFilteredFileExtension>
<nonFilteredFileExtension>woff</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</plugin>
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.