Thursday, November 3, 2016

Maven Snippets

I find maven documentation cryptic to read and hard to understand, even after years of development this aspect of Maven still remains same to me, most of the time i copy snippets from older projects to get things done, Below you can find some common snippets you might need to use time to time in your projects.

1. Deploying Arbitrary Artifact to Nexus

You need to have configured username and password of your nexus server in your settings.xml file for this snippet to work, it uploads the zip artifact to nexus repository.

settings.xml (located in .m2 directory)




<!-- Deploy File -->

No comments:

Post a Comment