Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None

      Description

      Running mvn dependency:analyze fails with the follwing exception:
      
      [ERROR] Failed to execute goal
      org.apache.maven.plugins:maven-dependency-plugin:3.0.2:analyze
      (default-cli) on project utils: Execution default-cli of goal
      org.apache.maven.plugins:maven-dependency-plugin:3.0.2:analyze failed.:
      IllegalArgumentException -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
      goal org.apache.maven.plugins:maven-dependency-plugin:3.0.2:analyze
      (default-cli) on project utils: Execution default-cli of goal
      org.apache.maven.plugins:maven-dependency-plugin:3.0.2:analyze failed.
      at
      org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
      at
      org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
      at
      org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
      at
      org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
      at
      org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
      at
      org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at
      org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
      Method)
      at
      java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at
      java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at
      org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at
      org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at
      org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
      default-cli of goal
      org.apache.maven.plugins:maven-dependency-plugin:3.0.2:analyze failed.
      at
      org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
      at
      org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      ... 20 more
      Caused by: java.lang.IllegalArgumentException
      at org.objectweb.asm.ClassReader.<init>(Unknown Source)
      at org.objectweb.asm.ClassReader.<init>(Unknown Source)
      at org.objectweb.asm.ClassReader.<init>(Unknown Source)
      at
      org.apache.maven.shared.dependency.analyzer.asm.DependencyClassFileVisitor.visitClass(DependencyClassFileVisitor.java:65)
      at
      org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.visitClass(ClassFileVisitorUtils.java:163)
      at
      org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.acceptDirectory(ClassFileVisitorUtils.java:143)
      at
      org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.accept(ClassFileVisitorUtils.java:71)
      at
      org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer.analyze(ASMDependencyAnalyzer.java:50)
      at
      org.apache.maven.shared.dependency.analyzer.DefaultProjectDependencyAnalyzer.buildDependencyClasses(DefaultProjectDependencyAnalyzer.java:211)
      at
      org.apache.maven.shared.dependency.analyzer.DefaultProjectDependencyAnalyzer.buildDependencyClasses(DefaultProjectDependencyAnalyzer.java:198)
      at
      org.apache.maven.shared.dependency.analyzer.DefaultProjectDependencyAnalyzer.analyze(DefaultProjectDependencyAnalyzer.java:74)
      at
      org.apache.maven.plugins.dependency.analyze.AbstractAnalyzeMojo.checkDependencies(AbstractAnalyzeMojo.java:298)
      at
      org.apache.maven.plugins.dependency.analyze.AbstractAnalyzeMojo.execute(AbstractAnalyzeMojo.java:250)
      at
      org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      ... 21 more
      [ERROR]
      [ERROR]
      [ERROR] For more information about the errors and possible solutions,
      please read the following articles:
      [ERROR] [Help 1]
      http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the
      command
      
      mvn --verison
      Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426;
      2017-04-03T21:39:06+02:00)
      Maven home: /home/omit/bin/maven
      Java version: 9.0.4, vendor: Oracle Corporation
      Java home: /usr/lib/jvm/java-9-oracle
      Default locale: en_US, platform encoding: UTF-8
      OS name: "linux", version: "4.13.0-37-generic", arch: "amd64", family:
      "unix"
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                khmarbaise Karl Heinz Marbaise
                Reporter:
                khmarbaise Karl Heinz Marbaise
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: