Skip to content

Commit 7344241

Browse files
committed
Skip the maven-dependency-plugin analyze check due to false positive
Reports a used dependency as unused only on Windows 2022 CI runs
1 parent 244a3a3 commit 7344241

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

java/maven/module-info-compiler-maven-plugin/pom.xml

+22-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
<groupId>org.glavo</groupId>
4040
<artifactId>module-info-compiler</artifactId>
4141
<version>2.0</version>
42-
<type>jar</type>
4342
</dependency>
4443
<dependency>
4544
<groupId>org.apache.maven</groupId>
@@ -103,6 +102,28 @@
103102
</plugins>
104103
</pluginManagement>
105104
<plugins>
105+
<plugin>
106+
<groupId>org.apache.maven.plugins</groupId>
107+
<artifactId>maven-dependency-plugin</artifactId>
108+
<executions>
109+
<execution>
110+
<id>analyze</id>
111+
<phase>verify</phase>
112+
<goals>
113+
<goal>analyze-only</goal>
114+
</goals>
115+
<configuration>
116+
<ignoredDependencies>
117+
<!--
118+
This dependency is incorrectly being reported as unused
119+
on Windows 2022 CI runs.
120+
-->
121+
<ignoredDependency>org.glavo:module-info-compiler</ignoredDependency>
122+
</ignoredDependencies>
123+
</configuration>
124+
</execution>
125+
</executions>
126+
</plugin>
106127
<plugin>
107128
<groupId>org.apache.maven.plugins</groupId>
108129
<artifactId>maven-plugin-plugin</artifactId>

java/maven/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136
<groupId>org.apache.maven.plugins</groupId>
137137
<artifactId>maven-compiler-plugin</artifactId>
138138
<configuration>
139+
<encoding>UTF-8</encoding>
139140
<source>1.8</source>
140141
<target>1.8</target>
141142
<maxmem>2048m</maxmem>

0 commit comments

Comments
 (0)