How about putting "private static String VERSION' into some maven module which all other depend on. Then it would be already built by maven, so running tests from IDE would have it available even if not running through maven.