There is managed package on dev org, developed by our team. Using Ant Migration Tool code was fetched from salesforce.
<target name="retrievePkg">
<sf:retrieve username="${sf.username}" password="${sf.password}" sessionId="${sf.sessionId}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" retrieveTarget="retrievePkg" packageNames="${sf.pkgName}"/>
</target>
Then i tried to deploy this code to my personal dev org using
<target name="deployCode">
<sf:deploy username="${sf.personalusername}" password="${sf.personalpassword}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="retrievePkg" rollbackOnError="true">
</sf:deploy>
</target>
BUT it failed with numerous of errors. For example:
- [sf:deploy] 2. labels/CustomLabels.labels (Save) -- Error: Cannot create a new component with the namespace: ***. Only components in the same namespace as the organization can be created through the API (line 395, column 13)
- [sf:deploy] 77. components/CallComments.component -- Error: Cannot modify managed object: entity=ApexComponent, component=099280000008jxQ, field=Markup, state=MANAGED_INSTALLED: newValue='