Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sroui opened this issue Sep 29, 2023 · 1 comment

Comments

@sroui
Copy link

sroui commented Sep 29, 2023

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>
@sroui
Copy link
Author

sroui commented Sep 30, 2023

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant