You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Gary Gregory <GG...@seagullsoftware.com> on 2010/07/23 03:31:04 UTC

CXF, Eclipse and Maven

Hello All,

I updated 2.2.x from SVN and re-ran 'mvn eclipse:eclipse' which I had only done once when I first imported CXF into Eclipse. Some generated Eclipse .classpath files are missing some entries.

Could this be a pom.xml issue as opposed to Maven plugin issue?

For example, in cxf-api, this classpathentry is missing:

  <classpathentry kind="src" path="target/generated/src/test/java" including="**/*.java"/>


Problems like this shows up in:

- cxf-api
- cxf-rt-bindings-http
- cxf-rt-databinding-jaxb
- cxf-rt-databinding-xmlbeans
- cxf-rt-javascript
- cxf-systests-uncategorized
- cxf-tools-java2ws

I fixed those by hand by adding to the .classpath:

  <classpathentry kind="src" path="target/generated/src/test/java" including="**/*.java"/>

cxf-systests-databinding was fixed by adding:

  <classpathentry kind="src" path="src/test/generated" output="target/test-classes"/>


And problems remain in:

- cxf-systests-codegen
- cxf-systests-ws-specs

Thoughts?

Gary Gregory
Senior Software Engineer
Seagull Software
email: ggregory@seagullsoftware.com
email: ggregory@apache.org
www.seagullsoftware.com 


Re: CXF, Eclipse and Maven

Posted by Daniel Kulp <dk...@apache.org>.
On Friday 23 July 2010 12:35:50 pm Gary Gregory wrote:
> > Basically, by default, eclipse:eclipse only runs to the process sources
> > phase and thus would not get the stuff generated after that (which
> > included generated test code).
> > 
> > See:
> > http://cxf.apache.org/setting-up-eclipse.html
> > 
> > Dan
> 
> Thank you Dan. I ran both commands which eventually resolved all Eclipse
> compile issues.
> 
> I am not sure that all .classpath files were regenerated though, based on
> my quick inspection of one .classpath file timestamps. Maybe my manual
> changes are still in place.
> 
> Since doing this pass is slow, I'd rather not do it just for fun.
> 
> Does anyone know if these commands overwrite existing .classpath files?

I think it does if something actually changes.   Not 100% sure though.

Dan


> 
> Thank you,
> 
> Gary
> 
> > On Thursday 22 July 2010 9:31:04 pm Gary Gregory wrote:
> > > Hello All,
> > > 
> > > I updated 2.2.x from SVN and re-ran 'mvn eclipse:eclipse' which I had
> > > only done once when I first imported CXF into Eclipse. Some generated
> > > Eclipse .classpath files are missing some entries.
> > > 
> > > Could this be a pom.xml issue as opposed to Maven plugin issue?
> > > 
> > > For example, in cxf-api, this classpathentry is missing:
> > >   <classpathentry kind="src" path="target/generated/src/test/java"
> > > 
> > > including="**/*.java"/>
> > > 
> > > 
> > > Problems like this shows up in:
> > > 
> > > - cxf-api
> > > - cxf-rt-bindings-http
> > > - cxf-rt-databinding-jaxb
> > > - cxf-rt-databinding-xmlbeans
> > > - cxf-rt-javascript
> > > - cxf-systests-uncategorized
> > > - cxf-tools-java2ws
> > > 
> > > I fixed those by hand by adding to the .classpath:
> > >   <classpathentry kind="src" path="target/generated/src/test/java"
> > > 
> > > including="**/*.java"/>
> > > 
> > > cxf-systests-databinding was fixed by adding:
> > >   <classpathentry kind="src" path="src/test/generated"
> > > 
> > > output="target/test-classes"/>
> > > 
> > > 
> > > And problems remain in:
> > > 
> > > - cxf-systests-codegen
> > > - cxf-systests-ws-specs
> > > 
> > > Thoughts?
> > > 
> > > Gary Gregory
> > > Senior Software Engineer
> > > Seagull Software
> > > email: ggregory@seagullsoftware.com
> > > email: ggregory@apache.org
> > > www.seagullsoftware.com
> > 
> > --
> > Daniel Kulp
> > dkulp@apache.org
> > http://dankulp.com/blog

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

RE: CXF, Eclipse and Maven

