mercredi 28 mars 2018

How to confiugure maven-enforcer-plugin to exclude some rule in test scope?

How to confiugure maven-enforcer-plugin to exclude some rule in test scope?

I have such a configuration:

<executions>
  <execution>
    <id>enforce-bytecode-version</id>
    <goals>
      <goal>enforce</goal>
    </goals>
    <configuration>
      <rules>
        <enforceBytecodeVersion>
          <maxJdkVersion>1.7</maxJdkVersion>
        </enforceBytecodeVersion>
      </rules>
      <fail>true</fail>
    </configuration>
  </execution>
</executions>

But I would like to check JDK version only for regular code and not for test scope.

Aucun commentaire:

Enregistrer un commentaire