On 2012-08-07 03:03, Kristian Rosenvold wrote:
> Hi,

<snip/>

> We have added maven 2.2.1 runs to jenkins. Although a few IT's are
> still not green, I have individually verified that this are IT's that
> rely on m3's higher precision in
> pom evalutation/execution, so we need to find some way to ignore these
> tests for 2.2.1; I do not consider this a problem.

<snip/>

This can be done by adding a file called invoker.properties in the root
directory of each IT in question. The content of that file should be
like this, if you want the IT to be run only when invoked by Maven 3:

invoker.maven.version = 3.0+

We have several ITs like these in the Site Plugin. Have a look at these two:
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-site-plugin/src/it/inheritedReports/invoker.properties
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-484/invoker.properties

Which ITs in Surefire need this? According to Jenkins it's only this one:

Running org.apache.maven.surefire.its.UnicodeTestNamesIT
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.036
sec <<< FAILURE!


When I tried to build the current Surefire trunk using Maven 2.2.1 I get
this error. What am I doing wrong?

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference: Edge
between 'Vertex{label='org.apache.maven.surefire:surefire-api'}' and
'Vertex{label='org.apache.maven.surefire:surefire-shadefire'}'
introduces to cycle in the graph
org.apache.maven.surefire:surefire-shadefire -->
org.apache.maven.surefire:surefire-api -->
org.apache.maven.surefire:surefire-shadefire

Is this a known issue?

-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to