You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Daniel Kulp <da...@iona.com> on 2006/11/03 23:29:16 UTC

Eclipse builds broken again....

The recent changes to grab stuff from the common/metacode dir completely 
broke the eclipse setup.   You CANNOT add source and resource directories 
outside of the current module.  Eclipse will not allow that.    I'm going 
to "undo" those changes for now until someone can figure out something 
better.   

Second: building common/metacode requires tools to be build.   This is a 
violation of normal "layering" approaches.   It create a wacky circular 
issue between "common" and "tools".   This also needs to be fixed.


-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194   F:781-902-8001
daniel.kulp@iona.com

Re: Eclipse builds broken again....

Posted by Bozhong Lin <bl...@iona.com>.
Sorry about that, guys.  My commit for removing duplicated schema 
partially contributed to the problem. Thanks for fixing up Eclipse build.

Regards,
Bo

Daniel Kulp wrote:
>> The recent changes to grab stuff from the common/metacode dir completely 
>> broke the eclipse setup.   You CANNOT add source and resource
>> directories  outside of the current module.  Eclipse will not allow
>> that.    I'm going  to "undo" those changes for now until someone can
>> figure out something  better.  
> 
> 
> This problem is worse than I thought....
> 
> There are a LOT of files that are doing something like:
> schemaLocation="../../../../../../../../common/metacode/src/main/....."
> 
> That is just as bad.   We need to make sure it's possible to build each 
> module individually.   That's to prove that a developer outside our 
> source tree can do the same thing.   
> 
> For the code generation/xsd/xjb things, what we need to do is register a 
> ResourceResolver on the tools so that locations can be resolved to jars 
> on the classpath.   In the xsd/xjb's, it should be something like:
> schemaLocation="/schemas/wsdl.xsd"
> or similar and the resolver will do a proper "getClass().getResource(...)" 
> thing on it to resolve it.
> 
> IMO, this needs to be fixed for M1.
> 

RE: Eclipse builds broken again....

Posted by Jim Ma <ji...@iona.com>.
Hi Dan , 

I will fill a jira task and fix it for M1 . 

Regards

Jim

> -----Original Message-----
> From: Daniel Kulp [mailto:daniel.kulp@iona.com]
> Sent: Saturday, November 04, 2006 8:08 AM
> To: cxf-dev@incubator.apache.org
> Subject: Re: Eclipse builds broken again....
> 
> 
> 
> > The recent changes to grab stuff from the common/metacode dir 
> completely 
> > broke the eclipse setup.   You CANNOT add source and resource
> > directories  outside of the current module.  Eclipse will not allow
> > that.    I'm going  to "undo" those changes for now until someone can
> > figure out something  better.  
> 
> 
> This problem is worse than I thought....
> 
> There are a LOT of files that are doing something like:
> schemaLocation="../../../../../../../../common/metacode/src/main/....."
> 
> That is just as bad.   We need to make sure it's possible to build each 
> module individually.   That's to prove that a developer outside our 
> source tree can do the same thing.   
> 
> For the code generation/xsd/xjb things, what we need to do is register a 
> ResourceResolver on the tools so that locations can be resolved to jars 
> on the classpath.   In the xsd/xjb's, it should be something like:
> schemaLocation="/schemas/wsdl.xsd"
> or similar and the resolver will do a proper 
> "getClass().getResource(...)" 
> thing on it to resolve it.
> 
> IMO, this needs to be fixed for M1.
> 
> -- 
> J. Daniel Kulp
> Principal Engineer
> IONA
> P: 781-902-8727    C: 508-380-7194   F:781-902-8001
> daniel.kulp@iona.com

Re: Eclipse builds broken again....

Posted by Daniel Kulp <da...@iona.com>.
> The recent changes to grab stuff from the common/metacode dir completely 
> broke the eclipse setup.   You CANNOT add source and resource
> directories  outside of the current module.  Eclipse will not allow
> that.    I'm going  to "undo" those changes for now until someone can
> figure out something  better.  


This problem is worse than I thought....

There are a LOT of files that are doing something like:
schemaLocation="../../../../../../../../common/metacode/src/main/....."

That is just as bad.   We need to make sure it's possible to build each 
module individually.   That's to prove that a developer outside our 
source tree can do the same thing.   

For the code generation/xsd/xjb things, what we need to do is register a 
ResourceResolver on the tools so that locations can be resolved to jars 
on the classpath.   In the xsd/xjb's, it should be something like:
schemaLocation="/schemas/wsdl.xsd"
or similar and the resolver will do a proper "getClass().getResource(...)" 
thing on it to resolve it.

IMO, this needs to be fixed for M1.

-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194   F:781-902-8001
daniel.kulp@iona.com