Tag-Archive for » maven «

Dec
18

We started code review using Crucible, so i searched for some code analysis maven plugins. PMD is a Java code analysis tool and used to find potential problems like unused code, duplicate code, unused variables… PMD is useful and easy:

pom.xml:


<reporting>
<outputdirectory>target/reporting/pmd</outputdirectory>
<plugins>
<plugin>
<groupid>org.apache.maven.plugins</groupid>
<artifactid>maven-pmd-plugin</artifactid>
</plugin>
</plugins>
</reporting>

more…

Nov
27

I upgraded maven 2.0.4 to 2.0.7 and the i couldn’t compile the existing projects because of filtering problem – filtering files couldn’t be read, the source of problem was maven-assembly-plugin. I think such kind of incongruities generally may occur. The simplest solution of such problems is simply renaming the maven folder ….m2repositoryorgapache and installing the project again for full download of all maven and maven plugins :)

The details of the problem and the solution is below:

http://jira.codehaus.org/browse/MASSEMBLY-178

Category: java  Tags: ,  Leave a Comment