问题
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