8000 Error when building the project: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/IOUtil · Issue #177 · samaxes/minify-maven-plugin · GitHub
[go: up one dir, main page]

Skip to content

Error when building the project: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/IOUtil #177

Open

Description

@sroui

Hello, I am getting this error when trying to build a project by running the command mvn clean package. The project uses minify maven plugin.

([ERROR] Failed to execute goal com.samaxes.maven:minify-maven-plugin:1.7.6:minify (default-minify) on project Journl: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/IOUtil: org.codehaus.plexus.util.IOUtil -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.samaxes.maven:minify-maven-plugin:1.7.6:minify (default-minify) on project Journl: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/IOUtil)

mvn -v result:

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
Maven home: /opt/homebrew/Cellar/maven/3.9.4/libexec
Java version: 17.0.7, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk@17/17.0.7/libexec/openjdk.jdk/Contents/Home
Default locale: en_MA, platform encoding: UTF-8
OS name: "mac os x", version: "13.6", arch: "aarch64", family: "mac"

the compiler configuration:

  <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>3.11.0</version>
      <configuration>

          <source>17</source>
          <target>17</target>
          <compilerArgs>
              <arg>-XDignore.symbol.file</arg>
          </compilerArgs>
          <fork>true</fork>

          <excludes>
          </excludes>
      </configuration>

      <executions>
          <execution>
              <id>default-testCompile</id>
              <phase>test-compile</phase>
              <configuration>
                  <testExcludes>
                      <testExclude>**/*.java</testExclude>
                  </testExcludes>
                  <skip>true</skip>
              </configuration>
              <goals>
                  <goal>testCompile</goal>
              </goals>
          </execution>
      </executions>
  </plugin>

Activity

  1. sroui commented on Sep 30, 2023

    @sroui
    Author

    Origin of the problem: Compatibility issues with Maven 3.9.x - details in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0