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] < > ml-node+s40175n5846977...@n5.nabble.com> 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 > > ml-node+s40175n142166...@n5.nabble.com > > 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-tp5846971p5846979.html > Sent from the Maven Developers mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org