1

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.

AlikElzin-kilaka
  • 34,335
  • 35
  • 194
  • 277
  • The reason I don't want to create an assembly file is because it bloats the folder. Instead of just a single file, which is the most important thing, I'll have a `pom.xml` and `assembly.xml` to explain how to package it. Looks like way too much effort. – AlikElzin-kilaka Aug 04 '15 at 11:22
  • Whoever downvoted, please explain so others could learn from your feedback. – AlikElzin-kilaka Aug 04 '15 at 11:40
  • What kind of artifact would you like to create ? An jar ? Or a ZIP file? I don't know why you are talking about a assembly.xml ? – khmarbaise Aug 04 '15 at 12:52
  • @khmarbaise, doesn't matter what archive it is. If not assembly, what do you suggest? – AlikElzin-kilaka Aug 05 '15 at 06:11

1 Answers1

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

Community
  • 1
  • 1
roiros
  • 96
  • 6