maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristian Rosenvold <>
Subject Dependency on system property user.dir
Date Sat, 06 Feb 2010 19:16:24 GMT
I just discovered that the source of the hideous concurrency problem
I've been tracking for some time is the system property "user.dir".

Surefire basically sets the following three system properties:

"basedir" = basedir.getAbsolutePath() 
"user.dir" = workingDirectory.getAbsolutePath();
"localRepository" =  localRepository.getBasedir();

These properties are also used inside maven core, and creates 
some interesting concurrency problems because by the time surefire sets
these values they may have changed already ;)

The method in question is SurefirePlugin.processSystemProperties, with
non-forking operation. 

Have these properties been discussed before ? Any issues, pointers,
thoughts ?


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

View raw message