<div dir="ltr"><div><div><div><div><div><div>I do experiment lots with this feature :-)<br><br></div>also reason why we currently have just 4 non @ThreadSafe plugins in our build...<br><br></div>Only problem I found with this was that arquillian tests usualy behave quite strange.<br>
</div>so if you do paralel build with -DskipTests then this is great but for actual testing it is not that good.<br></div><div>I usually do -DskipTests -T4 and then just run part of testsuite that i am interested in.<br></div>
<div><br><br></div>Also you can use -T 4C which will tell him to use 4 real cores not just logical ones.<br></div>But this config really depends on project & hardware you are on.<br><br>--<br></div>tomaz<br><div><div>
<div><div><div><br><br></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 25, 2013 at 4:17 PM, Paul Robinson <span dir="ltr"><<a href="mailto:paul.robinson@redhat.com" target="_blank">paul.robinson@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>All,</div><div><br></div><div>I tried telling maven to use all my cores (8 if you count hyper-threaded cores) and I've seen a 33% reduction in build times. Here's my results:</div>
<div><br></div><div>./build.sh clean install -DskipTests<span style="white-space:pre-wrap">                        </span>3:43</div><div>./build.sh clean install -DskipTests -T 4<span style="white-space:pre-wrap">                </span>2:57</div><div>./build.sh clean install -DskipTests -T 8<span style="white-space:pre-wrap">                </span>2:30</div>
<div><br></div><div>I'm using an SSD, so YMMV.</div><div><br></div><div>However, there are 4 plugins that are not marked as @ThreadSafe, so i'm not sure how safe this is.</div><div><br></div><div>[WARNING] org.apache.maven.plugins:maven-help-plugin:2.2 (Can't find an issue for this yet)</div>
<div>[WARNING] org.codehaus.mojo:buildnumber-maven-plugin:1.2 (Claims to be fixed in 1.2: <a href="http://jira.codehaus.org/browse/MBUILDNUM-13" target="_blank">http://jira.codehaus.org/browse/MBUILDNUM-13</a>)</div><div>
[WARNING] org.codehaus.mojo:xml-maven-plugin:1.0 (Unresolved: <a href="http://jira.codehaus.org/browse/MOJO-1709" target="_blank">http://jira.codehaus.org/browse/MOJO-1709</a>)</div><div>[WARNING] org.kuali.maven.plugins:properties-maven-plugin:1.5.3 (Unresolved: <a href="http://jira.codehaus.org/browse/MOJO-1677" target="_blank">http://jira.codehaus.org/browse/MOJO-1677</a>)</div>
<div><br></div><div>For more info on parallel maven builds:</div><div><br></div><div><a href="https://cwiki.apache.org/MAVEN/parallel-builds-in-maven-3.html" target="_blank">https://cwiki.apache.org/MAVEN/parallel-builds-in-maven-3.html</a></div>
<div><br></div><div>Has anyone else experimented with this feature?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Paul.</div><div><br></div><div>
<span style="border-collapse:separate;border-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
-- <br>Paul Robinson<br>Web Service Transactions Lead<br><a href="mailto:paul.robinson@redhat.com" target="_blank">paul.robinson@redhat.com</a><br><br>JBoss, a Division of Red Hat<br>Registered in England and Wales under Company Registration No. 03798903<br>
Directors: Michael Cunningham (USA), Brendan Lane (Ireland), Matt Parson<br>(USA), Charlie Peters (USA)</div></span></span>
</div>
<br></font></span></div><br>_______________________________________________<br>
jboss-as7-dev mailing list<br>
<a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br></blockquote></div><br></div>