refactor host management and prepare Maven Central strategy