使用Maven创建单个文件工件的简单方法? [英] A simple way to create a single file artifact using maven?

查看:92
本文介绍了使用Maven创建单个文件工件的简单方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个文件工件.不管它是否被存档文件包装.

I'd like to create an single file artifact. Don't care if it's wrapped by an archive file.

是否可以在不创建新的maven插件或不使用其他程序集xml文件的情况下做到这一点?

Is there a way to do it without creating a new maven-plugin or without using an additional assembly xml file?

*希望使用完整代码(XML).

* Full code (XMLs) would be appreciated.

推荐答案

xml参考可以在以下位置找到: 如何指定要在Maven中部署的文件

xml reference can be found here: How to specify files to be deployed in Maven

微调和命令行实验: mvn install:安装文件-DgroupId = com.xyz -DartifactId = zyx-component -Dversion = 1.0.0 -Dfile = test.log -Dpackaging = log

fine tuning and command line experimentation: mvn install:install-file -DgroupId=com.xyz -DartifactId=zyx-component -Dversion=1.0.0 -Dfile=test.log -Dpackaging=log

mvn deploy:部署文件-DgroupId = com.xyz -DartifactId = zyx-component -Dversion = 1.0.0 -Dfile = test.log -Dpackaging = log -Durl =

mvn deploy:deploy-file -DgroupId=com.xyz -DartifactId=zyx-component -Dversion=1.0.0 -Dfile=test.log -Dpackaging=log -Durl=http://my.nexus.url

这篇关于使用Maven创建单个文件工件的简单方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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