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

As for a fast Maven profile where I skip most of the other tasks I have not found any documentation about a skip property for the vaadin-maven-plugin. Would it be possible to implement that in the way that most Maven plugins do it ?

ā€‹<profile> <id>fast</id> <properties> <!-- skip tests ... --> <skipTests>true</skipTests> <!-- skip compiling main --> <maven.main.skip>true</maven.main.skip> <!-- skip generating Javadoc --> <maven.javadoc.skip>true</maven.javadoc.skip> <!-- skip compiling Vaadin WidgetSet --> <!-- e.g. <vaadin.compile.skip>true</vaadin.compile.skip> --> </properties> </profile> Also at least 2 issues on GitHub refer to a missing online documentation, so maybe I missed out on some options that are available to skip compilation.

mvn com.vaadin:vaadin-maven-plugin:help
https://github.com/vaadin/maven-plugin/issues/99
https://github.com/vaadin/maven-plugin/issues/79

Hi Michael,
to skip widgetset compilation you can use
gwt.compiler.skip
property

HTH
Marc

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

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

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

Best regards
Marco

That looks like a nice workaround - I was hoping that Vaadin might add the skip flag.
Thank you!

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