mavenmaven-package

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


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.


Solution

  • 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