You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/12/09 11:40:00 UTC
[jira] [Commented] (MNG-7355) Error with minify
[ https://issues.apache.org/jira/browse/MNG-7355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17456362#comment-17456362 ]
Michael Osipov commented on MNG-7355:
-------------------------------------
Please provide a full stacktrace and a sample reproducer.
> Error with minify
> -----------------
>
> Key: MNG-7355
> URL: https://issues.apache.org/jira/browse/MNG-7355
> Project: Maven
> Issue Type: Bug
> Components: Core
> Affects Versions: 4.0.0-alpha-1
> Environment: Linux ITPC118 5.15.5-arch1-1 #1 SMP PREEMPT Thu, 25 Nov 2021 22:09:33 +0000 x86_64 GNU/Linux
> (Maven 4 version)
> $ /home/plitter/.build/maven4/target/bin/mvn --version
> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
> Apache Maven 4.0.0-alpha-1-SNAPSHOT (3a06530dbce82e2054afa3cc4c81631910474bd0)
> Maven home: /home/plitter/.build/maven4/target
> Java version: 1.8.0_292, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-openjdk/jre
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "linux", version: "5.15.5-arch1-1", arch: "amd64", family: "unix"
> (Maven 3 version)
> $ mvn --version
> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
> Apache Maven 3.8.3 (NON_CANONICAL)
> Maven home: /opt/maven
> Java version: 1.8.0_292, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-openjdk/jre
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "linux", version: "5.15.5-arch1-1", arch: "amd64", family: "unix"
> Reporter: Odne Hellebø
> Priority: Minor
> Attachments: image (15).png, image (16).png
>
>
> I'm trying to build a large project with maven 4, and have gotten an error
> {code:sh}
> Failed to execute goal com.samaxes.maven:minify-maven-plugin:1.7.4:minify (default-minify) on project core: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/IOUtil: org.codehaus.plexus.util.IOUtil -> [Help 1]{code}
> I tried deleting my {code:sh}.m2{code} folder and build with -U. Still same error. Then I checked that I have org/codehaus... were in the .m2 folder, and that it had org.codehaus.plexus.util.IOUtil in the jar (see pictures).
> {code:pom}
> <plugin>
> <groupId>com.samaxes.maven</groupId>
> <artifactId>minify-maven-plugin</artifactId>
> <version>1.7.4</version>
> <executions>
> <execution>
> <id>default-minify</id>
> <configuration>
> <charset>UTF-8</charset>
> <cssSourceDir>.</cssSourceDir>
> <cssSourceFiles>
> <cssSourceFile>surveillance/style.css</cssSourceFile>
> </cssSourceFiles>
> <cssFinalFile>style.demo.css</cssFinalFile>
> <jsSourceDir>.</jsSourceDir>
> <jsSourceFiles>
> <jsSourceFile>surveillance/index.js</jsSourceFile>
> <jsSourceFile>surveillance/stats.js</jsSourceFile>
> </jsSourceFiles>
> <jsFinalFile>script.demo.js</jsFinalFile>
> <jsEngine>CLOSURE</jsEngine>
> </configuration>
> <goals>
> <goal>minify</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
> Am I doing something wrong? It was working in maven 3.8.3.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)