Skip to content

Commit 00f7fc8

Browse files
committed
build: add a workaround for minify-maven-plugin to make it work with Maven 3.9+
minify-maven-plugin has started to fail on Maven 3.9: Error: Failed to execute goal com.samaxes.maven:minify-maven-plugin:1.7.6:minify (minify-resources) on project mystamps: Execution minify-resources of goal com.samaxes.maven:minify-maven-plugin:1.7.6:minify failed: A required class was missing while executing com.samaxes.maven:minify-maven-plugin:1.7.6:minify: org/codehaus/plexus/util/DirectoryScanner Because newer Maven versions doesn't provide plexus-utils anymore. Fix #1734
1 parent 64f8a84 commit 00f7fc8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pom.xml

+12
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,18 @@
773773
<phase>generate-resources</phase>
774774
</execution>
775775
</executions>
776+
<dependencies>
777+
<!--
778+
A workaround to make the plugin work with Maven 3.9+:
779+
explicitly add a dependency on required library (that was auto-injected previously).
780+
See: https://github.com/samaxes/minify-maven-plugin/pull/176
781+
-->
782+
<dependency>
783+
<groupId>org.codehaus.plexus</groupId>
784+
<artifactId>plexus-utils</artifactId>
785+
<version>3.0.24</version>
786+
</dependency>
787+
</dependencies>
776788
</plugin>
777789

778790
<plugin>

0 commit comments

Comments
 (0)