forked from phoedos/pmd
Applied patch 1783047 - Maven 2 build
Adding new files for Maven 2 build: * 'eclipse:clean' and 'eclipse:eclipse' works fine two. * 'site' is correctly build but only the xdocs part, it still missing all the stuff that jelly did in maven 1. * 'test' are failing, so are to disable to allow 'package' task to succeed. * 'package' and 'install' works pretty fine too. git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5494 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
parent
663d87db09
commit
4c542b8c86
277
pmd/pom.xml
Normal file
277
pmd/pom.xml
Normal file
@ -0,0 +1,277 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>pmd</groupId>
|
||||
<artifactId>pmd</artifactId>
|
||||
<name>PMD</name>
|
||||
<version>4.0</version>
|
||||
<url>http://pmd.sourceforge.net/</url>
|
||||
<issueManagement>
|
||||
<url>http://www.sourceforge.net/tracker/?group_id=56262</url>
|
||||
</issueManagement>
|
||||
<ciManagement>
|
||||
<notifiers>
|
||||
<notifier>
|
||||
<configuration>
|
||||
<address>tom@infoether.com</address>
|
||||
</configuration>
|
||||
</notifier>
|
||||
</notifiers>
|
||||
</ciManagement>
|
||||
<inceptionYear>2002</inceptionYear>
|
||||
<mailingLists>
|
||||
<mailingList>
|
||||
<name>PMD development</name>
|
||||
<subscribe>http://lists.sourceforge.net/lists/listinfo/pmd-devel</subscribe>
|
||||
<unsubscribe>http://lists.sourceforge.net/lists/listinfo/pmd-devel</unsubscribe>
|
||||
<archive>http://sourceforge.net/mailarchive/forum.php?forum=pmd-devel</archive>
|
||||
</mailingList>
|
||||
</mailingLists>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>tomcopeland</id>
|
||||
<name>Tom Copeland</name>
|
||||
<email>tom@infoether.com</email>
|
||||
<organization>InfoEther</organization>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>dpeugh</id>
|
||||
<name>David Dixon-Peugh</name>
|
||||
<email>ddp@apache.org</email>
|
||||
<organization>Lockheed Martin Corporation</organization>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>olemartin</id>
|
||||
<name>Ole-Martin Mork</name>
|
||||
<email>olemartin@users.sourceforge.net</email>
|
||||
<organization>Bekk Consulting</organization>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>mikkey</id>
|
||||
<name>Miguel Griffa</name>
|
||||
<email>mikkey@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>phherlin</id>
|
||||
<name>Philippe Herlin</name>
|
||||
<email>phherlin@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>jigerjava</id>
|
||||
<name>Jiger Patel</name>
|
||||
<email>jigerjava@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>kubacki</id>
|
||||
<name>Radim Kubacki</name>
|
||||
<email>kubacki@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>tomslot</id>
|
||||
<name>Tomasz Slota</name>
|
||||
<email>tomslot@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>tomslot</id>
|
||||
<name>Alan Ezust</name>
|
||||
<email>ezust@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>nascif</id>
|
||||
<name>Nascif Abousalh Neto</name>
|
||||
<email>nascif@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>allancaplan</id>
|
||||
<name>Allan Caplan</name>
|
||||
<email>allancaplan@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>holobender</id>
|
||||
<name>Sven Jacob</name>
|
||||
<email>holobender@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>wfzelle</id>
|
||||
<name>Wouter Zelle</name>
|
||||
<email>wfzelle@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>hooperbloob</id>
|
||||
<name>Brian Remedios</name>
|
||||
<email>hooperbloob@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>xlv</id>
|
||||
<name>Xavier Le Vourch</name>
|
||||
<email>xlv@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>rgustav</id>
|
||||
<name>Ryan Gustafson</name>
|
||||
<email>rgustav@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>bluejohn</id>
|
||||
<name>Johan Nagels</name>
|
||||
<email>bluejohn@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>tkleiber</id>
|
||||
<name>Torsten Kleiber</name>
|
||||
<email>tkleiber@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>rpelisse</id>
|
||||
<name>Romain Pelisse</name>
|
||||
<email>rpelisse@users.sourceforge.net</email>
|
||||
<roles>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
</developers>
|
||||
<scm>
|
||||
<connection>scm:svn:https://pmd.svn.sourceforge.net/svnroot/pmd/trunk/pmd</connection>
|
||||
<developerConnection>scm:svn:https://pmd.svn.sourceforge.net/svnroot/pmd/trunk/pmd</developerConnection>
|
||||
<url>http://pmd.svn.sourceforge.net/viewvc/pmd/</url>
|
||||
</scm>
|
||||
<organization>
|
||||
<name>InfoEther</name>
|
||||
<url>http://pmd.sourceforge.net/</url>
|
||||
</organization>
|
||||
<build>
|
||||
<sourceDirectory>src</sourceDirectory>
|
||||
<testSourceDirectory>regress</testSourceDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${basedir}</directory>
|
||||
<includes>
|
||||
<include>rulesets/*.xml</include>
|
||||
<include>rulesets/*.properties</include>
|
||||
<include>etc/pmd-nicerhtml.xsl</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<testResources>
|
||||
<testResource>
|
||||
<directory>${basedir}/regress/</directory>
|
||||
<includes>
|
||||
<include>**/*.xml</include>
|
||||
</includes>
|
||||
</testResource>
|
||||
</testResources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<forkMode>once</forkMode>
|
||||
<skip>true</skip>
|
||||
<includes>
|
||||
<include>**/*Test.java</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<encoding>utf8</encoding>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>ant</groupId>
|
||||
<artifactId>ant</artifactId>
|
||||
<version>1.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jaxen</groupId>
|
||||
<artifactId>jaxen</artifactId>
|
||||
<version>1.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>3.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>default</id>
|
||||
<name>Default Repository</name>
|
||||
<url>file:///home/groups/p/pm/pmd/</url>
|
||||
</repository>
|
||||
<site>
|
||||
<id>default</id>
|
||||
<name>Default Site</name>
|
||||
<url>scp://pmd.sourceforge.net//home/groups/p/pm/pmd/htdocs</url>
|
||||
</site>
|
||||
</distributionManagement>
|
||||
</project>
|
||||
|
||||
|
78
pmd/src/site/site.xml
Normal file
78
pmd/src/site/site.xml
Normal file
@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project name="PMD">
|
||||
<!-- TODO: get logos in place -->
|
||||
<body>
|
||||
<breadcrumbs>
|
||||
<item name="SourceForge" href="http://www.sourceforge.net/"/>
|
||||
<item name="PMD" href="http://pmd.sourceforge.net/"/>
|
||||
</breadcrumbs>
|
||||
|
||||
<links>
|
||||
<item name="**** Get the book! ****"
|
||||
href="http://pmdapplied.com/"/>
|
||||
<item name="SourceForge.net Project Page"
|
||||
href="http://sourceforge.net/projects/pmd" />
|
||||
<item name="Hosted by SourceForge"
|
||||
href="http://sourceforge.net" />
|
||||
</links>
|
||||
<menu name="Overview">
|
||||
<item name="Download PMD 4.0" href="http://sourceforge.net/project/showfiles.php?group_id=56262&package_id=51441&release_id=524515" />
|
||||
<item name="What's new in PMD 4.0" href="http://sourceforge.net/project/shownotes.php?release_id=524515&group_id=56262" />
|
||||
<item name="PMD in the news" href="/news.html" />
|
||||
<item name="PMD-related products and books" href="/products.html" />
|
||||
<item name="Best practices" href="/bestpractices.html" />
|
||||
<item name="Future directions" href="/future.html" />
|
||||
<item name="Similar projects" href="/similar-projects.html" />
|
||||
<item name="Credits" href="/credits.html" />
|
||||
<item name="License" href="/license.html" />
|
||||
<item name="What does 'PMD' mean?" href="/meaning.html" />
|
||||
</menu>
|
||||
<menu name="Usage">
|
||||
<item name="Installation" href="/installing.html" />
|
||||
<item name="Command line usage" href="/running.html" />
|
||||
<item name="Ant task usage" href="/ant-task.html" />
|
||||
<item name="Maven plugin usage" href="/maven-plugin.html" />
|
||||
<item name="Mvn plugin usage" href="/mvn-plugin.html" />
|
||||
<item name="IDE plugin usage" href="/integrations.html" />
|
||||
<item name="Suppressing warnings" href="/suppressing.html" />
|
||||
<item name="Finding duplicated code" href="/cpd.html" />
|
||||
<item name="JSP support" href="/jspsupport.html" />
|
||||
</menu>
|
||||
<menu name="Customizing PMD">
|
||||
<item name="Compiling PMD" href="/compiling.html" />
|
||||
<item name="How to write a rule" href="/howtowritearule.html" />
|
||||
<item name="Writing XPath rules" href="/xpathruletutorial.html" />
|
||||
<item name="How to make a rule set" href="/howtomakearuleset.html" />
|
||||
<item name="How it works" href="/howitworks.html" />
|
||||
</menu>
|
||||
<menu name="For example">
|
||||
<item name="Run PMD on a Sourceforge project" href="/scoreboard.html" />
|
||||
</menu>
|
||||
<menu name="Rule Sets">
|
||||
<item name="Index" href="/rules/index.html"/>
|
||||
<item name="Basic" href="/rules/basic.html" />
|
||||
<item name="Braces" href="/rules/braces.html" />
|
||||
<item name="Code Size" href="/rules/codesize.html" />
|
||||
<item name="Clone" href="/rules/clone.html" />
|
||||
<item name="Controversial" href="/rules/controversial.html" />
|
||||
<item name="Coupling" href="/rules/coupling.html" />
|
||||
<item name="Design" href="/rules/design.html" />
|
||||
<item name="Finalizers" href="/rules/finalizers.html" />
|
||||
<item name="Import Statements" href="/rules/imports.html" />
|
||||
<item name="J2EE" href="/rules/j2ee.html" />
|
||||
<item name="Javabeans" href="/rules/javabeans.html" />
|
||||
<item name="JUnit Tests" href="/rules/junit.html" />
|
||||
<item name="Logging (Java)" href="/rules/logging-java.html" />
|
||||
<item name="Logging (Jakarta)" href="/rules/logging-jakarta-commons.html" />
|
||||
<item name="Migrating" href="/rules/migrating.html" />
|
||||
<item name="Naming" href="/rules/naming.html" />
|
||||
<item name="Optimizations" href="/rules/optimizations.html" />
|
||||
<item name="Strict Exceptions" href="/rules/strictexception.html" />
|
||||
<item name="Strings" href="/rules/strings.html" />
|
||||
<item name="Sun Security" href="/rules/sunsecure.html" />
|
||||
<item name="Unused Code" href="/rules/unusedcode.html" />
|
||||
<item name="Java Server Pages" href="/rules/basic-jsp.html" />
|
||||
<item name="Java Server Faces" href="/rules/basic-jsf.html" />
|
||||
</menu>
|
||||
</body>
|
||||
</project>
|
30
pmd/src/site/xdoc/index.xml
Normal file
30
pmd/src/site/xdoc/index.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<document>
|
||||
<properties>
|
||||
<title>Welcome to PMD</title>
|
||||
<author email="jjensen@apache.org">Jeff Jensen</author>
|
||||
</properties>
|
||||
<body>
|
||||
<section name="Welcome to PMD">
|
||||
<p>PMD scans Java source code and looks for potential problems like:</p>
|
||||
<ul>
|
||||
<li>Possible bugs - empty try/catch/finally/switch statements</li>
|
||||
<li>Dead code - unused local variables, parameters and private methods</li>
|
||||
<li>Suboptimal code - wasteful String/StringBuffer usage</li>
|
||||
<li>Overcomplicated expressions - unnecessary if statements, for loops that could be while loops</li>
|
||||
<li>Duplicate code - copied/pasted code means copied/pasted bugs</li>
|
||||
</ul>
|
||||
|
||||
<h3>Download</h3>
|
||||
<p>You can <b><a href="http://sourceforge.net/project/showfiles.php?group_id=56262">download everything from here</a></b>, and you can get an overview of all the rules at the <a href="rules/index.html">rulesets index</a> page.</p>
|
||||
|
||||
<h3>Integrations</h3>
|
||||
<p>PMD is <a href="integrations.html">integrated</a> with JDeveloper, Eclipse, JEdit, JBuilder, BlueJ, CodeGuide, NetBeans/Sun Java Studio Enterprise/Creator, IntelliJ IDEA, TextPad, Maven, Ant, Gel, JCreator, and Emacs.</p>
|
||||
|
||||
<h3>BlueJ</h3>
|
||||
<p>Welcome <a href="http://bluej.org/">BlueJ</a> users! Notes on installing the PMD extension for BlueJ are <a href="integrations.html#bluej">here</a>.</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user