@Igor Currently I should use Takari extensions, but in the future Maven should be incremental IMHO. This was discussed with Robert in ApacheCON as well as circumstances when the project can be incremental. I am sure that the build may in certain circumstance skip incremental facilities. We discussed incremental surefire and the reason to store build info in single jvm agent.
We cannot switch on incremental build if one of these happens: + clean phase + non-ClassLoader resources changed + POM changed (e.g. MD5) + system and env variables changed + toolchain changed JVM (especially from JDK7 to 8) I see that we can speed up sniffer-plugin if default compile phase is fine to optimize and previously running sniffer was successful and JDK is same. Currently I have a dedicated branch in Surefire Project related to Open API. The same can be utilized in order to have continues unit tests and especially ITs. I have no idea currently what costs more if it is JDT code analysis or ITs but I know for certain that JavaEE ITs mostly take minutes and hours which means code analysis does not matter. Maybe we should store information about previous exec time of certain plugins in the agent test classes. Currently surefire is able to optimize run-order of test classes in parallel execution and speed up more. It would be worth to store surefire hash file to force the execution with runOrder=balanced. On Sun, Oct 4, 2015 at 9:14 PM, Igor Fedorenko-3 [via Maven] < [email protected]> wrote: > I'd let animal-sniffer remember what classes it scanned last build and > process only changed/new classes (and clean up messages related to the > deleted classes). This is how we implemented incremental build behaviour > in takari lifecycle. You may also want to have a look at > io.takari.incrementalbuild library that provides some/most of the common > resource modification tracking plumbing. > > -- > Regards, > Igor > > On Sun, Oct 4, 2015, at 03:01 PM, Tibor Digana wrote: > > > Good point and how to restore the state and skip one plugin depending on > > run of other plugin if previous run was successful? > > > > On Sun, Oct 4, 2015 at 8:53 PM, Robert Scholte-4 [via Maven] < > > [hidden email] <http:///user/SendEmail.jtp?type=node&node=5846989&i=0>> > wrote: > > > > > Only if you store the state of animal-sniffer. If there are no classes > to > > > > > > compile, but previous run had an issue found by animal sniffer, it > must > > > still fail either by rerunning animal-sniffer or displaying previous > > > result. > > > > > > Robert > > > > > > Op Sun, 04 Oct 2015 20:43:37 +0200 schreef Tibor Digana > > > <[hidden email] <http:///user/SendEmail.jtp?type=node&node=5846977&i=0>>: > > > > > > > > I want to speed up the build and skip sniffer-plugin if "Nothing to > > > > compile > > > > - all classes are up to date". > > > > Do you think that maven-compiler-plugin can do it. > > > > For instance to set POM $property if incremental compiler says > "Nothing > > > > > > > to > > > > compile - all classes are up to date". > > > > > > > > Cheers > > > > Tibor > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [hidden email] > > > <http:///user/SendEmail.jtp?type=node&node=5846977&i=1> > > > For additional commands, e-mail: [hidden email] > > > <http:///user/SendEmail.jtp?type=node&node=5846977&i=2> > > > > > > > > > > > > ------------------------------ > > > If you reply to this email, your message will be added to the > discussion > > > below: > > > > > > > http://maven.40175.n5.nabble.com/Can-compiler-plugin-skip-sniffer-plugin-if-Nothing-to-compile-all-classes-are-up-to-date-tp5846971p5846977.html > > > To start a new topic under Maven Developers, email > > > [hidden email] <http:///user/SendEmail.jtp?type=node&node=5846989&i=1> > > > To unsubscribe from Maven Developers, click here > > > < > > > . > > > NAML > > > < > http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > > > > > > > > > > > > > -- > > View this message in context: > > > http://maven.40175.n5.nabble.com/Can-compiler-plugin-skip-sniffer-plugin-if-Nothing-to-compile-all-classes-are-up-to-date-tp5846971p5846979.html > > Sent from the Maven Developers mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > <http:///user/SendEmail.jtp?type=node&node=5846989&i=2> > For additional commands, e-mail: [hidden email] > <http:///user/SendEmail.jtp?type=node&node=5846989&i=3> > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://maven.40175.n5.nabble.com/Can-compiler-plugin-skip-sniffer-plugin-if-Nothing-to-compile-all-classes-are-up-to-date-tp5846971p5846989.html > To start a new topic under Maven Developers, email > [email protected] > To unsubscribe from Maven Developers, click here > <http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=142166&code=dGlib3JkaWdhbmFAYXBhY2hlLm9yZ3wxNDIxNjZ8LTI4OTQ5MjEwMg==> > . > NAML > <http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://maven.40175.n5.nabble.com/Can-compiler-plugin-skip-sniffer-plugin-if-Nothing-to-compile-all-classes-are-up-to-date-tp5846971p5846996.html Sent from the Maven Developers mailing list archive at Nabble.com.
