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> 

source: http://dev.vaadin.com/ticket/10291


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -