This started when I installed Designer. Possibly because I’m using jee7, the themes and widgetsets had to go in a root folder called ejbModule. I can’t find any explanation anywhere about this folder, it’s just when I create a theme, that’s where it goes and the designer can’t use custom themes from anywhere but there. This is fine on my local machine, but if I do a maven package, the resulting war doesn’t have the themes. In fact, unless I change the warSourceDirectory to “${basedir}/ejbModule”, maven can’t even find the theme. It does compile it though, but in place, and it doesn’t get copied to the target folder.
This is very confusing. I’ve looked through the maven plugin source code(that’s where I got the warSourceDirectory idea), but it seems there’s some hardcoded directory stuff going on that I can’t access. Does anyone have any ideas?
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.plugin.version}</version>
<configuration>
<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
<webappDirectory>${basedir}/target/classes/VAADIN/widgetsets</webappDirectory>
<warSourceDirectory>${basedir}/ejbModule</warSourceDirectory>
<draftCompile>false</draftCompile>
<compileReport>false</compileReport>
<style>OBF</style>
<strict>true</strict>
</configuration>
<executions>
<execution>
<goals>
<goal>clean</goal>
<goal>resources</goal>
<goal>update-theme</goal>
<goal>update-widgetset</goal>
<goal>compile-theme</goal>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>