Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

skip property for vaadin-maven-plugin to skip compilation of WidgetSet

Michael Benz
5 years ago May 24, 2017 1:50pm
Marco Collovati
5 years ago May 24, 2017 3:51pm
Michael Benz
5 years ago May 26, 2017 6:01am

Tried the parameter but still the only part that is not skipped is the vaadin-maven-plugin:
vaadin-maven-plugin:8.1.0.alpha7:compile-theme

<profile>
    <id>fast</id>
    <properties>
        <!-- skip all tests -->
        <skipTests>true</skipTests>
        <!-- skip generating the Javadoc -->
        <maven.javadoc.skip>true</maven.javadoc.skip>
        <!-- skip the Maven source procedure -->
        <source.skip>true</source.skip>
        <!-- skip the Git commit ID plugin -->
        <git.commit-id.skip>true</git.commit-id.skip>
        <!-- skip the license check (for e.g. GPL) -->
        <skipLicenseCheck>true</skipLicenseCheck>
        <!-- skip compiling the Vaadin widget set -->
        <gwt.compiler.skip>true</gwt.compiler.skip>
        <!-- skip compiling main java -->
        <maven.main.skip>true</maven.main.skip>
    </properties>
</profile>

Checked with a simple
`mvn site -Pfast`

Marco Collovati
5 years ago May 26, 2017 4:02pm

Hi,
gwt.compiler.skip only skips widgetset compilation. 
AFAIK there is no a property to skip the whole plugin but as a workaround you can bind the execution to none phase in your profile

<profile>
    <id>fast</id>
    <properties>
        <!-- skip all tests -->
        <skipTests>true</skipTests>
        <!-- skip generating the Javadoc -->
        <maven.javadoc.skip>true</maven.javadoc.skip>
        <!-- skip the Maven source procedure -->
        <source.skip>true</source.skip>
        <!-- skip the Git commit ID plugin -->
        <git.commit-id.skip>true</git.commit-id.skip>
        <!-- skip the license check (for e.g. GPL) -->
        <skipLicenseCheck>true</skipLicenseCheck>
        <!-- skip compiling the Vaadin widget set -->
        <gwt.compiler.skip>true</gwt.compiler.skip>
        <!-- skip compiling main java -->
        <maven.main.skip>true</maven.main.skip>
    </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-maven-plugin</artifactId>
            <version>${vaadin.plugin.version}</version>
            <executions>
              <execution>
                <phase>none</phase>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
</profile>

HTH
Marco

 

Michael Benz
5 years ago May 26, 2017 4:14pm
Marco Collovati
5 years ago May 26, 2017 4:18pm

If you think it is worth it you can open an issue https://github.com/vaadin/maven-plugin/issues

Best regards
Marco

Michael Benz
5 years ago May 29, 2017 6:59am

Seems like the vaadin-maven-plugin has not been updated for quite some time and needs a new documentation home as well. So I just added the feature request in case someone picks up development.

Feature Request: Option to skip Vaadin theme compilation in vaadin-maven-plugin
https://github.com/vaadin/maven-plugin/issues/101