<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
Hi,<BR>
<BR>
I can't get maven modules run in desired order.<BR>
<BR>
I have ported test-reporting for the testsuite.<BR>
Now I am trying to put it to right place in POM. <BR>
Ideally, `mvn install site` should have reporting by default, `-DnoReport` should skip reporting.<BR>
<BR>
I've tried:<BR>
<BR>
1) Having in testsuite/pom.xml, bound to the site phase.<BR>
<BR>
This needs to run `mvn site` in a separate command, like `mvn install; mvn site`, since with `mvn install site` reporting would run before the submodules (with tests) were run.<BR>
<BR>
2) Having it in testsuite/reporting/pom.xml<BR>
<BR>
Because of how testsuite/pom.xml is written (multiple profiles activating modules used to separate certain test groups),<BR>
reporting must be defined in a profile, in order to run it after other submodules.<BR>
That blocks having it auto-activated since it's not possible to move auto-activated profiles after property-activated.<BR>
So it's only possible to having it not running by default, and running on-demand. (And that's what I am going to use as fallback solution.)<BR>
<BR>
Any idea how should I get this working "ideally", as defined above?<BR>
<BR>
Thanks,<BR>
Ondra<BR>
<BR>
<BR>
</BODY>
</HTML>