Fixed bugs related to maven publishing