You need to sign in to do that
Don't have an account?
![viphe viphe](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Referencing an unmanaged package from a managed package
Hi,
I have a managed package that relies on an unmanaged package. When I install this unmanaged package in my dev environment, all its components become prefixed by the name of my managed package. Eventually, they get all (or worse only the components referenced) uploaded with my classes.
This is quite inconvenient and annoying: I do not own the unmanaged package.
Is there a way to tell SFDC not to give my managed package ownership on the unmanaged package? Or am I doing something else wrong?
Thanks for the help.
Philippe
Hi Philippe,
Think of unmanaged packages as open source code. If you are going to use it in your app, then it has to be part of your app. Also, unmanaged packages are not upgradeable, so if you happen to find a bug in that open source code, then it is important that you can fix and upgrade your customers. Thus, including it in your managed package allows you to do this.
Thanks,
All Answers
Alright, from what I read in another post, it seems that everything that doesn't have a namespace and isn't core SFDC becomes part of the managed package namespace.
Even if it makes no sense, I guess I will have to suffer it and try to find some work-around.
Hi Philippe,
Think of unmanaged packages as open source code. If you are going to use it in your app, then it has to be part of your app. Also, unmanaged packages are not upgradeable, so if you happen to find a bug in that open source code, then it is important that you can fix and upgrade your customers. Thus, including it in your managed package allows you to do this.
Thanks,
Hi Andrew,
Thanks a lot for the answer.
Note that when including an unmanaged package into a managed package, there are quite some limitations as some elements might not be programmed with the namespace in mind (in web components, for instance). It can therefore a huge effort to integrate it.
Philippe