Fórum

unable to build theme using maven plugin

thumbnail
Naresh Reddy Kallamadi, modificado 7 Anos atrás.

unable to build theme using maven plugin

Regular Member Postagens: 120 Data de Entrada: 09/07/14 Postagens Recentes
Hi All,

I am trying to build a custom theme using maven belo wis the my pom xml
Parent pox :
<liferay.version>6.2.10.16</liferay.version>
<liferay.maven.plugin.version>6.2.10.12</liferay.maven.plugin.version>
<maven.javadoc.skip>true</maven.javadoc.skip> <!-- otherwise gives the problem when doing maven release -->
<jdk.source.version>1.7</jdk.source.version>
<jdk.target.version>1.7</jdk.target.version>

Theme pox :
<liferay.theme.parent>classic</liferay.theme.parent>
<liferay.theme.type>vm</liferay.theme.type>

And it is giving css error :


INFO] Finished at: 2016-11-15T04:24:28-05:00 [INFO] Final Memory: 55M/431M [INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data [ERROR] Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.2.10.12:build-css (default) on project custom-theme: null: MojoExecutionException: InvocationTargetException: (SyntaxError) File to import not found or unreadable: compass/css3/user-interface.
[ERROR] Load paths:
[ERROR] <http://mj00app7777:8002/job/Liferay-R1-Snapshot/ws/themes/custom-theme/target/liferay-work/appServerPortalDir/html/css/common>
[ERROR] <http://mj00app7777:8002/job/Liferay-R1-Snapshot/ws/themes/custom-theme/target/custom-theme-1.33-SNAPSHOT/css>
[ERROR] <http://mj00app7777:8002/job/Liferay-R1-Snapshot/ws/themes/custom-theme/target/liferay-work/appServerPortalDir/WEB-INF/lib/sass>
[ERROR] /tmp/liferay/ruby/gems/compass-0.12.2/frameworks/blueprint/stylesheets


I am using maven :3.25
liferay 6.2.10.16 EE
Can any help me out?
thumbnail
Alexander Schmacks, modificado 7 Anos atrás.

RE: unable to build theme using maven plugin

New Member Mensagem: 1 Data de Entrada: 28/10/15 Postagens Recentes
Hello Naresh

I had the same problem with slightly different Liferay 6.2 versions:
<liferay.version>6.2.10.15</liferay.version>
<liferay.maven.plugin.version>6.2.10.13</liferay.maven.plugin.version>

and Java 8.

After some searching and reading it seemed to me that somehow the liferay-maven-plugin does some "magic" to enable Ruby/SASS processing during the build-css goal.
Some Ruby gems seem to be extracted to the local temp folder and made available under: ${java.io.tmpdir}/liferay/ruby/gems/, with "java.io.tmpdir" being the system's temp folder.
Source: https://web.liferay.com/de/web/kzhang/blog/-/blogs/resolve-the-sass-syntaxerror-invalid-css-error-in-liferay-6-1

What I did just for tests: remove that temp folder ("rm -rf /tmp/liferay/ruby/gems/" in my case) and watch what happens.

And here's what happened:
  • suddenly the build succeeded
  • nothing new got extracted or copied to the tmp/liferay/ruby folder, contrary to the description under the link above. But maybe the depicted workaround was abandoned in the time since April 2013.

I guess/hope that after three months you already found a solution for yourself.
But maybe this is at least helpful for others.

Regards,
Alex