春风博客

春天里,百花香...

导航

<2007年6月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

统计

公告

MAIL: junglesong@gmail.com
MSN: junglesong_5@hotmail.com

Locations of visitors to this page

常用链接

留言簿(11)

随笔分类(224)

随笔档案(126)

个人软件下载

我的其它博客

我的邻居们

最新随笔

搜索

积分与排名

最新评论

阅读排行榜

评论排行榜

我的Maven2之旅:十.更完整的报告.

以前我们尝试过一次Mvn site命令,但由于主控文件pom.xml并不周全,信息不是很完整.
而例子中的节点相对完整多了,使用它执行mvn site命令会生成很完整的报告出来,以下就是这个文件的详细内容:

<project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation
="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    
<!-- The Basics -->
    
<modelVersion>4.0.0</modelVersion>
    
<groupId>com.citigroup.junglesong</groupId>
    
<artifactId>MavenResource</artifactId>
    
<packaging>jar</packaging>
    
<version>1.0-SNAPSHOT</version>
    
<name>MavenResource</name>
    
<url>http://maven.apache.org</url>

    
<!-- dependent Libs -->
    
<dependencies>
        
<dependency>
            
<groupId>junit</groupId>
            
<artifactId>junit</artifactId>
            
<version>3.8.1</version>
            
<scope>test</scope>
        
</dependency>
    
</dependencies>

    
<!-- Build Settings -->
    
<reporting>
        
<plugins>
            
<plugin>
                
<artifactId>
                    maven-project-info-reports-plugin
                
</artifactId>
                
<reportSets>
                    
<reportSet>
                        
<id>sunlink</id>
                        
<reports>
                            
<report>javadoc</report>
                        
</reports>
                        
<inherited>true</inherited>
                        
<configuration>
                            
<links>
                                
<link>
                                    http://java.sun.com/j2se/1.5.0/docs/api/
                                
</link>
                            
</links>
                        
</configuration>
                    
</reportSet>
                
</reportSets>
            
</plugin>
            
<plugin>
                
<groupId>org.apache.maven.plugins</groupId><!--Generate Java Doc -->
                
<artifactId>maven-javadoc-plugin</artifactId>
            
</plugin>
            
<plugin>
                
<groupId>org.apache.maven.plugins</groupId><!-- Code Check -->
                
<artifactId>maven-checkstyle-plugin</artifactId>
                
<configuration>
                    
<configLocation>
                        config/sun_checks.xml
                    
</configLocation>
                
</configuration>
            
</plugin>
            
<plugin>
                
<groupId>org.codehaus.mojo</groupId><!-- Test Report -->
                
<artifactId>surefire-report-maven-plugin</artifactId>
            
</plugin>
            
<plugin>
                
<groupId>org.codehaus.mojo</groupId><!-- HTMLize Source Code -->
                
<artifactId>jxr-maven-plugin</artifactId>
            
</plugin>
            
<plugin><!-- Find Bugs -->
                
<groupId>org.codehaus.mojo</groupId>
                
<artifactId>findbugs-maven-plugin</artifactId>
            
</plugin>
        
</plugins>
    
</reporting>

    
<!-- More Project Information -->
    
<licenses>
        
<license>
            
<name>Apache 2</name>
            
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            
<distribution>repo</distribution>
            
<comments>A business-friendly OSS license</comments>
        
</license>
    
</licenses>

    
<organization>
        
<name>SitInSpring</name>
        
<url>http://www.blogjava.net/sitinspring</url>
    
</organization>

    
<developers>
        
<developer>
            
<id>sitinsprng</id>
            
<name>SitInSpring</name>
            
<email>SitInSpring@ufo.com</email>
            
<url>http://www.blogjava.net/sitinspring</url>
            
<organization>UFO</organization>
            
<organizationUrl>http://www.UFO.org</organizationUrl>
            
<roles>
                
<role>architect</role>
                
<role>developer</role>
            
</roles>
            
<timezone>+8</timezone>
            
<properties>
                
<picUrl>http://www.mxjava.com/logo.gif</picUrl>
            
</properties>
        
</developer>

        
<developer>
            
<id>junglesong</id>
            
<name>Junglesong</name>
            
<email>junglesong@gmail.com</email>
            
<url>http://www.blogjava.net/sitinspring</url>
            
<organization>UFO</organization>
            
<organizationUrl>http://www.UFO.org</organizationUrl>
            
<roles>
                
<role>architect</role>
                
<role>developer</role>
            
</roles>
            
<timezone>+8</timezone>
            
<properties>
                
<picUrl>
                    http://foto.yculblog.com/junglesong/TxtNovelGarden.gif
                
</picUrl>
            
</properties>
        
</developer>
    
</developers>

    
<contributors>
        
<contributor>
            
<name>Alien</name>
            
<email>Alien@hotmail.com</email>
            
<url>http://Alien.com</url>
            
<organization>AlienOrganization</organization>
            
<organizationUrl>
                http://AlienOrganization.com
            
</organizationUrl>
            
<roles>
                
<role>tester</role>
            
</roles>
            
<timezone>-5</timezone>
            
<properties>
                
<gtalk>some.name@gmail.com</gtalk>
            
</properties>
        
</contributor>
    
</contributors>

    
<repositories>
        
<repository>
            
<releases>
                
<enabled>false</enabled>
                
<updatePolicy>always</updatePolicy>
                
<checksumPolicy>warn</checksumPolicy>
            
</releases>
            
<snapshots>
                
<enabled>true</enabled>
                
<updatePolicy>never</updatePolicy>
                
<checksumPolicy>fail</checksumPolicy>
            
</snapshots>
            
<id>codehausSnapshots</id>
            
<name>Codehaus Snapshots</name>
            
<url>http://snapshots.maven.codehaus.org/maven2</url>
            
<layout>default</layout>
        
</repository>
    
</repositories>

    
<!-- Environment Settings -->
    
<mailingLists>
        
<mailingList>
            
<name>User List</name>
            
<subscribe>user-subscribe@127.0.0.1</subscribe>
            
<unsubscribe>user-unsubscribe@127.0.0.1</unsubscribe>
            
<post>user@127.0.0.1</post>
            
<archive>http://127.0.0.1/user/</archive>
            
<otherArchives>
                
<otherArchive>
                    http://base.google.com/base/1/127.0.0.1
                
</otherArchive>
            
</otherArchives>
        
</mailingList>
    
</mailingLists>
</project>



上文中,粗略部分加上了注释,具体细节您可以和site下生成的系列文件对照一下,相信不用我再赘述.如果有疑问请参看Maven的pom介绍文档.

可以其中需要的部分摘取下来放到您的pom.xml中去,以生成所需要的报告.

例程下载:
http://www.blogjava.net/Files/sitinspring/MavenResourceReportsAndAddInfo20070622153905.zip

posted on 2007-06-21 16:55 sitinspring 阅读(2718) 评论(1)  编辑  收藏 所属分类: Maven2之旅

评论

# re: 我的Maven2之旅:十.更完整的报告. 2012-06-28 13:56 ffb

请问maven生成的html页面上的logo图片如何更换呢?源文件中找不到相应的设置,完全不知道那些图片是哪里来的  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 
sitinspring(http://www.blogjava.net)原创,转载请注明出处.