support both packaging pom and bundle