I often build 3rd party projects locally and then wish to deploy the results into a local artifact server like Nexus, so that the build artifacts can be shared across my team as well as our CI systems. This is easy to do with Maven, without having to modify the actual build file, by using command-line parameters which override the settings in the build file, since those will generally only be usable by the project owner. For example, regardless of the settings in the POM, I can publish to my own repo via:
Thanks @Chris_Dore – what is the easiest way to combine the two approaches? IOW, have a script in init.d, but that is only enabled if a particular property is set, for example? That way, the script doesn’t always initialize when it doesn’t have to, but I can enable it at any time.