I'm new to the Migration Tool and I'm having an issue deploying my managed package code to a developer org. The error I'm getting says:
The specified package namespace: NAMESPACE does not match the namespace for the server
Since namespaces are specific to an org is it possible to deploy this code?
Thanks,
tim
Best Answer
We are using DevOrgs with different namespaces as part of our development process. I have described parts of it as an answer to Best practices for Versioning managed packages in Git. In our experience it is the best to:
getName()
vs.getLocalName()
package.xml
by something generic like<namespacePrefix>PREFIX</namespacePrefix>
and replace it before deploy and after retrieve. The real namespace could be stored at thebuild.properties
filebuild.properties
. We are using our JIRA story keys for that (e.g. FOO-2346 key results in FOO_2346 namespace).