I thought both define the same - JVM properties, but there is obviously a difference between those two and I cannot find a clear explanation. If I use both in Jenkins Maven built, only properties set by -D are visible in Java application by System.getProperties(). Although MAVEN_OPTS should be passed to JVM as well. Seems like I am missing something.
Thx for the explanation.