Posted by Gary Gregory <GG...@seagullsoftware.com>.
> -----Original Message-----
> From: Daniel Kulp [mailto:dkulp@apache.org]
> Sent: Thursday, July 22, 2010 18:38
> To: Gary Gregory
> Cc: users@cxf.apache.org
> Subject: Re: CXF, Eclipse and Maven
> 
> 
> Try one of:
> 
> mvn process-test-sources eclipse:eclipse
> 
> or
> 
> mvn -Psetup.eclipse
> 
> Basically, by default, eclipse:eclipse only runs to the process sources phase
> and thus would not get the stuff generated after that (which included
> generated test code).
> 
> See:
> http://cxf.apache.org/setting-up-eclipse.html
> 
> Dan

Thank you Dan. I ran both commands which eventually resolved all Eclipse compile issues. 

I am not sure that all .classpath files were regenerated though, based on my quick inspection of one .classpath file timestamps. Maybe my manual changes are still in place.

Since doing this pass is slow, I'd rather not do it just for fun.

Does anyone know if these commands overwrite existing .classpath files?

Thank you,

Gary 

> 
> 
> On Thursday 22 July 2010 9:31:04 pm Gary Gregory wrote:
> > Hello All,
> >
> > I updated 2.2.x from SVN and re-ran 'mvn eclipse:eclipse' which I had only
> > done once when I first imported CXF into Eclipse. Some generated Eclipse
> > .classpath files are missing some entries.
> >
> > Could this be a pom.xml issue as opposed to Maven plugin issue?
> >
> > For example, in cxf-api, this classpathentry is missing:
> >
> >   <classpathentry kind="src" path="target/generated/src/test/java"
> > including="**/*.java"/>
> >
> >
> > Problems like this shows up in:
> >
> > - cxf-api
> > - cxf-rt-bindings-http
> > - cxf-rt-databinding-jaxb
> > - cxf-rt-databinding-xmlbeans
> > - cxf-rt-javascript
> > - cxf-systests-uncategorized
> > - cxf-tools-java2ws
> >
> > I fixed those by hand by adding to the .classpath:
> >
> >   <classpathentry kind="src" path="target/generated/src/test/java"
> > including="**/*.java"/>
> >
> > cxf-systests-databinding was fixed by adding:
> >
> >   <classpathentry kind="src" path="src/test/generated"
> > output="target/test-classes"/>
> >
> >
> > And problems remain in:
> >
> > - cxf-systests-codegen
> > - cxf-systests-ws-specs
> >
> > Thoughts?
> >
> > Gary Gregory
> > Senior Software Engineer
> > Seagull Software
> > email: ggregory@seagullsoftware.com
> > email: ggregory@apache.org
> > www.seagullsoftware.com
> 
> --
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog

Re: CXF, Eclipse and Maven

Posted by Daniel Kulp <dk...@apache.org>.
Try one of:

mvn process-test-sources eclipse:eclipse

or 

mvn -Psetup.eclipse

Basically, by default, eclipse:eclipse only runs to the process sources phase 
and thus would not get the stuff generated after that (which included 
generated test code).  

See:
http://cxf.apache.org/setting-up-eclipse.html

Dan


On Thursday 22 July 2010 9:31:04 pm Gary Gregory wrote:
> Hello All,
> 
> I updated 2.2.x from SVN and re-ran 'mvn eclipse:eclipse' which I had only
> done once when I first imported CXF into Eclipse. Some generated Eclipse
> .classpath files are missing some entries.
> 
> Could this be a pom.xml issue as opposed to Maven plugin issue?
> 
> For example, in cxf-api, this classpathentry is missing:
> 
>   <classpathentry kind="src" path="target/generated/src/test/java"
> including="**/*.java"/>
> 
> 
> Problems like this shows up in:
> 
> - cxf-api
> - cxf-rt-bindings-http
> - cxf-rt-databinding-jaxb
> - cxf-rt-databinding-xmlbeans
> - cxf-rt-javascript
> - cxf-systests-uncategorized
> - cxf-tools-java2ws
> 
> I fixed those by hand by adding to the .classpath:
> 
>   <classpathentry kind="src" path="target/generated/src/test/java"
> including="**/*.java"/>
> 
> cxf-systests-databinding was fixed by adding:
> 
>   <classpathentry kind="src" path="src/test/generated"
> output="target/test-classes"/>
> 
> 
> And problems remain in:
> 
> - cxf-systests-codegen
> - cxf-systests-ws-specs
> 
> Thoughts?
> 
> Gary Gregory
> Senior Software Engineer
> Seagull Software
> email: ggregory@seagullsoftware.com
> email: ggregory@apache.org
> www.seagullsoftware.com

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