Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-21449

Unable to deploy with atlas-cli

    XMLWordPrintable

Details

    Description

      When I deploy my plugin with atlas-cli, I get an exception
      java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo

      This error occurs when I call "pi" and "deploy". When I call "pi" this error occurs on the last step (which I guess is the deploy)
      When I created my project, everything was working fine until I killed atlas-run. after that, whenever I try to compile the application I got this error.

      I've read the issues:
      http://jira.atlassian.com/browse/JRA-19593
      http://confluence.atlassian.com/display/DEVNET/atlas-cli
      http://confluence.atlassian.com/display/DEVNET/If+you+change+pom.xml%2C+you+may+need+to+restart+the+atlas-cli
      https://studio.atlassian.com/browse/AMPS-101
      and this doesn't seem to be related.

      Here's the stack trace.

      maven2> deploy
      [INFO] Executing: org.apache.maven.plugins:maven-deploy-plugin [deploy]
      Downloading: https://m2proxy.atlassian.com/repository/public/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.pom
      6K downloaded (maven-deploy-plugin-2.4.pom)
      Downloading: https://m2proxy.atlassian.com/repository/public/org/apache/maven/plugins/maven-plugins/11/maven-plugins-11.pom
      10K downloaded (maven-plugins-11.pom)
      Downloading: https://m2proxy.atlassian.com/repository/public/org/apache/maven/plugins/maven-deploy-plugin/2.4/maven-deploy-plugin-2.4.jar
      33K downloaded (maven-deploy-plugin-2.4.jar)
      [ERROR] Unable to complete running command: deploy
      java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
      at org.twdata.maven.cli.commands.ExecuteGoalCommand.run(ExecuteGoalCommand.java:111)
      at org.twdata.maven.cli.CliShell.interpretCommand(CliShell.java:42)
      at org.twdata.maven.cli.CliShell.run(CliShell.java:27)
      at org.twdata.maven.cli.AbstractCliMojo.displayShell(AbstractCliMojo.java:144)
      at org.twdata.maven.cli.AbstractCliMojo.access$000(AbstractCliMojo.java:22)
      at org.twdata.maven.cli.AbstractCliMojo$1.run(AbstractCliMojo.java:116)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
      at org.shaded.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:100)
      at org.twdata.maven.cli.MojoCall.run(MojoCall.java:31)
      at org.twdata.maven.cli.commands.ExecuteGoalCommand.runMojo(ExecuteGoalCommand.java:125)
      at org.twdata.maven.cli.commands.ExecuteGoalCommand.run(ExecuteGoalCommand.java:104)
      ... 5 more
      Caused by: org.apache.maven.plugin.PluginConfigurationException: Error configuring: org.apache.maven.plugins:maven-deploy-plugin. Reason: Unable to parse the created DOM for plugin configuration
      at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1356)
      at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:717)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:461)
      at org.shaded.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:98)
      ... 8 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:121)
      at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:88)
      at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
      at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
      at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
      at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1350)
      ... 11 more
      Caused by: java.lang.InstantiationException: org.apache.maven.artifact.repository.ArtifactRepository
      at java.lang.Class.newInstance0(Class.java:340)
      at java.lang.Class.newInstance(Class.java:308)
      at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:111)
      ... 16 more

      regards.

      Attachments

        Activity

          People

            Unassigned Unassigned
            7acdb863492c Benoit Goyette
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: