Hi I am trying to develop plugin project, I don’t understand why i have to add plugin Dependencies, why can’t i just add needed plugins’ jars to the build path of the project?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In short, because the OSGi framework manages the lifecycle of the plugins and takes care of loading, starting, stopping, and unloading the plugins when needed, so there’s a lot more to the process than resolving the necessary dependencies. There are also extensions and extension points involved that allow you to expose various ‘hooks’ that could be used to extend your code. I recommend reading up on OSGi and the plugin framework.