we would like to use appassembler-maven-plugin to generate daemon scripts for our apps, we want to avoid having multiple configuratoins and generated scripts for the different environments, e.g. test, prod, etc., and would like to be able to set a jvm system property or add an extra command line argument when starting. I have been looking into this for a while ow and can't seem to find a solution.
If anybody has any ideas or suggestions they would be greatly appreciated,
thanks
Asked
Active
Viewed 1,249 times
2

Joe
- 21
- 3
1 Answers
1
You can use the extraJvmArguments to put such things as a system property. See the examples on the documentation page.

khmarbaise
- 92,914
- 28
- 189
- 235
-
How would you specify different property values for each environment (e.g. one URL for dev and a different URL for prod)? If these values are specified in the maven configuration, they will be the same for all environments. – datguy Feb 11 '14 at 16:43
-
I wouldn't specify properties i would do it an other way like described [here](http://blog.soebes.de/blog/2011/07/29/maven-configuration-for-multipe-environments) and [here](http://blog.soebes.de/blog/2013/08/24/iterator-maven-plugin-0-2). – khmarbaise Feb 11 '14 at 17:25