cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Checkstyle for CXF sources
Date Thu, 16 Feb 2012 19:17:51 GMT
On Wednesday, February 15, 2012 2:49:11 PM Andrei Shakirin wrote:
> Hi Dan,
> 
> Yep, it was the issue.
> After run on root level it works.
> 
> Thanks for help!
> I would like extend the documentation regarding checkstyle in CXF Wiki.

Feel free!   You have an ICLA on file and your confluence user is marked 
appropriately.  Thus, you should be able to update the docs.  :-)

Dan


> 
> Regards,
> Andrei.
> 
> -----Original Message-----
> From: Daniel Kulp [mailto:dkulp@apache.org]
> Sent: 15 February 2012 13:37
> To: users@cxf.apache.org
> Cc: Andrei Shakirin
> Subject: Re: Checkstyle for CXF sources
> 
> 
> The -Psetup.eclipse stuff needs to be run once from the root of the CXF tree
> to get the workspace stuff setup.   Can you try from there?
> 
> 
> Dan
> 
> On Wednesday, February 15, 2012 9:27:06 AM Andrei Shakirin wrote:
> > Hi Dan,
> > 
> > Have updated settings.xml, unfortunately still doesn't work ...
> > 
> > I see my workspace dir in maven output:
> > "Using Eclipse Workspace: D:\Projects\CXF\workspace"
> > 
> > , but there are not cxf-checkstyle-corba.xml  and  cxf-checkstyle.xml
> > files in workspace dir.
> > 
> > Am I missing some steps? Is there any special things for Windows?
> > 
> > By mvn -Psetup.eclipse I see the following output:
> > 
> > [INFO] Scanning for projects...
> > [INFO]
> > [INFO]
> > ----------------------------------------------------------------------
> > -- [INFO] Building Apache CXF Runtime WS Security 2.6.0-SNAPSHOT
> > [INFO]
> > ----------------------------------------------------------------------
> > --
> > [INFO]
> > [INFO] --- maven-bundle-plugin:2.3.6:cleanVersions (versions) @
> > cxf-rt-ws-security --- [INFO] [INFO] ---
> > cxf-xml2fastinfoset-plugin:2.4.0:xml2fastinfoset (xml2fastinfoset) @
> > cxf-rt-ws-security --- [INFO] [INFO] ---
> > cxf-xjc-plugin:2.4.0:xsdtojava
> > (generate-sources) @ cxf-rt-ws-security --- [INFO] [INFO] ---
> > maven-remote-resources-plugin:1.2.1:process (default) @
> > cxf-rt-ws-security
> > --- [INFO] [INFO] --- maven-resources-plugin:2.5:resources
> > (default-resources) @ cxf-rt-ws-security --- [debug] execute
> > contextualize [INFO] Using 'UTF-8' encoding to copy filtered
> > resources. [INFO] Copying 4 resources [INFO] Copying 2 resources
> > [INFO] skip non existing resourceDirectory
> > D:\Projects\CXF\ws-src\rt\ws\security\src\main\resources-filtered
> > [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] [INFO] ---
> > maven-compiler-plugin:2.3.2:compile (default-compile) @
> > cxf-rt-ws-security --- [INFO] Nothing to compile - all classes are up
> > to date [INFO] [INFO] --- maven-bundle-plugin:2.3.6:manifest
> > (bundle-manifest) @ cxf-rt-ws-security --- [INFO] [INFO] >>>
> > maven-eclipse-plugin:2.8:eclipse
> > (setup.eclipse.project) @ cxf-rt-ws-security >>> [INFO] [INFO] ---
> > maven-bundle-plugin:2.3.6:cleanVersions (versions) @
> > cxf-rt-ws-security --- [INFO] [INFO] ---
> > cxf-xml2fastinfoset-plugin:2.4.0:xml2fastinfoset
> > (xml2fastinfoset) @ cxf-rt-ws-security --- [INFO] [INFO] ---
> > cxf-xjc-plugin:2.4.0:xsdtojava (generate-sources) @ cxf-rt-ws-security
> > --- [INFO] [INFO] --- maven-remote-resources-plugin:1.2.1:process
> > (default) @ cxf-rt-ws-security --- [INFO] [INFO] <<<
> > maven-eclipse-plugin:2.8:eclipse
> > (setup.eclipse.project) @ cxf-rt-ws-security <<< [INFO] [INFO] ---
> > maven-eclipse-plugin:2.8:eclipse (setup.eclipse.project) @
> > cxf-rt-ws-security --- [INFO] Using Eclipse Workspace:
> > D:\Projects\CXF\workspace [INFO] Adding default classpath container:
> > org.eclipse.jdt.launching.JRE_CONTAINER [INFO] Resource directory's
> > path matches an existing source directory. Resources will be merged
> > with the source director y src/main/java [INFO] Resource directory's
> > path matches an existing source directory. Resources will be merged
> > with the source director y target/maven-shared-archive-resources
> > [INFO] Resource directory's path matches an existing source directory.
> > Resources will be merged with the source director y src/test/java
> > [INFO] Resource directory's path matches an existing source directory.
> > Resources will be merged with the source director y
> > target/maven-shared-archive-resources [INFO] Wrote Eclipse project for
> > "cxf-rt-ws-security" to D:\Projects\CXF\ws-src\rt\ws\security. [INFO]
> > 
> >        Javadoc for some artifacts is not available.
> >        Please run the same goal with the -DdownloadJavadocs=true
> > 
> > parameter in order to check remote repositories for jav adoc. List of
> > 
> > artifacts without a javadoc archive:
> >          o commons-logging:commons-logging:1.1.1
> >          o org.apache.geronimo.specs:geronimo-javamail_1.4_spec:1.7.1
> >          o wsdl4j:wsdl4j:1.6.2
> >          o com.sun.xml.bind:jaxb-impl:2.1.13
> >          o xml-resolver:xml-resolver:1.2
> >          o org.bouncycastle:bcprov-jdk15:1.45
> >          o xalan:xalan:2.7.1
> >          o xalan:serializer:2.7.1
> > 
> > [INFO]
> > ----------------------------------------------------------------------
> > --
> > [INFO] BUILD SUCCESS
> > [INFO]
> > ----------------------------------------------------------------------
> > --
> > 
> > The artefacts for project are created: .checkstyle, .pmd, .classpath,
> > .project, but not for workspace.
> > 
> > Regards,
> > Andrei.
> > 
> > 
> > -----Original Message-----
> > From: Daniel Kulp [mailto:dkulp@apache.org]
> > Sent: 14 February 2012 17:02
> > To: users@cxf.apache.org
> > Cc: Andrei Shakirin
> > Subject: Re: Checkstyle for CXF sources
> > 
> > On Tuesday, February 14, 2012 3:18:16 PM Andrei Shakirin wrote:
> > > Hi,
> > > 
> > > Could somebody give me advise how to configure checkstyle with
> > > Eclipse for CXF sources? I did all what specified on
> > > http://cxf.apache.org/connecting-maven-eclipse-checkstyle-and-pmd.ht
> > > ml
> > > 
> > > : run maven with -P setup.eclipse, eclipse artifacts are generated
> > > 
> > > inclusive .checkstyle, .pmd, .ruleset, but Eclipse doesn't really
> > > accept the checkstyle and PDM. I use Eclipse Indigo 3.7.1.
> > > 
> > > What I do wrong?
> > > Is there other way to setup them?
> > 
> > That should "just work" providing you have it pointing at your workspace
> > correctly.   The default is "../workspace" which may not be your location.
> > 
> > In my .m2/settings.xml, I have:
> >     <activeProfiles>
> >     
> >         <activeProfile>extra</activeProfile>
> >     
> >     </activeProfiles>
> >     <profiles>
> >     
> >         <profile>
> >         
> >             <id>extra</id>
> >             <properties>
> >             
> >                 <gpg.useagent>true</gpg.useagent>
> > 
> > <eclipse.workspace>/home/dkulp/working/workspace</eclipse.workspace>
> > <downloadSources>true</downloadSources>
> > 
> > <eclipse.workspace.dir>/home/dkulp/working/workspace</eclipse.workspac
> > e.dir
> > 
> > <eclipse.output.directory>${project.build.outputDirectory}</eclipse.output
> > .
> > directory> </properties>
> > 
> >         </profile>
> > 
> > </profiles>
> > 
> > which sets the workspace dir to the location of my workspace.   You can
> > check if your workspace dir ends up with cxf-checkstyle-corba.xml  and
> > cxf- checkstyle.xml files in it.
> > 
> > Also, occassionaly, when Eclipse imports projects, it doesn't read the
> > .pmd
> > and .checkstyle things properly.   Usually if you close the projects,
> > re-run "mvn -Psetup.eclipse", then open the projects and refresh them
> > all, it kind of fixes itself.
> 
> --
> Daniel Kulp
> dkulp@apache.org - http://dankulp.com/blog Talend Community Coder -
> http://coders.talend.com
-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Mime
View raw message