Actually, it's a bit complicated :-) The Maven build is started within Hudson. The plugins within Hudson (PMD, Checkstyle etc.) require the report XMLs (created by pmd:pmd etc.) to be able to work. So I need to call those goals for every build.
However, we also have a nightly build (which should also work with the Hudson plugins), which builds the Maven site (since that's not part of Continuous Integration). There are other metrics which are included there, but not the ones from the Hudson plugins. So even though e.g. the PMD plugin says that pmd:pmd should be used as a Maven report, I need it outside of the site lifecycle. Best regards, Eric -----Ursprüngliche Nachricht----- Von: Justin Edelson [mailto:[email protected]] Gesendet: Dienstag, 20. Juli 2010 14:40 An: Maven Users List Betreff: Re: AW: Does the sequence of goals/phases matter? On Jul 20, 2010, at 8:01 AM, "Lewis, Eric" <[email protected]> wrote: > Ok, thanks for the clarification! > > So, is this the right sequence in your opinion? > > clean package findbugs:findbugs pmd:pmd pmd:cpd checkstyle:checkstyle > site-deploy > Assuming that findbugs, pmd and checkstyle are configured as part of your reporting configuration, it shouldn't be necessary to include them explicitly on the command line. > Or where can I find out more about that topic? > http://www.sonatype.com/books/mvnref-book/reference/lifecycle.html doesn't > tell me about how to call individual plugin goals within a lifecycle, unless > I missed something. I find it hard to believe the Maven reference doesn't talk about binding a plugin to a phase. In any case, it is discussed here: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html in the Plugins section Justin > > Best regards, > Eric > > -----Ursprüngliche Nachricht----- > Von: Justin Edelson [mailto:[email protected]] > Gesendet: Dienstag, 20. Juli 2010 13:54 > An: Maven Users List > Betreff: Re: Does the sequence of goals/phases matter? > > > > On Jul 20, 2010, at 7:49 AM, "Lewis, Eric" <[email protected]> wrote: > >> Hi >> >> This is probably a trivial question, but I'll ask it nonetheless :-) >> >> Does the sequence of the goals and lifecycle phases matter when I call Maven? > Yes >> >> In other words, are these two exactly the same? > No >> >> clean package site-deploy >> >> site-deploy clean package >> >> >> Best regards, >> Eric >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
