minify-maven-plugin icon indicating copy to clipboard operation
minify-maven-plugin copied to clipboard

minify fails when using maven4

Open plitter opened this issue 3 years ago • 3 comments

I got help from here and it seems to be an easy fix where you add dependency on plexus-utils. Sample test is the foobar.zip. https://issues.apache.org/jira/browse/MNG-7355

plitter avatar Dec 10 '21 08:12 plitter

This also now happens with Maven 3.9, where plexus-utils was removed #176

Quick fix is to add a dependency to the plugin like this:

				<plugin>
					<groupId>com.samaxes.maven</groupId>
					<artifactId>minify-maven-plugin</artifactId>
					<version>${minify-maven-plugin.version}</version>
					<dependencies>
						<!-- https://github.com/samaxes/minify-maven-plugin/pull/176 -->
						<dependency>
							<groupId>org.codehaus.plexus</groupId>
							<artifactId>plexus-utils</artifactId>
							<version>${plexus-utils.version}</version>
						</dependency>
					</dependencies>
				</plugin>

blutorange avatar Feb 15 '23 08:02 blutorange

Is there a release timeline for this fix?

dsueltenfuss avatar May 08 '23 16:05 dsueltenfuss

For people stumbling upon this error and looking for a quick solution:

<plugin>
    <groupId>com.7p-group</groupId>
    <artifactId>minify-maven-plugin</artifactId>
    <version>1.7.8</version>
</plugin>

This issue is fixed in the forked repo https://github.com/sevenprinciples/minify-maven-plugin

sasuw avatar May 23 '23 14:05 sasuw