Browse Source

Compile default widgetset with maven plugin, fix unit cache

Change-Id: I0b0666e22e93ed1b36796365b1811eca863c9cb1
tags/7.7.0.alpha1
Teemu Suo-Anttila 8 years ago
parent
commit
60968e491f
4 changed files with 25 additions and 47 deletions
  1. 19
    46
      client-compiled/pom.xml
  2. 5
    0
      pom.xml
  3. 0
    1
      themes/pom.xml
  4. 1
    0
      uitest/pom.xml

+ 19
- 46
client-compiled/pom.xml View File

@@ -57,52 +57,6 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<classpathScope>compile</classpathScope>
<executable>${java.home}/bin/java</executable>
<arguments>
<!-- TODO: Do we need these? -->
<!-- <jvmarg value="-Xss8M" /> -->
<!-- <jvmarg value="-XX:MaxPermSize=256M" /> -->
<jvmarg value="-Djava.awt.headless=true" />
<argument>-Dgwt.persistentunitcachedir=${project.build.directory}/compile</argument>
<argument>-DvFailIfNotSerializable=true</argument>

<argument>-classpath</argument>
<classpath />

<argument>com.google.gwt.dev.Compiler</argument>

<argument>-workDir</argument>
<argument>${project.build.directory}/compile</argument>
<argument>-logLevel</argument>
<argument>TRACE</argument>
<argument>-war</argument>
<!-- This will write the result directly to target/classes for packaging -->
<argument>${project.build.outputDirectory}/VAADIN/widgetsets/</argument>
<argument>-style</argument>
<argument>${widgetset.style}</argument>
<argument>-localWorkers</argument>
<argument>${widgetset.local.workers}</argument>

<argument>-strict</argument>

<!-- Move unnecessary stuff to compile folder -->
<argument>-deploy</argument>
<argument>${project.build.directory}/compile</argument>
<argument>-extra</argument>
<argument>${project.build.directory}/compile</argument>

<argument>${widgetset.name}</argument>
</arguments>
</configuration>
</execution>

<execution>
<id>generate-export-package</id>
<phase>package</phase>
@@ -129,6 +83,25 @@
</executions>
</plugin>

<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<configuration>
<modules>
<module>com.vaadin.DefaultWidgetSet</module>
</modules>
<webappDirectory>${project.build.outputDirectory}/VAADIN/widgetsets</webappDirectory>
<persistentunitcachedir>${project.build.directory}/gwt-unitCache</persistentunitcachedir>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>


<plugin>
<groupId>org.apache.felix</groupId>

+ 5
- 0
pom.xml View File

@@ -165,6 +165,11 @@
<artifactId>maven-source-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.plugin.version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>

+ 0
- 1
themes/pom.xml View File

@@ -77,7 +77,6 @@
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.plugin.version}</version>
<configuration>
<compressTheme>true</compressTheme>
<warSourceDirectory>${project.build.outputDirectory}</warSourceDirectory>

+ 1
- 0
uitest/pom.xml View File

@@ -272,6 +272,7 @@
<configuration>
<warSourceDirectory>${project.build.directory}/compile-themes</warSourceDirectory>
<webappDirectory>${project.build.outputDirectory}/VAADIN/widgetsets</webappDirectory>
<persistentunitcachedir>${project.build.directory}/gwt-unitCache</persistentunitcachedir>
</configuration>
<executions>
<execution>

Loading…
Cancel
Save