855095 - generate metadata during unit copy with dependency resolution

This commit has already been reviewed against 2.0 branch. Creating new PR to merge into master.