Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7355

Error with minify

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Information Provided
    • 3.0-alpha-1
    • None
    • Core
    • None

    Description

      I'm trying to build a large project with maven 4, and have gotten an error

      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]

      I tried deleting my

      .m2

      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).

      Unable to find source-code formatter for language: pom. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
                  <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>
      

      Am I doing something wrong? It was working in maven 3.8.3.

      Attachments

        1. image (15).png
          114 kB
          Odne Hellebø
        2. image (16).png
          127 kB
          Odne Hellebø
        3. foobar.zip
          4 kB
          Odne Hellebø
        4. wholeBuild.log
          2 kB
          Odne Hellebø

        Activity

          People

            michael-o Michael Osipov
            odnehel@gmail.com Odne Hellebø
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: