generate-resources phase