allegro / grunt-maven-plugin

Grunt + Maven integration done right
Other
213 stars 32 forks source link

Add option to skipTests #66

Closed piotrppe closed 9 years ago

piotrppe commented 9 years ago

Is it possible to skip tests for grunt goal (when running maven with -DskipTests)?

I tried this:

      <plugin>
        <groupId>pl.allegro</groupId>
        <artifactId>grunt-maven-plugin</artifactId>
        <version>1.5.0</version>
        <configuration>
          <sourceDirectory>${basedir}</sourceDirectory>
          <jsSourceDirectory>src/main/resources/path/ng</jsSourceDirectory>
          <showColors>true</showColors>
        </configuration>
        <executions>
          <execution>
            <id>grunt-compile</id>
            <phase>compile</phase>
            <goals>
              <goal>create-resources</goal>
              <goal>npm</goal>
              <goal>grunt</goal>
            </goals>
            <configuration>
              <target>default-no-tests</target>
            </configuration>
          </execution>
          <execution>
            <id>grunt-test</id>
            <phase>test</phase>
            <goals>
              <goal>grunt</goal>
            </goals>
            <configuration>
              <target>test-only</target>
              <skipTests>${skipTests}</skipTests>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>

but right now plugin doesn't seem to respect 'skipTests' option.

adamdubiel commented 9 years ago

See #43 :)

adamdubiel commented 9 years ago

And this: https://github.com/allegro/grunt-maven-plugin/wiki/Distributing-grunt-tasks-across-multiple-Maven-lifecycle-phases