<div dir="ltr">Sandro,<div>Can you open a ticket on it so it won't get lost?</div><div><br></div><div>e.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 10, 2015 at 10:00 AM, Sandro Bonazzola <span dir="ltr"><<a href="mailto:sbonazzo@redhat.com" target="_blank">sbonazzo@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 dir="ltr"><div>Infra owner, please check if we can use Greg hint for reducing build time.</div><div><div class="h5"><div><br></div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Greg Padgett</b> <span dir="ltr"><<a href="mailto:gpadgett@redhat.com" target="_blank">gpadgett@redhat.com</a>></span><br>Date: Wed, Sep 9, 2015 at 11:45 PM<br>Subject: Re: [ovirt-devel] disabling maven-checkstyle-plugin<br>To: Martin Mucha <<a href="mailto:mmucha@redhat.com" target="_blank">mmucha@redhat.com</a>><br>Cc: <a href="mailto:devel@ovirt.org" target="_blank">devel@ovirt.org</a><br><br><br><span>On 09/09/2015 05:40 AM, Martin Mucha wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I want to get rid of work style: wait 10 minutes for compilation to finish, read about unused import, fix it and start over.<br>
<br>
I'm not that familiar with maven / our setup. Is there a correct way how to do that?<br>
</blockquote>
<br></span>
The way I use is to add an option to `make` to disable checkstyle[1], ie:<br>
make install-dev (options) DEV_EXTRA_BUILD_FLAGS="-Dcheckstyle.skip=1"<br>
<br>
I have a little shell script conditionally do this to save myself some typing.<span><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So far what I do is using altered pom.xml so there's new profile disabling maven-check-style if enabled, and I had to force git to ignore pom.xml changes. This does not seem right.<br>
</blockquote>
><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also is there a way how to continue with build from point where it failed, or do I truly need to restart from scratch?<br>
</blockquote>
<br></span>
I think there is, but you might need to invoke maven directly. I've never bothered--as long as I don't clean between build attempts, it seems to catch up to where it was quickly enough. If there's one bit of code you're iterating over, you can always cd to where that source is and 'mvn compile' it until you're ready for a full build.<br>
<br>
Hope that helps,<br>
Greg<br>
<br>
[1] <a href="https://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html" rel="noreferrer" target="_blank">https://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html</a><div><div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
thanks for advices,<br>
M.<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><br>
<br>
</blockquote>
<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><br>
</div></div></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr"><div><div dir="ltr">Sandro Bonazzola<br>Better technology. Faster innovation. Powered by community collaboration.<br>See how it works at <a href="http://redhat.com" target="_blank">redhat.com</a><br></div></div></div></div>
</font></span></div>
<br>_______________________________________________<br>
Infra mailing list<br>
<a href="mailto:Infra@ovirt.org">Infra@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/infra" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/infra</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Eyal Edri<br>Supervisor, RHEV CI<br>EMEA ENG Virtualization R&D<br>Red Hat Israel<br><br>phone: +972-9-7692018<br>irc: eedri (on #tlv #rhev-dev #rhev-integ)</div>
</div>