java - VAADIN cannot find themes when in productionMode -
i have custom theme vaadin application in src/main/webapp/vaadin/themes/mytheme/ files mytheme.scss , styles.scss. works fine when vaadin productionmode deployment parameter set false in web.xml. when set parameter true, vaadin cannot find resources theme , keeps complaining with:
requested resource [/vaadin/themes/mytheme/styles.css] not found filesystem or through class loader. add widgetset and/or theme jar classpath or add files webcontent/vaadin folder
i dont have /webcontent directory /webapp instead, since maven web-app project. tried putting vaadin folder to:
src/main/resources
src/main/webapp
src/main/webapp/web-inf
but nothing works production mode. suggenstions? thank in advance help.
you need add following goal pom.xml, compile .scss files .css files:
<plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>exec-maven-plugin</artifactid> <version>1.2.1</version> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>java</goal> </goals> <configuration> <classpathscope>compile</classpathscope> <mainclass>com.vaadin.sass.sasscompiler</mainclass> <arguments> <argument>src/main/webapp/vaadin/themes/heijunka/styles.scss</argument> <argument>src/main/webapp/vaadin/themes/heijunka/styles.css</argument> </arguments> </configuration> </execution> </executions> </plugin>
Comments
Post a Comment