一直想学习一下maven的管理功能,今天晚上尝试了一下
mvn install:install-file -DgroupId=htmlcleaner -DartifactId=htmlcleaner -Dversion=1.6 -Dpackaging=jar -Dfile=htmlcleaner1.6.jar -DgeneratePom=true
1: mvn archetype:create -DgroupId=com.linkmed -DartifactId=uucell
创建一个项目
2:修改pom加入 一些 项目的report
java 代码
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <configuration>
- <locales>en,zh_cn</locales>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>jxr-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <artifactId>maven-clover-plugin</artifactId>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-report-plugin</artifactId>
- </plugin>
- </plugins>
- </reporting>
可以生成 javadoc testcase 等报告 。