Fórum
maven - Sass in portlet
Alain Dresse, modificado 10 Anos atrás.
maven - Sass in portlet
Junior Member Postagens: 95 Data de Entrada: 18/07/11 Postagens Recentes
I have just switched from ant to maven, and have one pretty string issue: it seems that the sassToCSS builder is not used for portlets (only for themes).
With ant, all css files in portlets get processed to create .sass-cache.
Am I missing something or is sass to css missing in maven for portlets ?
Best regards,
Alain
With ant, all css files in portlets get processed to create .sass-cache.
Am I missing something or is sass to css missing in maven for portlets ?
Best regards,
Alain
Juan Gonzalez, modificado 10 Anos atrás.
RE: maven - Sass in portlet
Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Hi Alain,
seems to be a known issue.
Can you change the pom.xml so the css are processed, as Jose says here?
https://issues.liferay.com/browse/MAVEN-91?focusedCommentId=352145&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-352145
seems to be a known issue.
Can you change the pom.xml so the css are processed, as Jose says here?
https://issues.liferay.com/browse/MAVEN-91?focusedCommentId=352145&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-352145
Alain Dresse, modificado 10 Anos atrás.
RE: maven - Sass in portlet
Junior Member Postagens: 95 Data de Entrada: 18/07/11 Postagens Recentes
Thanks for the quick reply Juan.
This brings up the next issue (which I had when launching the build-css goal manually) :
Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.1.2:build-css (default) on project bamboost-project-portlet-service: Source '/home/liferay/maven/bamboost-project/bamboost-project-portlet-service/src/main/webapp' does not exist -> [Help 1]
I'm using a servicebuilder archetype as you see.
Best regards,
Alain
This brings up the next issue (which I had when launching the build-css goal manually) :
Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.1.2:build-css (default) on project bamboost-project-portlet-service: Source '/home/liferay/maven/bamboost-project/bamboost-project-portlet-service/src/main/webapp' does not exist -> [Help 1]
I'm using a servicebuilder archetype as you see.
Best regards,
Alain
Alain Dresse, modificado 10 Anos atrás.
RE: maven - Sass in portlet
Junior Member Postagens: 95 Data de Entrada: 18/07/11 Postagens Recentes
And if I move the plugin execution to the porlet module, I get
[ERROR] Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.1.2:build-css (default) on project bamboost-project-portlet: null: MojoExecutionException: InvocationTargetException: ExceptionInInitializerError: NullPointerException -> [Help 1]
The only workaround I have is to install compass and transpile the sass files to css, in a .sass-cache subfolder (seems to work)
Best regards,
Alain
[ERROR] Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.1.2:build-css (default) on project bamboost-project-portlet: null: MojoExecutionException: InvocationTargetException: ExceptionInInitializerError: NullPointerException -> [Help 1]
The only workaround I have is to install compass and transpile the sass files to css, in a .sass-cache subfolder (seems to work)
Best regards,
Alain