Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Duplicate entry for plugin
Duplicate entry for plugin [message #31729] Fri, 07 November 2008 10:20 Go to next message
Eclipse UserFriend
Originally posted by: swt.magellium.fr

Hello all !

I have a simple dependency problem :
I have 4 java projects : MAIN1, MAIN2, COMMON1, COMMON2.

MAIN1 is a simple java project (not a plugin).
It uses COMMON1 (added as referenced project in the build path).
MAIN2 is a plugin project.
It uses COMMON1 (added as referenced plugin in the manifest).

So COMMON1 is used by MAIN1 as a java project, and by MAIN2 as a plugin
project.
Now, COMMON1 wants to use COMMON2.
In order to work with MAIN1, COMMON1 must refer to COMMON2 in it's build
path (referenced project).
In order to work with MAIN2, COMMON1 must refer to COMMON2 in it's
plugin dependencies (referenced plugin).

If I use such a configuration, an error appears on COMMON1 : it's build
path contains a duplicate entry : COMMON2.
COMMON2 is referred both as referenced java project and as referenced
plugin project...

How can I remove this "duplicate entry" error and still have the two
MAIN1 and MAIN2 projects working ??
Thanks a lot in advance !

Stephane
Re: Duplicate entry for plugin [message #32399 is a reply to message #31729] Thu, 13 November 2008 12:31 Go to previous message
Benjamin Cabé is currently offline Benjamin CabéFriend
Messages: 201
Registered: July 2009
Location: Toulouse, France
Senior Member

Hi Stéphane,

> In order to work with MAIN1, COMMON1 must refer to COMMON2 in it's
build path (referenced project).
> In order to work with MAIN2, COMMON1 must refer to COMMON2 in it's
plugin dependencies (referenced plugin).

Isn't it sufficent to make the COMMON1 plug-in depend on COMMON2 as a
plug-in?
By default, every plug-in dependency is added to the Java project's
classpath

Regards,
Benjamin.





SWT a écrit :
> Hello all !
> [...]
> Stephane




SWT a écrit :
> Hello all !
>
> I have a simple dependency problem :
> I have 4 java projects : MAIN1, MAIN2, COMMON1, COMMON2.
>
> MAIN1 is a simple java project (not a plugin).
> It uses COMMON1 (added as referenced project in the build path).
> MAIN2 is a plugin project.
> It uses COMMON1 (added as referenced plugin in the manifest).
>
> So COMMON1 is used by MAIN1 as a java project, and by MAIN2 as a
> plugin project.
> Now, COMMON1 wants to use COMMON2.
> In order to work with MAIN1, COMMON1 must refer to COMMON2 in it's
> build path (referenced project).
> In order to work with MAIN2, COMMON1 must refer to COMMON2 in it's
> plugin dependencies (referenced plugin).
>
> If I use such a configuration, an error appears on COMMON1 : it's
> build path contains a duplicate entry : COMMON2.
> COMMON2 is referred both as referenced java project and as referenced
> plugin project...
>
> How can I remove this "duplicate entry" error and still have the two
> MAIN1 and MAIN2 projects working ??
> Thanks a lot in advance !
>
> Stephane


Re: Duplicate entry for plugin [message #584906 is a reply to message #31729] Thu, 13 November 2008 12:31 Go to previous message
Eclipse UserFriend
Originally posted by: benjamin.cabe.anyware-tech.com

Hi Stéphane,

> In order to work with MAIN1, COMMON1 must refer to COMMON2 in it's
build path (referenced project).
> In order to work with MAIN2, COMMON1 must refer to COMMON2 in it's
plugin dependencies (referenced plugin).

Isn't it sufficent to make the COMMON1 plug-in depend on COMMON2 as a
plug-in?
By default, every plug-in dependency is added to the Java project's
classpath

Regards,
Benjamin.





SWT a écrit :
> Hello all !
> [...]
> Stephane




SWT a écrit :
> Hello all !
>
> I have a simple dependency problem :
> I have 4 java projects : MAIN1, MAIN2, COMMON1, COMMON2.
>
> MAIN1 is a simple java project (not a plugin).
> It uses COMMON1 (added as referenced project in the build path).
> MAIN2 is a plugin project.
> It uses COMMON1 (added as referenced plugin in the manifest).
>
> So COMMON1 is used by MAIN1 as a java project, and by MAIN2 as a
> plugin project.
> Now, COMMON1 wants to use COMMON2.
> In order to work with MAIN1, COMMON1 must refer to COMMON2 in it's
> build path (referenced project).
> In order to work with MAIN2, COMMON1 must refer to COMMON2 in it's
> plugin dependencies (referenced plugin).
>
> If I use such a configuration, an error appears on COMMON1 : it's
> build path contains a duplicate entry : COMMON2.
> COMMON2 is referred both as referenced java project and as referenced
> plugin project...
>
> How can I remove this "duplicate entry" error and still have the two
> MAIN1 and MAIN2 projects working ??
> Thanks a lot in advance !
>
> Stephane
Previous Topic:Problem with ResourcChangeListener
Next Topic:Signing JAR plug-ins
Goto Forum:
  


Current Time: Tue Aug 03 04:39:23 GMT 2021

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

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

Back to the top