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 20:14 |
Timotei Mising name Messages: 89 Registered: March 2010 |
Member |
|
|
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 20:29] Report message to a moderator
|
|
|
Re: Simple plugin export and install [message #523767 is a reply to message #523694] |
Mon, 29 March 2010 08:48 |
Eclipse User |
|
|
|
Originally posted by: kai.edinger.drexler-software.de
Hello Timo,
I think whats Eclipse is missing her is the "Update-Site". If you want
to use the Update-Manager (Install New Software...) you must have create
a Update-Site-Project and export this to zip file.
But, the simple way to install your plugin is to copy the jar file in
the directory eclipse/plugins and restart eclipse.
Kai
Am 28.03.2010 22:14, schrieb kimi_anwen@yahoo.com:
> 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
|
|
|
Re: Simple plugin export and install [message #524253 is a reply to message #523767] |
Wed, 31 March 2010 10:41 |
Ralf Ebert Messages: 168 Registered: July 2009 |
Senior Member |
|
|
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 12: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 #605336 is a reply to message #523767] |
Wed, 31 March 2010 10:41 |
Ralf Ebert Messages: 168 Registered: July 2009 |
Senior Member |
|
|
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 12: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
|
|
| |
Goto Forum:
Current Time: Thu Apr 25 11:59:54 GMT 2024
Powered by FUDForum. Page generated in 0.03839 seconds
|