commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <>
Subject Re: [lang3] Test Fail in Headless Mode (at Least on a Mac)
Date Sat, 20 Nov 2010 06:33:08 GMT
+1 to make a change; it really irritates on OS X when AWT takes over
control of the focus.

On Fri, Nov 19, 2010 at 8:08 AM, Stefan Bodewig <> wrote:
> Hi,
> I'm pretty sure lang3 isn't the only project that is affected, it's just
> the first one we've seen it.  "we" ist the Gump project.
> Sander has set up a Mac to run Gump[1] and commons-lang3 is Gump's
> guinea pig for Maven 3.x builds in the workspace we use for developer
> tests and new installations.
> The commons-lang3 builds fail[2] and too me it looks as if this was
> because AWT is not running in headless mode, this in [3] looks
> suspicious:
> java.lang.InternalError: Can't connect to window server - not enough permissions.
> As can be seen in [2] MAVEN_OPTS is set up to make mvn run in headless
> mode but it doesn't affect the tests - likely because the tests run in a
> forked VM and the same property must be set in the surefire
> configuration.
> I am suprised the problem doesn't show up in the other CI builds.
> There likely is a way we could set additional properties for the maven
> run (like surefire specific system properties or telling it not to
> fork), but (a) this is beyond my Maven foo and (b) would have to be
> repeated in other environments that have the same problem as well.  Does
> anybody know of a better fix?
> Stefan
> [1]
> [2]
> [3]
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message