使用ftp上传的maven部署:我只想上传war文件,但上传更多文件 [英] maven deployment with ftp uploading: I want to upload just the war file but is uploading more files

查看:686
本文介绍了使用ftp上传的maven部署:我只想上传war文件,但上传更多文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完全按照此处指定的方式执行指示:

http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ftp.html



(唯一的区别是我使用的是2.4版的wagon-ftp)。



然后执行


mvn deploy


我只想上传单个war文件,但它上传了其他几个文件,包括pom,md5,sha1扩展名,并将它们隐藏在我的一个源目录下。



我一直在寻找合适的配置修改此行为,但没有运气。

解决方案

wagon-plugins用于将工件部署到存储库,存储库需要所有其他文件起作用。如果您正在尝试将.war文件ftp到服务器进行部署,请为您的服务器使用正确的插件,而不是使用无盖货车插件。



插件以开始

lockquote

为了使用FTP部署工件...

mvn deploy 用于将工件部署到存储库,因此存储库工作所需的所有其他文件也会上载。

I am following instructions exactly as specified here:

http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ftp.html

(The only difference is that I'm using version 2.4 of wagon-ftp).

and then execute

mvn deploy

I just want to upload a single war file, however it uploads several other files, with pom, md5, sha1 extensions and buries them under one of my source directories.

I've been trying to look for the appropriate configuration to modify this behaviour with no luck yet.

解决方案

wagon-plugins are for deploying artifacts to repositories, repositories need all those other files to function. If you are trying to ftp your .war file to a server for deployment, then use the correct plugin for your server, not the wagon-plugin.

The documentation for that plug starts off with

In order to deploy artifacts using FTP ...

mvn deploy is for deploying artifacts to a repository, thus all the other files that are needed for the repository to function are uploaded as well.

这篇关于使用ftp上传的maven部署:我只想上传war文件,但上传更多文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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