maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Tran <dant...@gmail.com>
Subject Re: parameters 'url' for goal org.codehaus.mojo:wagon-maven-plugin:1.0:upload are missing or invalid
Date Wed, 01 Apr 2015 15:48:08 GMT
org.apache.maven.wagon:wagon-maven-plugin:2.8: Plugin    is wrong, how did
you get version 2.8?

On Wed, Apr 1, 2015 at 2:40 AM, Anton Hughes <kurrent93@gmail.com> wrote:

> Hi
>
> I am trying to use wagon to copy my war file to a server.
>
> My pom contains the following:
>
>          <plugin>
>            <groupId>org.apache.maven.wagon</groupId>
>        <artifactId>wagon-maven-plugin</artifactId>
>        <version>${maven.wagon.version}</version>
>        <dependencies>
>        <dependency>
>         <groupId>org.apache.maven.wagon</groupId>
>         <artifactId>wagon-ssh</artifactId>
>         <version>${maven.wagon.version}</version>
>         </dependency>
>        </dependencies>
>        <configuration>
>
>
> <fromFile>${project.build.directory}/${project.build.finalName}.war</fromFile>
>          <excludes>*.*</excludes>
>          <url>scp://localhost</url>
>
> <toDir>/opt/jboss/jboss-as-7.1.1.Final/standalone/deployments</toDir>
>
>        </configuration>
>        <executions>
>          <execution>
>            <id>upload-war-to-server</id>
>            <phase>upload</phase>
>            <goals>
>              <goal>upload-single</goal>
>            </goals>
>          </execution>
>        </executions>
>         </plugin>
>
> Yet, when I run* mvn wagon:upload -Dmaven.test.skip=true  -e *I get the
> following error:
>
> [WARNING] The POM for org.apache.maven.wagon:wagon-maven-plugin:jar:2.8 is
> missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for
> org.apache.maven.wagon:wagon-maven-plugin:2.8: Plugin
> org.apache.maven.wagon:wagon-maven-plugin:2.8 or one of its dependencies
> could not be resolved: Failed to read artifact descriptor for
> org.apache.maven.wagon:wagon-maven-plugin:jar:2.8
> [INFO]
> [INFO] --- wagon-maven-plugin:1.0:upload (default-cli) @ app.ui ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.663s
> [INFO] Finished at: Wed Apr 01 11:35:00 CEST 2015
> [INFO] Final Memory: 11M/303M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.codehaus.mojo:wagon-maven-plugin:1.0:upload (default-cli) on project
> app.ui: The parameters 'url' for goal
> org.codehaus.mojo:wagon-maven-plugin:1.0:upload are missing or invalid ->
> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.codehaus.mojo:wagon-maven-plugin:1.0:upload (default-cli) on
> project app.ui: The parameters 'url' for goal
> org.codehaus.mojo:wagon-maven-plugin:1.0:upload are missing or invalid
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:221)
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> 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.PluginParameterException: The parameters
> 'url' for goal org.codehaus.mojo:wagon-maven-plugin:1.0:upload are missing
> or invalid
> at
>
> org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:576)
> at
>
> org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:529)
> at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [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/PluginParameterException
> anton@anton-K93SV:~/git/app.ui$ mvn wagon:upload -Dmaven.test.skip=true
> -e
>
> I have tried with several variations of the url, such as including
> username, including port. All result in the same error.
>
> In the error message there is *Failed to retrieve plugin descriptor for
> org.apache.maven.wagon. *
> I am not behind a proxy, and cannot think of any other reasons why this may
> occur.
>
> Any help is appreciated.
>
> Thanks and regards
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message