テスト範囲でいくつかのルールを除外するように maven-enforcer-plugin を設定する方法は?
私はそのような構成を持っています:
<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>
しかし、テスト範囲ではなく、通常のコードについてのみJDKのバージョンを確認したいと思います。