Maven站点部署问题 [英] Maven site deploy issue

查看:148
本文介绍了Maven站点部署问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 maven site-deploy 命令。我正在使用 maven 2.2.1 jdk 6

I am using the maven site-deploy command. I am using maven 2.2.1 with jdk 6.

我收到以下错误:

org.apache.maven.lifecycle.LifecycleExecutionException:Wagon协议''不支持目录复制
在org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
在org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
在org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
在org.apache。 maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
在org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
在org.apache.mave n.DefaultMaven.doExecute(DefaultMaven.java:328)
在org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
在org.apache.maven.cli.MavenCli.main( MavenCli.java:362)
在org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke( Method.java:597)
在org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
在org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
在org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
在org.codehaus.classworlds.Launcher.main(Launcher.java:375)
导致:org.apache .maven.plugin.MojoExecutionExcepti on:Wagon协议''不支持目录复制
在org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:165)
在org.apache.maven.plugin。 DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
在org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17更多

pom.xml具有以下分发管理部分:

The pom.xml has the following distribution Management section:

  <site>
        <id>app123</id>
       <url>/app/il3/apache-tomcat-7.0.57/webapps/build/app123</url>

    </site>

请指教。

谢谢
B

推荐答案

我很确定你只是无法配置你的maven < site> 标签。在 URL 从它所在的官方文档中:

I'm pretty sure you're just having trouble to configure your maven <site> tag. at the URL from the official documentation it states:


url:这是存储库元素的核心。它指定了用于将构建的工件(以及POM文件和校验和数据)传输到存储库的位置和传输协议。

url: This is the core of the repository element. It specifies both the location and the transport protocol to be used to transfer a built artifact (and POM file, and checksum data) to the repository.



你在你的网址上缺少你的传输协议。因此,

And you're missing your transport protocol on your URL. Therefore the


Wagon协议不支持目录复制

Wagon protocol '' doesn't support directory copying

以下是受支持协议的列表,其网站

Here is the list of supported protocols, from their site:


  • 文件

  • HTTP

  • HTTP

  • FTP

  • SSH / SCP

  • WebDAV

  • File
  • HTTP
  • HTTP lightweight
  • FTP
  • SSH/SCP
  • WebDAV

那么为什么不尝试指定一个有效的URL? < url> file:// var /< url>
这里还有一些示例和说明

So why don't you try specifying a valid URL? <url>file://var/<url> Here are some more examples and a explanation

这篇关于Maven站点部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