Page 1 of 1

Using the reactor at maven build

Posted: Sun Nov 04, 2012 2:26 pm
by igor.s.sokolov
Hi, broadleaf creators!
First I want to thank you for what you have created and continue to develop such a excellent framework!
I would like to know the reason why in the Broadleaf Commerce Demo isn't used assembly using maven reactor. When I made changes in the core module, I had to switch to the console and type

Code: Select all

mvn --projects "site" install

in order to apply this changes by starting jetty.

Maybe I do not understand something?

If what I wrote makes sense, then I propose to replace ant tast build-app:

Code: Select all

   <target name="build-app">
      <delete dir="war/WEB-INF/lib"/>
      <artifact:mvn mavenHome="${maven.home}" fork="true" dir="../">
         <arg value="--projects"/>
         <arg value="&quot;<PROJECT_NAME>&quot;"/>
         <arg value="--also-make"/>
         <arg value="install"/>
      </artifact:mvn>
   </target>

Re: Using the reactor at maven build

Posted: Mon Nov 05, 2012 10:52 am
by aazzolini
To be honest, I don't ever use the build-app target. We use JRebel for our development (and we recommend you do too, it really does speed up development cycles considerably). Adding that to build.xml would result in unnecessary compilation for anyone using JRebel.

If you're not using JRebel, you can simply do a mvn clean install at the root to rebuild the project as necessary.

And of course, if you'd like to use the reactor plugin, feel free :)