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

java.lang.InstantiationException while deploying snapshot

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0-beta-1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Setting up a project to deploy a snapshot. From comments of others, I have a bad POM in one of my dependencies (haven't tracked that down yet).

      When I set the project's version to "3.0", the jar is deployed properly.

      When I set the project's version to "3.0-SNAPSHOT", I get the following stack dump:
      [INFO] ----------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ----------------------------------------------------------------------------
      [INFO] Diagnosis: Error configuring plugin for execution of 'deploy:deploy'.
      [INFO] ----------------------------------------------------------------------------
      [ERROR] Cause:
      org.apache.maven.plugin.MojoExecutionException: Error configuring plugin for execution of 'deploy:deploy'.
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:342)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:472)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:445)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:431)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:127)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:292)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: org.apache.maven.plugin.PluginConfigurationException: Unable to parse the created DOM for plugin configuration
      at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1022)
      at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:522)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:337)
      ... 15 more
      Caused by: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated
      at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:120)
      at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:83)
      at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:118)
      at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:55)
      at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1017)
      ... 17 more
      Caused by: java.lang.InstantiationException: org.apache.maven.artifact.repository.ArtifactRepository
      at java.lang.Class.newInstance0(Class.java:335)
      at java.lang.Class.newInstance(Class.java:303)
      at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:110)
      ... 21 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brettporter Brett Porter
                Reporter:
                allisonb Bob Allison
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: