You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Loh Kok Jeng <ko...@gmail.com> on 2010/05/22 08:31:22 UTC

Problem Importing CXF Source into Eclipse

Hi,

I imported CXF source codes into Eclipse as described in the
http://cxf.apache.org/setting-up-eclipse.html

However, I still get "The project cannot built until the build path
errors are resolved".

On the build path settings, the jars are pointed to "M2_REPO/..../...jar".

How can I fix this problem?

Thanks.

Re: Problem Importing CXF Source into Eclipse

Posted by Daniel Kulp <dk...@apache.org>.
On Saturday 22 May 2010 5:31:49 am Nilupa Bandara wrote:
> On Sat, May 22, 2010 at 8:31 AM, Loh Kok Jeng <ko...@gmail.com> wrote:
> > Hi,
> > 
> > I imported CXF source codes into Eclipse as described in the
> > http://cxf.apache.org/setting-up-eclipse.html
> > 
> > However, I still get "The project cannot built until the build path
> > errors are resolved".
> > 
> > On the build path settings, the jars are pointed to
> > "M2_REPO/..../...jar".
> 
> You need to define M2_REPO classpath variable pointing to your local maven2
> repository. Select from menu bar, Windows -> Preferences -> Java -> Build
> Path -> Classpath Variable -> New
> Name :    M2_REPO
> Path : <path-to-m2-local-repository> (For instance
> /home/user/.m2/repository)
> 
> Once you set it, project will recompile and it will clear up those build
> path errors.

Hmmm......    the -Psetup.eclipse stuff should have done that for you.   Not 
sure what is going on if it's not.   Not good.

Dan



> 
> HTH
> Nilupa
> 
> > How can I fix this problem?
> > 
> > Thanks.

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Re: Problem Importing CXF Source into Eclipse

Posted by Nilupa Bandara <ni...@gmail.com>.
On Sat, May 22, 2010 at 8:31 AM, Loh Kok Jeng <ko...@gmail.com> wrote:

> Hi,
>
> I imported CXF source codes into Eclipse as described in the
> http://cxf.apache.org/setting-up-eclipse.html
>
> However, I still get "The project cannot built until the build path
> errors are resolved".
>
> On the build path settings, the jars are pointed to "M2_REPO/..../...jar".
>

You need to define M2_REPO classpath variable pointing to your local maven2
repository. Select from menu bar, Windows -> Preferences -> Java -> Build
Path -> Classpath Variable -> New
Name :    M2_REPO
Path : <path-to-m2-local-repository> (For instance
/home/user/.m2/repository)

Once you set it, project will recompile and it will clear up those build
path errors.

HTH
Nilupa

>
> How can I fix this problem?
>
> Thanks.
>



-- 
Nilupa Bandara