Version 2 (modified by pavlina, 16 years ago) (diff) |
---|
Platform Deployment Build with Maven
If you don't have Maven installed on your machine yet, use PLATFORM_INFRASTRUCTURE_OVERVIEW
The syntax for running Maven commands is mvn [command]. The basic of them are:
- validate: validate the project is correct and all necessary information is available
- compile: compile the source code of the project
- test: test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed
- package: take the compiled code and package it in its distributable format, such as a JAR.
- integration-test: process and deploy the package if necessary into an environment where integration tests can be run
- verify: run any checks to verify the package is valid and meets quality criteria
- install: install the package into the local repository, for use as a dependency in other projects locally
- deploy: done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.
- clean: cleans up artifacts created by prior builds
- site: generates site documentation for this project
To generate the reports you want you should add the report plug-ins you need into the reporting section at the end of the pom.xml file.
The automatic generated reports are:
- CPD Report: Duplicate code detection.
- Checkstyle: Report on coding style conventions.
- FindBugs Report: Generates a source code report with the FindBugs Library.
- JavaDocs: JavaDoc API documentation.
- Maven Surefire Report: Report on the test results of the project.
- PMD Report: Verification of coding rules.
- Source Xref: HTML based, cross-reference version of Java source code.
Here is documentation for these plug-ins: http://shale.apache.org/shale-apps/shale-mailreader/maven-reports.html
There is also Maven Project Info Reports plug-in which should be integrated.
- ... this is the maven generated site with the reports (it is generated by executing mvn site in target/site)