Home » Eclipse Projects » Plugin Development Environment (PDE) » Simple plugin export and install(exporting a plugin and then installing it)
Simple plugin export and install [message #523694] |
Sun, 28 March 2010 16:14  |
Eclipse User |
|
|
|
Hello everyone!
I've made a simple Hello World plug-in project. I export it, using the 4 steps at the Export in "plugin.xml"
After I have the zip file, I try to install it: About->Install New Software, select the created zip file (I tried also with .jar). But the only thing I get is "No repository found at jar:file/...", so I can't install the plugin.
What do I have to check? What am I missing?
Thanks,
Timo
PS: I'm using eclipse 3.5, and tried installing it in my own eclipse.
PS2: It works only by copy-paste in the plugins dir, and then starting with the "--clean" option. But I want it to work by installing.
[Updated on: Sun, 28 March 2010 16:29] by Moderator
|
|
| |
Re: Simple plugin export and install [message #524253 is a reply to message #523767] |
Wed, 31 March 2010 06:41   |
Eclipse User |
|
|
|
Hi,
> But, the simple way to install your plugin is to copy the jar file in
> the directory eclipse/plugins and restart eclipse.
no, sorry, this isn't supported anymore and you should never do this because the p2 update
manager manages the Eclipse installation. You could use the dropins folder if you really
want to copy files around to install plug-ins.
Instead:
If you only want to install the bundle in your running IDE, use "Export > Deployable
Plug-ins and fragments" and choose "Install into host".
If you want to create a p2 repository for others to install your plug-in, do this:
- Create a feature project that contains your bundle
- Optional: Create a category definition file if you want to categorize the repository
- Use File > Export > Deployable Features to export the feature with your bundle, make
sure to choose "Generate metadata repository". You will get a repository folder
(containing content.jar, artifacts.jar). This is your repository (= update site) you can
use to install the feature into Eclipse using "Install New Software".
Greetings,
Ralf
--
http://www.ralfebert.de/blog/eclipsercp/
|
|
|
Re: Simple plugin export and install [message #524287 is a reply to message #524253] |
Wed, 31 March 2010 08:23   |
Eclipse User |
|
|
|
Originally posted by: kai.edinger.drexler-software.de
Am 31.03.2010 12:41, schrieb Ralf Ebert:
> Hi,
>
>> But, the simple way to install your plugin is to copy the jar file in
>> the directory eclipse/plugins and restart eclipse.
>
> no, sorry, this isn't supported anymore and you should never do this
> because the p2 update manager manages the Eclipse installation. You
> could use the dropins folder if you really want to copy files around to
> install plug-ins.
>
> Instead:
>
> If you only want to install the bundle in your running IDE, use "Export
> > Deployable Plug-ins and fragments" and choose "Install into host".
>
> If you want to create a p2 repository for others to install your
> plug-in, do this:
>
> - Create a feature project that contains your bundle
> - Optional: Create a category definition file if you want to categorize
> the repository
> - Use File > Export > Deployable Features to export the feature with
> your bundle, make sure to choose "Generate metadata repository". You
> will get a repository folder (containing content.jar, artifacts.jar).
> This is your repository (= update site) you can use to install the
> feature into Eclipse using "Install New Software".
>
> Greetings,
>
> Ralf
Hello Ralf,
the way you describe is surely the best practice. But the "Classic
Update Manager" isn't supported anymore? You feel certain with that?
AFAIK the platform can run without provisioning.
Grettings
Kai
|
|
|
Re: Simple plugin export and install [message #524288 is a reply to message #524287] |
Wed, 31 March 2010 08:28  |
Eclipse User |
|
|
|
Hi Kai,
> the way you describe is surely the best practice. But the "Classic Update Manager"
> isn't supported anymore? You feel certain with that? AFAIK the platform can run without
> provisioning.
my answer related to the default Eclipse IDE downloads which are all installations managed
by p2. Best practice is to use these and not to mess with the plugins/features folder
anymore but install everything using p2. If you downgrade to something "classic" that's
not true anymore, of course :)
Greetings,
Ralf
--
http://www.ralfebert.de/blog/
http://twitter.com/ralfebert/
|
|
|
Re: Simple plugin export and install [message #605336 is a reply to message #523767] |
Wed, 31 March 2010 06:41  |
Eclipse User |
|
|
|
Hi,
> But, the simple way to install your plugin is to copy the jar file in
> the directory eclipse/plugins and restart eclipse.
no, sorry, this isn't supported anymore and you should never do this because the p2 update
manager manages the Eclipse installation. You could use the dropins folder if you really
want to copy files around to install plug-ins.
Instead:
If you only want to install the bundle in your running IDE, use "Export > Deployable
Plug-ins and fragments" and choose "Install into host".
If you want to create a p2 repository for others to install your plug-in, do this:
- Create a feature project that contains your bundle
- Optional: Create a category definition file if you want to categorize the repository
- Use File > Export > Deployable Features to export the feature with your bundle, make
sure to choose "Generate metadata repository". You will get a repository folder
(containing content.jar, artifacts.jar). This is your repository (= update site) you can
use to install the feature into Eclipse using "Install New Software".
Greetings,
Ralf
--
http://www.ralfebert.de/blog/eclipsercp/
|
|
|
Re: Simple plugin export and install [message #605359 is a reply to message #524253] |
Wed, 31 March 2010 08:23  |
Eclipse User |
|
|
|
Originally posted by: kai.edinger.drexler-software.de
Am 31.03.2010 12:41, schrieb Ralf Ebert:
> Hi,
>
>> But, the simple way to install your plugin is to copy the jar file in
>> the directory eclipse/plugins and restart eclipse.
>
> no, sorry, this isn't supported anymore and you should never do this
> because the p2 update manager manages the Eclipse installation. You
> could use the dropins folder if you really want to copy files around to
> install plug-ins.
>
> Instead:
>
> If you only want to install the bundle in your running IDE, use "Export
> > Deployable Plug-ins and fragments" and choose "Install into host".
>
> If you want to create a p2 repository for others to install your
> plug-in, do this:
>
> - Create a feature project that contains your bundle
> - Optional: Create a category definition file if you want to categorize
> the repository
> - Use File > Export > Deployable Features to export the feature with
> your bundle, make sure to choose "Generate metadata repository". You
> will get a repository folder (containing content.jar, artifacts.jar).
> This is your repository (= update site) you can use to install the
> feature into Eclipse using "Install New Software".
>
> Greetings,
>
> Ralf
Hello Ralf,
the way you describe is surely the best practice. But the "Classic
Update Manager" isn't supported anymore? You feel certain with that?
AFAIK the platform can run without provisioning.
Grettings
Kai
|
|
|
Re: Simple plugin export and install [message #605363 is a reply to message #524287] |
Wed, 31 March 2010 08:28  |
Eclipse User |
|
|
|
Hi Kai,
> the way you describe is surely the best practice. But the "Classic Update Manager"
> isn't supported anymore? You feel certain with that? AFAIK the platform can run without
> provisioning.
my answer related to the default Eclipse IDE downloads which are all installations managed
by p2. Best practice is to use these and not to mess with the plugins/features folder
anymore but install everything using p2. If you downgrade to something "classic" that's
not true anymore, of course :)
Greetings,
Ralf
--
http://www.ralfebert.de/blog/
http://twitter.com/ralfebert/
|
|
|
Goto Forum:
Current Time: Mon Jul 07 21:37:17 EDT 2025
Powered by FUDForum. Page generated in 0.10225 seconds
|