java - Standard way of deploying maven projects -
i have 2 maven projects, need deploy through automatic deployment process. (like nightly build or similar)
scenario as:
mv-proj1 -dependency-1.jar -dependency-2.jar -dependency-3.jar mv-proj2 -dependency-3.jar -dependency-4.jar -mv-proj1.jar sources of mv-proj1 , mv-proj2 can not disclosed.
mv-proj2 executable jars , provide services other application modules.
so standard way of deploying these production machine or lets uat machine?
need set intra-organization maven repository?
need install maven repository uat machine?
1 possible way think set , host intra-organization maven respository setting maven on uat machine fetch data intra-organization maven respository. , deploy pom.xml.
i let choice depend on consumers of artifacts are.
if consumers maven projects can pull in jars said intra-organizational maven repository, that's great way go. believe every organization serious using maven sooner or later going have use cases such own repository anyway. i've worked artifactory , nexus , feel both great products (and free beer use case stated here). they're both easy install, , should not exploration daunting, go it!
if uat machines use maven build , install pulls in artifacts dependency, them running maven client-side. there local repository (artifact cache) on these clients, that's different beast organizational repository mentioned above, deploy not on actual uat machines.
if mv-proj2 rather "final delivery", executable say, may want pack nice, single jar (maven can you) , distribute users. again through organizational repository. release network drive or web server. many ways so, e.g. use maven-jar-plugin outputdirectory pointing wherever want release.
Comments
Post a Comment