Maven Builds
When the JBE invokes maven, does it call mvn.bat or instead does it call jvm directly?
Background behind this question is to understand if I should bother defining MAVEN_OPTS or not. |
2 answers
Got my answer: it does NOT call the mvn executable. I deleted all but m2.conf in the bin folder and it still works.
|
Patrick, sorry for the delay - I took Thu-Tue as vacation.
You are correct - the Maven build participant launches Java directly, on class org.codehaus.classworlds.Launcher, with the goals as program arguments. It adds all jars in Maven's boot directory to the classpath. It also defines a couple of system properties: -Dmaven.home=${maven.home} -Dclassworlds.conf=${maven.home}/bin/m2.conf |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.