Maven Dashboard Plugin Integration

Source: Internet
Author: User
Tags checkstyle

This article link: http://blog.csdn.net/kongxx/article/details/7757578

Finally look at MAVEN's dashboard plug-in integration, first modifying the project's Pom.xml file, adding Dashboard-maven-plugin Plug-ins, as follows:

<project> ...
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>dashboard-maven-plugin</artifactId>
                <version>1.0.0-beta-1</version >
            </plugin>
        </plugins>
    </reporting>
    ...
</project>
The specific commands for the dashboard plug-in are as follows

MVN site
mvn dashboard:dashboard
Here is a snippet of my pom.xml file using the plugins described in the previous articles and the dashboard plug-ins.
<project> ... <properties> <checkstyle.config.location>config/maven_checks.xml</check Style.config.location> </properties> ... <reporting> <plugins> &LT;PL Ugin> <groupId>org.apache.maven.plugins</groupId> <artifactid>maven-c

            Heckstyle-plugin</artifactid> <version>2.9.1</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId> Findbugs-maven-plugin</artifactid> <version>2.5.1</version> <configur 
                Ation> <xmlOutput>true</xmlOutput> <effort>Max</effort> </configuration> </plugin> <plugin> <groupi D>org.codehaus.mojo&lT;/groupid> <artifactId>cobertura-maven-plugin</artifactId> <version> 2.5.1</version> </plugin> <plugin> <groupid>org.codehaus. Mojo</groupid> <artifactId>dashboard-maven-plugin</artifactId> <versi on>1.0.0-beta-1</version> </plugin> <plugin> <groupId>
                Org.apache.maven.plugins</groupid> <artifactId>maven-jxr-plugin</artifactId>
    
    <version>2.3</version> </plugin> </plugins> </reporting>
            <pluginRepositories> <pluginRepository> <id>codehaus repository</id> <url>http://repository.codehaus.org/</url> </pluginRepository> </pluginrepositories > </project>
Run the following command individually

MVN package
mvn findbugs:findbugs
mvn, Checkstyle:checkstyle mvn cobertura:cobertura mvn
: Dashboard
Then open the dashboard page to view the results in the Target/site directory.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.