java - Maven Deployment Parameters in pom.xml -


I have a Maven project, which should organize their compiled files in another folder. Currently, I parameter altDeploymentRepository :

  mvn -DaltDeploymentRepository = snapshot-repo :: default :: file: / home / user / some / folder / mnn-repo / Snapshot deployed   

My question: Is it possible to do a simple mvn deploy instead and move the parameter declaration to pom.xml instead? If yes, then how?

Update

I was asked why I want to do this. I have separated my project into Maven Project with source and Maven reserves. Both are separate github projects and therefore in various folders. I have configured Maven so that target files can be deployed in the repo folder. After this I have to add, change and make changes to the gates.

If the target file is directly or in any way with maven deploy in the desired Github repo, make this process more simpler, I'm all ears!

Just to make sure that you actually understand the meaning of meaning "deployed" in Maven Coz it's quite odd for what you're doing as "positioned in another folder".

Maven deployment means that the artifact is a remote regimentary remote repository where the Mewen artifacts have been discovered and downloaded in the local repository. This is rarely the "second folder", we usually see & lt; Distribution management & gt; to use the remote repository, we usually used to deploy altDeploymentRepository in a separate remote repo, as distrubutionManagement is configured in.

If you just want to put your own created artifact in a separate folder, whose purpose is not to "remote stores", I believe that the assembly (or similar plug-ins) the wanted.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -