Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



2 answers

Permanent link
Got my answer: it does NOT call the mvn executable. I deleted all but m2.conf in the bin folder and it still works.

0 votes


Permanent link
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

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 29 '09, 10:51 a.m.

Question was seen: 7,713 times

Last updated: Jul 29 '09, 10:51 a.m.

Confirmation Cancel Confirm