add compile and package plugin; fix a dependency error