maven - Error importing cxf projects into eclipse using m2e: Couldn't find that class org.apache.cxf.pmd.UnsafeStringConstructorRule -


i check out cxf sources , try import project eclipse using "import maven project".

i error: couldn't find class org.apache.cxf.pmd.unsafestringconstructorrule m2e.

so seems cxf defines rule there , pmd plugin not find it. ideas?

regarding apache cxf parent pom, mentions profile named m2eclipse defines maven-pmd-plugin the dependency following: -

<profile>     <id>m2eclipse</id>     <build>         <plugins>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-pmd-plugin</artifactid>                 <version>2.7.1</version>                 <dependencies>                     <dependency>                         <groupid>org.apache.cxf.build-utils</groupid>                         <artifactid>cxf-buildtools</artifactid>                         <version>${cxf.build-utils.version}</version>                     </dependency>                 </dependencies>                 <configuration>                     <rulesets>                         <ruleset>                             ${cxf.resources.base.path}cxf-pmd-ruleset.xml                         </ruleset>                     </rulesets>                     <sourceencoding>utf-8</sourceencoding>                     <targetjdk>1.6</targetjdk>                     <linkxref>false</linkxref>                     <includetests>true</includetests>                     <verbose>true</verbose>                     <excluderoots>                         <excluderoot>${basedir}/src/main/generated</excluderoot>                     </excluderoots>                 </configuration>                 <executions>                     <execution>                         <id>validate</id>                         <phase>validate</phase>                         <goals>                             <goal>check</goal>                         </goals>                     </execution>                 </executions>             </plugin>         </plugins>     </build> </profile> 

you may noticed there no activation in this profile.

after download org.apache.cxf.build-utils:cxf-buildtools:2.5.0:jar form maven central repository, have found class named org.apache.cxf.pmd.unsafestringconstructorrule well.

this may root cause of problem. imho, may try activate profile missing properties e.g.

<profile>     <id>m2eclipse</id>     <activation>         <property>            <name>!skipm2e</name>         </property>     </activation>     .... </profile> 

i hope may help.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -