Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Dependent Projects
Dependent Projects [message #149119] Fri, 25 November 2005 11:00 Go to next message
Eclipse UserFriend
Originally posted by: s.ramlow.gmx.de

Hi,

has anybody got it working in M9?
I always get an error saying me that a duplicate manifest file cannot be
added when I try to publish the project.
It only happens when I have at least one dependent web lib project.

Tia, sr
Re: Dependent Projects [message #149137 is a reply to message #149119] Fri, 25 November 2005 11:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yvigara.lebihan.fr

Hello,

I've found a workaround in order publish a web project with dependent
lib projects. The problem seems to be that when you deploy the
application, the content of the Jar file generated contains the source
and the compiled classes.
So if you want to use a dependent project edit the .setting/.component
file and instead of having a line like this one :

<wb-resource deploy-path="/" source-path="/src/java" />

change the source-path with the build output path:

<wb-resource deploy-path="/" source-path="/target/classes" />

Like this you will be able to publish the project and all "Duplicate
entries" disappears.
Enjoy.

Regards,

Yann.

Ramlow wrote:
> Hi,
>
> has anybody got it working in M9?
> I always get an error saying me that a duplicate manifest file cannot be
> added when I try to publish the project.
> It only happens when I have at least one dependent web lib project.
>
> Tia, sr
>
Re: Dependent Projects [message #149151 is a reply to message #149137] Fri, 25 November 2005 12:27 Go to previous messageGo to next message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Yann Vigara wrote:
> I've found a workaround in order publish a web project with dependent
> lib projects. The problem seems to be that when you deploy the
> application, the content of the Jar file generated contains the source
> and the compiled classes.
> So if you want to use a dependent project edit the .setting/.component
> file and instead of having a line like this one :
>
> <wb-resource deploy-path="/" source-path="/src/java" />
>
> change the source-path with the build output path:
>
> <wb-resource deploy-path="/" source-path="/target/classes" />

Check out bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=117956

The change you are advocating might work around the publish problem but
might break other things.

Darryl
Re: Dependent Projects [message #149158 is a reply to message #149137] Fri, 25 November 2005 12:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: s.ramlow.gmx.net

Yann Vigara wrote:

Hi,

> So if you want to use a dependent project edit the .setting/.component
> file and instead of having a line like this one :
>
> <wb-resource deploy-path="/" source-path="/src/java" />
>
> change the source-path with the build output path:
>
> <wb-resource deploy-path="/" source-path="/target/classes" />

I have no such entry, I have:

<wb-resource source-path="/src" deploy-path="/WEB-INF/classes"/>

and I changed it to:

<wb-resource source-path="/build/classes" deploy-path="/WEB-INF/classes"/>

Same error :(

Here is the dependency definition:

<dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/SigIntLogic/SigIntLogic">
<dependency-type>uses</dependency-type>
</dependent-module>

Hm...

--
Sport frei!
http://www.fightclub-berlin.de
Re: Dependent Projects [message #149179 is a reply to message #149119] Fri, 25 November 2005 14:15 Go to previous message
Eclipse UserFriend
Originally posted by: s.ramlow.gmx.net

Ramlow wrote:

> has anybody got it working in M9?

Has anybody a workaroud to get it working in M9?

--
Sport frei!
http://www.fightclub-berlin.de
Previous Topic:Really debugging webapps in Eclipse
Next Topic:JavaScript
Goto Forum:
  


Current Time: Fri Apr 26 08:14:39 GMT 2024

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

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

Back to the top