enable dependency:analyze-only by default
@@ -135,6 +135,7 @@ limitations under the License.
<testng.version>6.11</testng.version>
<javadoc-plugin.version>2.10.4</javadoc-plugin.version>
<compiler-plugin.version>3.6.1</compiler-plugin.version>
+ <dependency-plugin.version>3.0.1</dependency-plugin.version>
<release-plugin.version>2.5.3</release-plugin.version>
<checkstyle-plugin.version>2.17</checkstyle-plugin.version>
<checkstyle.version>8.1</checkstyle.version>
@@ -171,6 +172,11 @@ limitations under the License.
<build>
<pluginManagement>
<plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>${dependency-plugin.version}</version>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@@ -384,6 +390,25 @@ limitations under the License.
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>${dependency-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>analyze</id>
+ <!-- default phase is verify -->
+ <goals>
+ <goal>analyze-only</goal>
+ </goals>
+ <configuration>
+ <failOnWarning>true</failOnWarning>
+ <!-- workaround our default slf4j-nop dependency -->
+ <ignoreNonCompile>true</ignoreNonCompile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<extensions>
