A simple way to create a single file artifact using maven?

痞子三分冷 提交于 2019-12-10 11:47:38

问题


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

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

* Full code (XMLs) would be appreciated.


回答1:


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

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:deploy-file -DgroupId=com.xyz -DartifactId=zyx-component -Dversion=1.0.0 -Dfile=test.log -Dpackaging=log -Durl=http://my.nexus.url



来源:https://stackoverflow.com/questions/31807924/a-simple-way-to-create-a-single-file-artifact-using-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!