Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Timotei Mising name is currently offline Timotei Mising nameFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf EbertFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 12:28 Go to previous message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
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 10:41 Go to previous message
Ralf Ebert is currently offline Ralf EbertFriend
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 Go to previous message
Eclipse UserFriend
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 12:28 Go to previous message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
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/
Previous Topic:Plugin install error
Next Topic:LaunchConfigurationTab remains empty
Goto Forum:
  


Current Time: Tue Mar 19 02:06:24 GMT 2024

Powered by FUDForum. Page generated in 0.03351 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top