<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/feedsky1.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.wsria.com" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/wsria" type="application/rss+xml"></fs:self_link><lastBuildDate>Fri, 03 Feb 2012 18:53:27 GMT</lastBuildDate><title>what is the RIA? Just it……咖啡兔</title><description>囊括RIA技术家族:xhtml、css、js、jQuery；强大的Java家族:struts+hibernate+spring</description><image><url>http://www.feedsky.com/images/feedsky_logologo.gif</url><title>what is the RIA? Just it……咖啡兔</title><link>http://www.wsria.com</link></image><link>http://www.wsria.com</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Fri, 03 Feb 2012 18:53:27 GMT</pubDate><item><title>Linux(Ubuntu)环境安装配置Nginx+Dokuwiki</title><link>http://item.feedsky.com/~feedsky/wsria/~8456624/601999612/5406562/1/item.html</link><content:encoded>&lt;h3&gt;前言&lt;/h3&gt;
&lt;p&gt;这几天一直忙着公司项目的整合，添加了一些配置文件可以结合Maven灵活控制项目（编译、打包），最终能达到项目结构的拆合自如；连续的修改产生了很多配置项，也没有很清楚的描述这样对以后势必造成不好理解，所以还是为公搭建一个WIKI服务（个人已有）。&lt;/p&gt;
&lt;p&gt;我的博客和WIKI是放在一起的，使用的apache作为web服务器，公司的服务器上安装的是&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/nginx&quot; title=&quot;查看 nginx 中所有文章&quot; target=&quot;_blank&quot;&gt;nginx&lt;/a&gt;&lt;/span&gt;和apache，但是apache仅仅只开放了svn服务端口，而且以后的项目都是用&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/nginx&quot; title=&quot;查看 nginx 中所有文章&quot; target=&quot;_blank&quot;&gt;nginx&lt;/a&gt;&lt;/span&gt;作为静态代理和负载均衡，不废话了，action。&lt;/p&gt;
&lt;h3&gt;一、准备工作&lt;/h3&gt;
&lt;p&gt;已Ubuntu 10.04 LTS为例：&lt;/p&gt;
&lt;p&gt;安装nginx和php-cgi就不说了，&lt;a href=&quot;#refers&quot;&gt;参考本博客的配置&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;二、配置nginx&lt;/h3&gt;
&lt;p&gt;下载Doku&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/wiki&quot; title=&quot;查看 wiki 中所有文章&quot; target=&quot;_blank&quot;&gt;wiki&lt;/a&gt;&lt;/span&gt;：&lt;a href=&quot;http://www.splitbrain.org/projects/dokuwiki&quot; target=&quot;_blank&quot;&gt;http://www.splitbrain.org/projects/dokuwiki&lt;/a&gt;，然后解压到/usr/share/&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/dokuwiki&quot; title=&quot;查看 dokuwiki 中所有文章&quot; target=&quot;_blank&quot;&gt;dokuwiki&lt;/a&gt;&lt;/span&gt;目录中
&lt;/p&gt;
&lt;p&gt;创建文件：/etc/nginx/conf.d/&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/dokuwiki&quot; title=&quot;查看 dokuwiki 中所有文章&quot; target=&quot;_blank&quot;&gt;dokuwiki&lt;/a&gt;&lt;/span&gt;.conf&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;sudo vi /etc/nginx/conf.d/doku&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/wiki&quot; title=&quot;查看 wiki 中所有文章&quot; target=&quot;_blank&quot;&gt;wiki&lt;/a&gt;&lt;/span&gt;.conf&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;复制以下内容到/etc/nginx/conf.d/doku&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/wiki&quot; title=&quot;查看 wiki 中所有文章&quot; target=&quot;_blank&quot;&gt;wiki&lt;/a&gt;&lt;/span&gt;.conf&lt;/p&gt;
&lt;pre class=&quot;brush: plain; highlight: [11]; title: ; notranslate&quot;&gt;
server{
	 #listen 80;
	 index index.html index.php doku.php;
	 #make sure a global root is defined here
	 #(...)

	access_log /var/log/dokuwiki.access_log;
	error_log /var/log/dokuwiki.error_log;

	 location ~ ^/dokuwiki/.*\.php {
	 	 root           /usr/share;
		 include        fastcgi_params;
		 fastcgi_pass   127.0.0.1:9000;
		 fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
	 }

	 # serve static files
	 location ~ ^/dokuwiki/lib/  {
		 root	 /usr/share;
		 expires 30d;
	 }

	 location ~ ^/dokuwiki/conf/ { deny all; }
	 location ~ ^/dokuwiki/data/ { deny all; }
	 location ~ /\.ht            { deny all; }
 }
&lt;/pre&gt;
&lt;blockquote&gt;&lt;p&gt;
这里要明确第11行的root是dokuwiki目录的上一级，也就是/usr/share，参考：&lt;a href=&quot;http://sudone.com/nginx/nginx_alias.html&quot; target=&quot;_blank&quot;&gt;Nginx虚拟目录&lt;/a&gt;
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;启动php-fastcgi：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;sudo service php-fastcgi start&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;现在访问：http://localhost/dokuwiki/install.php，按照提示安装就可以了。&lt;/p&gt;
&lt;h3 id=&quot;refers&quot;&gt;参考资料：&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.wsria.com/archives/1540&quot; target=&quot;_blank&quot;&gt;Ubuntu配置ngnix+phpmyadmin&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.dokuwiki.org/install:nginx&quot; target=&quot;_blank&quot;&gt;http://www.dokuwiki.org/install:nginx&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;margin-top: 15px; font-style: italic&quot;&gt;
&lt;p&gt;&lt;strong&gt;原创文章，转载请注明：&lt;/strong&gt; 转载自&lt;a href=&quot;http://www.wsria.com/&quot;&gt;what is the RIA?  just it…||咖啡兔&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;本文链接地址:&lt;/strong&gt; &lt;a href=&quot;http://www.wsria.com/archives/1613&quot;&gt;Linux(Ubuntu)环境安装配置Nginx+Dokuwiki&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;div style=&quot;float:left; text-align:left;&gt;&lt;img alt='' src='http://1.gravatar.com/avatar/d4c01dc675bbabaf50ed1c9e4a07f96e?s=100&amp;amp;d=monsterid&amp;amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /&gt;&lt;/div&gt;&lt;h3&gt;&lt;a href='http://www.wsria.com/archives/author/admin' title='咖啡兔'&gt;咖啡兔&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;一只咖啡兔，热爱开源，喜欢追踪、研究新技术，向往背包游……
讲究效率，坚信：“工欲善其事必先利其器”
使用Linux（Ubuntu），基于Java和jQuery开发企业RIA应用&lt;/p&gt;&lt;p&gt;&lt;a href='http://www.wsria.com' title='咖啡兔'&gt;Website&lt;/a&gt; - &lt;a href='http://www.wsria.com/archives/author/admin' title='More posts by 咖啡兔'&gt;More Posts&lt;/a&gt; &lt;/p&gt;&lt;/p&gt;&lt;img src=&quot;http://www.wsria.com/?ak_action=api_record_view&amp;id=1613&amp;type=feed&quot; alt=&quot;&quot; /&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1613&quot;&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Ubuntu配置ngnix+phpmyadmin&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1015&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1613&quot;&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;最新消息：本站的WIKI开通了 wiki.wsria.cn&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1613&quot;&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Ubuntu安装ORACLE-XE&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1613&quot;&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Linux下springside4快捷脚本（quick-start、generate-project）&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1613&quot;&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Linux下springside3快捷脚本（quick-start、generate-project）&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601999612/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601999612/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.wsria.com/archives/1613/feed</wfw:commentRss><slash:comments>0</slash:comments><description>前言 这几天一直忙着公司项目的整合，添加了一些配置文件可以结合Maven灵活控制项目（编译、打包），最终能达到项目结构的拆合自如；连续的修改产生了很多配置项，也没有很清楚的描述这样对以后势必造成不好理解，所以还是为公搭建一个WIKI服务（个人已有）。 我的博客和WIKI是放在一起的，使用的apache作为web服务器，公司的服务器上安装的是nginx和apache，但是apache仅仅只开放了svn服务端口，而且以后的项目都是用nginx作为静态代理和负载均衡，不废话了，action。 一、准备工作 已Ubuntu 10.04 LTS为例： 安装nginx和php-cgi就不说了，参考本博客的配置 二、配置nginx 下载Dokuwiki：http://www.splitbrain.org/projects/dokuwiki，然后解压到/usr/share/dokuwiki目录中 创建文件：/etc/nginx/conf.d/dokuwiki.conf sudo vi /etc/nginx/conf.d/dokuwiki.conf 复制以下内容到/etc/nginx/conf.d/dokuwiki.conf 这里要明确第11行的root是dokuwiki目录的上一级，也就是/usr/share，参考：Nginx虚拟目录 启动php-fastcgi： sudo service php-fastcgi start 现在访问：http://localhost/dokuwiki/install.php，按照提示安装就可以了。 参考资料： Ubuntu配置ngnix+phpmyadmin http://www.dokuwiki.org/install:nginx 原创文章，转载请注明： 转载自what is the RIA? just it…&amp;#124;&amp;#124;咖啡兔 本文链接地址: Linux(Ubuntu)环境安装配置Nginx+Dokuwiki&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1613&quot;&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Ubuntu配置ngnix+phpmyadmin&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1015&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1613&quot;&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;最新消息：本站的WIKI开通了 wiki.wsria.cn&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1613&quot;&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Ubuntu安装ORACLE-XE&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1613&quot;&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Linux下springside4快捷脚本（quick-start、generate-project）&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1613&quot;&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Linux下springside3快捷脚本（quick-start、generate-project）&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601999612/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601999612/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>工具</category><category>nginx</category><category>dokuwiki</category><category>wiki</category><pubDate>Sat, 04 Feb 2012 02:53:27 +0800</pubDate><author>咖啡兔</author><comments>http://www.wsria.com/archives/1613#comments</comments><guid isPermaLink="false">http://www.wsria.com/?p=1613</guid><dc:creator>咖啡兔</dc:creator><fs:srclink>http://www.wsria.com/archives/1613</fs:srclink><fs:srcfeed>http://www.wsria.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/wsria/~8456624/601999612/5406562</fs:itemid></item><item><title>Linux下springside4快捷脚本（quick-start、generate-project）</title><link>http://item.feedsky.com/~feedsky/wsria/~8456624/601290743/5406562/1/item.html</link><content:encoded>&lt;h3&gt;一、前言&lt;/h3&gt;
&lt;p&gt;尝鲜的同学得意了，特意编写了在&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/linux&quot; title=&quot;查看 linux 中所有文章&quot; target=&quot;_blank&quot;&gt;linux&lt;/a&gt;&lt;/span&gt;下面运行的快捷&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/%e8%84%9a%e6%9c%ac&quot; title=&quot;查看 脚本 中所有文章&quot; target=&quot;_blank&quot;&gt;脚本&lt;/a&gt;&lt;/span&gt;&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/shell&quot; title=&quot;查看 shell 中所有文章&quot; target=&quot;_blank&quot;&gt;shell&lt;/a&gt;&lt;/span&gt;，对于springside3的&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/%e8%84%9a%e6%9c%ac&quot; title=&quot;查看 脚本 中所有文章&quot; target=&quot;_blank&quot;&gt;脚本&lt;/a&gt;&lt;/span&gt;请访问：&lt;a href=&quot;http://www.wsria.com/archives/1580&quot; title=&quot;Linux下springside3快捷脚本（quick-start、generate-project）&quot; target=&quot;_blank&quot;&gt;Linux下springside3快捷脚本（quick-start、generate-project）&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
generate-project&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/%e8%84%9a%e6%9c%ac&quot; title=&quot;查看 脚本 中所有文章&quot; target=&quot;_blank&quot;&gt;脚本&lt;/a&gt;&lt;/span&gt;在springside3和springside4一样，请参考上面的地址！
&lt;/p&gt;
&lt;h3&gt;二、quick-start.sh&lt;/h3&gt;
&lt;blockquote&gt;&lt;p&gt;
复制以下脚本保存为quick-start.sh
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;span id=&quot;more-1605&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;
#!/bin/bash

# 脚本名称：quick-start.sh
# 作者：咖啡兔
# 博客：http://www.wsria.com
# 日期：2011-12-09
# Email:yanhonglei[at]gmail.com

echo [INFO] 确保默认JDK版本为JDK6.0及以上版本,已配置JAVA_HOME.
echo [INFO] 如不能连接Maven官方网站, 修改本文件去掉下面一行的注释.

#设置临时变量
MAVEN_OPTS=&quot;$MAVEN_OPTS -XX:MaxPermSize=128m&quot;
SS_DIR=$(dirname $(cd ${0%/*} &amp;#038;&amp;#038; echo $PWD/${0##*/}))
ANT=&quot;$SS_DIR/tools/ant/apache-ant-1.8.2/bin/ant&quot;

#cd $(dirname `which $0`)意思是进入shell所在的目录
cd $SS_DIR
if [ -d &quot;tools/ant/apache-ant-1.8.2/&quot; ]; then
	ANT=&quot;$SS_DIR/tools/ant/apache-ant-1.8.2/bin/ant&quot;
fi

echo [Step 1] 安装SpringSide4 所有modules, examples项目及mini項目生成模板到本地Maven仓库, 生成Eclipse项目文件.
mvn clean install -Pmodules -Dmaven.test.skip=true
mvn eclipse:clean eclipse:eclipse

echo [Step 2] 启动H2数据库.
cd tools/h2
gnome-terminal -e &quot;mvn exec:java&quot; &amp;#038;
cd ../../

echo [Step 3] 为Mini-Service 初始化数据库, 启动Jetty.
cd examples/mini-service
ant -f bin/db/build.xml init-db
gnome-terminal -e &quot;mvn -Djetty.port=8083 jetty:run&quot; &amp;#038;
cd ../../

echo [Step 4] 为Mini-Web 初始化数据库, 启动Jetty.
cd examples/mini-web
ant -f bin/db/build.xml init-db
gnome-terminal -e &quot;mvn -Djetty.port=8084 jetty:run&quot; &amp;#038;
cd ../../

echo [Step 5] 为Showcase 生成Eclipse项目文件, 编译, 打包, 初始化数据库, 启动Jetty.
cd examples/showcase
ant -f bin/db/build.xml init-db
gnome-terminal -e &quot;mvn -Djetty.port=8085 jetty:run&quot; &amp;#038;
cd ../../

echo [INFO] SpringSide4.0 快速启动完毕.
echo [INFO] 可访问以下演示网址:
echo [INFO] http://localhost:8083/mini-service
echo [INFO] http://localhost:8084/mini-web
echo [INFO] http://localhost:8085/showcase
&lt;/pre&gt;
&lt;div style=&quot;margin-top: 15px; font-style: italic&quot;&gt;
&lt;p&gt;&lt;strong&gt;原创文章，转载请注明：&lt;/strong&gt; 转载自&lt;a href=&quot;http://www.wsria.com/&quot;&gt;what is the RIA?  just it…||咖啡兔&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;本文链接地址:&lt;/strong&gt; &lt;a href=&quot;http://www.wsria.com/archives/1605&quot;&gt;Linux下springside4快捷脚本（quick-start、generate-project）&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;div style=&quot;float:left; text-align:left;&gt;&lt;img alt='' src='http://1.gravatar.com/avatar/d4c01dc675bbabaf50ed1c9e4a07f96e?s=100&amp;amp;d=monsterid&amp;amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /&gt;&lt;/div&gt;&lt;h3&gt;&lt;a href='http://www.wsria.com/archives/author/admin' title='咖啡兔'&gt;咖啡兔&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;一只咖啡兔，热爱开源，喜欢追踪、研究新技术，向往背包游……
讲究效率，坚信：“工欲善其事必先利其器”
使用Linux（Ubuntu），基于Java和jQuery开发企业RIA应用&lt;/p&gt;&lt;p&gt;&lt;a href='http://www.wsria.com' title='咖啡兔'&gt;Website&lt;/a&gt; - &lt;a href='http://www.wsria.com/archives/author/admin' title='More posts by 咖啡兔'&gt;More Posts&lt;/a&gt; &lt;/p&gt;&lt;/p&gt;&lt;img src=&quot;http://www.wsria.com/?ak_action=api_record_view&amp;id=1605&amp;type=feed&quot; alt=&quot;&quot; /&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Linux下springside3快捷脚本（quick-start、generate-project）&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Linux下springside3快捷脚本（quick-start、generate-project）&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Springside3.3.3报错：java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1079&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Springside3.3.3报错：java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;工欲善其事必先利其器–Java Web快速开发框架–Springside&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1188&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;工欲善其事必先利其器–Java Web快速开发框架–Springside&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1004&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204439.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;推荐：国内第一本Maven书籍——《Maven实战》&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/05/06/7742332.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;推荐：国内第一本Maven书籍——《Maven实战》&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290743/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290743/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.wsria.com/archives/1605/feed</wfw:commentRss><slash:comments>0</slash:comments><description>一、前言 尝鲜的同学得意了，特意编写了在linux下面运行的快捷脚本shell，对于springside3的脚本请访问：Linux下springside3快捷脚本（quick-start、generate-project） generate-project脚本在springside3和springside4一样，请参考上面的地址！ 二、quick-start.sh 复制以下脚本保存为quick-start.sh #!/bin/bash # 脚本名称：quick-start.sh # 作者：咖啡兔 # 博客：http://www.wsria.com # 日期：2011-12-09 # Email:yanhonglei[at]gmail.com echo [INFO] 确保默认JDK版本为JDK6.0及以上版本,已配置JAVA_HOME. echo [INFO] 如不能连接Maven官方网站, 修改本文件去掉下面一行的注释. #设置临时变量 MAVEN_OPTS=&quot;$MAVEN_OPTS -XX:MaxPermSize=128m&quot; SS_DIR=$(dirname $(cd ${0%/*} &amp;#038;&amp;#038; echo $PWD/${0##*/})) ANT=&quot;$SS_DIR/tools/ant/apache-ant-1.8.2/bin/ant&quot; #cd $(dirname `which $0`)意思是进入shell所在的目录 cd $SS_DIR if &amp;#8230;&lt;p class=&quot;read-more&quot;&gt;&lt;a href=&quot;http://www.wsria.com/archives/1605&quot;&gt;继续阅读 &amp;#187;&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Linux下springside3快捷脚本（quick-start、generate-project）&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Linux下springside3快捷脚本（quick-start、generate-project）&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Springside3.3.3报错：java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1079&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Springside3.3.3报错：java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;工欲善其事必先利其器–Java Web快速开发框架–Springside&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1188&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;工欲善其事必先利其器–Java Web快速开发框架–Springside&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1004&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204439.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;推荐：国内第一本Maven书籍——《Maven实战》&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/05/06/7742332.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;推荐：国内第一本Maven书籍——《Maven实战》&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290743/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290743/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>linux</category><category>工具</category><category>shell</category><category>个人作品</category><category>脚本</category><category>SpringSide</category><pubDate>Fri, 09 Dec 2011 10:24:25 +0800</pubDate><author>咖啡兔</author><comments>http://www.wsria.com/archives/1605#comments</comments><guid isPermaLink="false">http://www.wsria.com/?p=1605</guid><dc:creator>咖啡兔</dc:creator><fs:srclink>http://www.wsria.com/archives/1605</fs:srclink><fs:srcfeed>http://www.wsria.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/wsria/~8456624/601290743/5406562</fs:itemid></item><item><title>Linux下springside3快捷脚本（quick-start、generate-project）</title><link>http://item.feedsky.com/~feedsky/wsria/~8456624/601290744/5406562/1/item.html</link><content:encoded>&lt;h3&gt;一、交代背景&lt;/h3&gt;
&lt;p&gt;使用Springside（一下简称SS）有段时间了，之前一直都是用windows开发，正好SS提供了很方便一键安装（quick-start）和一键生成（generate-project）&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/%e8%84%9a%e6%9c%ac&quot; title=&quot;查看 脚本 中所有文章&quot; target=&quot;_blank&quot;&gt;脚本&lt;/a&gt;&lt;/span&gt;（bat格式）；前段时间全面切换环境到Ubuntu，因为培训新员工的缘故需要给他们讲解SS（因为我们用SS作为公司的基础架构），所以我在本地需要操作SS，但是&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/%e8%84%9a%e6%9c%ac&quot; title=&quot;查看 脚本 中所有文章&quot; target=&quot;_blank&quot;&gt;脚本&lt;/a&gt;&lt;/span&gt;仅限于Windows，好在这段时间看了一部分Bash的书籍，所以决定自己根据bat脚本修改一个bash的脚本。&lt;/p&gt;
&lt;h3&gt;二、quick-start.sh&lt;/h3&gt;
&lt;blockquote&gt;&lt;p&gt;
复制以下脚本保存为quick-start.sh
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;span id=&quot;more-1580&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;
#!/bin/bash

# 脚本名称：quick-start.sh
# 作者：咖啡兔
# 博客：http://www.wsria.com
# 日期：2011-08-13
# 有更好的建议或写法请联系：yanhonglei[at]gmail.com

echo [INFO] 确保默认JDK版本为JDK6.0及以上版本,已配置JAVA_HOME.
echo [INFO] 如不能连接Maven官方网站, 修改本文件去掉下面一行的注释.

#设置临时变量
MVN=mvn
ANT=ant
MAVEN_OPTS=&quot;$MAVEN_OPTS -XX:MaxPermSize=128m&quot;
SS_DIR=$(dirname $(cd ${0%/*} &amp;#038;&amp;#038; echo $PWD/${0##*/}))
ANT=&quot;$SS_DIR/tools/ant/apache-ant-1.8.1/bin/ant&quot;

#cd $(dirname `which $0`)意思是进入shell所在的目录
cd $SS_DIR
if [ -d &quot;tools/ant/apache-ant-1.8.1/&quot; ]; then
	ANT=&quot;$SS_DIR/tools/ant/apache-ant-1.8.1/bin/ant&quot;
fi
echo Maven命令为$MVN
echo Ant命令为$ANT

echo [Step 1] 复制tools/maven/central-repository 到 ~/.m2/repository
cp -r &quot;tools/maven/central-repository&quot; ~/.m2/repository

echo [Step 2] 安装SpringSide3 所有modules, examples项目及mini項目生成模板到本地Maven仓库, 生成Eclipse项目文件.
$MVN clean install -Dmaven.test.skip=true
$MVN eclipse:clean eclipse:eclipse

echo [Step 3] 启动H2数据库.
cd tools/h2
$MVN exec:java &amp;#038;
cd ../../
# 等待5秒钟，因为遇到过问题：启动下面的web应用的时候H2还未启动完成，如果机器性能低请增加等待时间
sleep 5

echo [Step 4] 为Mini-Service 初始化数据库, 启动Jetty.
cd examples/mini-service
$ANT -f bin/build.xml init-db
$MVN -Djetty.port=8083 jetty:run &amp;#038;
cd ../../

echo [Step 5] 为Mini-Web 初始化数据库, 启动Jetty.
cd examples/mini-web
$ANT -f bin/build.xml init-db
$MVN -Djetty.port=8084 jetty:run &amp;#038;
cd ../../

echo [Step 6] 为Showcase 生成Eclipse项目文件, 编译, 打包, 初始化数据库, 启动Jetty.
cd examples/showcase
$ANT -f bin/build.xml init-db
$MVN -Djetty.port=8085 jetty:run &amp;#038;
cd ../../

echo [INFO] SpringSide3.0 快速启动完毕.
echo [INFO] 可访问以下演示网址:
echo [INFO] http://localhost:8083/mini-service
echo [INFO] http://localhost:8084/mini-web
echo [INFO] http://localhost:8085/showcase
&lt;/pre&gt;
&lt;blockquote&gt;&lt;p&gt;不要忘记为脚本添加执行权限：&lt;/p&gt;
&lt;pre&gt;
chmod a+x generate-project.sh
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;hr/&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;脚本不足&lt;/strong&gt;：&lt;br /&gt;
启动数据库和3个演示项目之后按Ctrl+C不能停止进程，因为进程都是在后台运行的，脚本运行完成后使用：&lt;/p&gt;
&lt;pre&gt;ps -e | grep java&lt;/pre&gt;
&lt;p&gt;然后结束这些java进程，或者使用：&lt;/p&gt;
&lt;pre&gt;sudo netstat -tulnp | grep java&lt;/pre&gt;
&lt;p&gt;根据端口结束进程：&lt;/p&gt;
&lt;pre&gt;kill -9 xxx&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;p&gt;目前能力有限，如果有更好的办法解决上面这个问题欢迎回复完善此文章！&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;如果出现以下错误信息，请下载maven-ant-tasks.jar，&lt;a href=&quot;http://maven.apache.org/ant-tasks/download.html&quot; target=&quot;_blank&quot;&gt;下载地址&lt;/a&gt;：&lt;/p&gt;
&lt;pre&gt;
Buildfile: /home/kafeitu/work/sources/springside/springside-3.3.4/examples/mini-web/bin/build.xml

BUILD FAILED
/home/kafeitu/work/sources/springside/springside-3.3.4/examples/mini-web/bin/build.xml:4: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any
&lt;presetdef&gt;/&lt;macrodef&gt; declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -/home/kafeitu/work/tools/apache/ant/apache-ant-1.8.2/lib
        -/home/kafeitu/.ant/lib
        -a directory added on the command line with the -lib argument

Total time: 0 seconds
&lt;/pre&gt;
&lt;h3&gt;三、generate-project.sh&lt;/h3&gt;
&lt;p&gt;这个比较简单，请复制以下脚本保存到generate-project.sh&lt;/p&gt;
&lt;pre&gt;
echo [INFO] 确保已用mvn install安裝tools/maven/archetype中的mini-web项目模板
gpdir=generated-projects
cd $(dirname `which $0`)
if [ ! -d &quot;$gpdir&quot; ]; then
	mkdir $gpdir
fi
cd $gpdir
mvn archetype:generate -DarchetypeCatalog=local
&lt;/pre&gt;
&lt;blockquote&gt;&lt;p&gt;不要忘记为脚本添加执行权限：&lt;/p&gt;
&lt;pre&gt;
chmod a+x generate-project.sh
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;h3&gt;四、结束语&lt;/h3&gt;
&lt;p&gt;好了，两个简单的脚本OK了，希望能帮助你解决问题，期待高手的意见和参与！&lt;/p&gt;
&lt;div style=&quot;margin-top: 15px; font-style: italic&quot;&gt;
&lt;p&gt;&lt;strong&gt;原创文章，转载请注明：&lt;/strong&gt; 转载自&lt;a href=&quot;http://www.wsria.com/&quot;&gt;what is the RIA?  just it…||咖啡兔&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;本文链接地址:&lt;/strong&gt; &lt;a href=&quot;http://www.wsria.com/archives/1580&quot;&gt;Linux下springside3快捷脚本（quick-start、generate-project）&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;div style=&quot;float:left; text-align:left;&gt;&lt;img alt='' src='http://1.gravatar.com/avatar/d4c01dc675bbabaf50ed1c9e4a07f96e?s=100&amp;amp;d=monsterid&amp;amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /&gt;&lt;/div&gt;&lt;h3&gt;&lt;a href='http://www.wsria.com/archives/author/admin' title='咖啡兔'&gt;咖啡兔&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;一只咖啡兔，热爱开源，喜欢追踪、研究新技术，向往背包游……
讲究效率，坚信：“工欲善其事必先利其器”
使用Linux（Ubuntu），基于Java和jQuery开发企业RIA应用&lt;/p&gt;&lt;p&gt;&lt;a href='http://www.wsria.com' title='咖啡兔'&gt;Website&lt;/a&gt; - &lt;a href='http://www.wsria.com/archives/author/admin' title='More posts by 咖啡兔'&gt;More Posts&lt;/a&gt; &lt;/p&gt;&lt;/p&gt;&lt;img src=&quot;http://www.wsria.com/?ak_action=api_record_view&amp;id=1580&amp;type=feed&quot; alt=&quot;&quot; /&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Linux下springside4快捷脚本（quick-start、generate-project）&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Linux下springside4快捷脚本（quick-start、generate-project）&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Springside3.3.3报错：java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1079&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Springside3.3.3报错：java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;工欲善其事必先利其器–Java Web快速开发框架–Springside&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1188&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;工欲善其事必先利其器–Java Web快速开发框架–Springside&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;推荐：国内第一本Maven书籍——《Maven实战》&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/05/06/7742332.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;推荐：国内第一本Maven书籍——《Maven实战》&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1004&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204439.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290744/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290744/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.wsria.com/archives/1580/feed</wfw:commentRss><slash:comments>0</slash:comments><description>一、交代背景 使用Springside（一下简称SS）有段时间了，之前一直都是用windows开发，正好SS提供了很方便一键安装（quick-start）和一键生成（generate-project）脚本（bat格式）；前段时间全面切换环境到Ubuntu，因为培训新员工的缘故需要给他们讲解SS（因为我们用SS作为公司的基础架构），所以我在本地需要操作SS，但是脚本仅限于Windows，好在这段时间看了一部分Bash的书籍，所以决定自己根据bat脚本修改一个bash的脚本。 二、quick-start.sh 复制以下脚本保存为quick-start.sh #!/bin/bash # 脚本名称：quick-start.sh # 作者：咖啡兔 # 博客：http://www.wsria.com # 日期：2011-08-13 # 有更好的建议或写法请联系：yanhonglei[at]gmail.com echo [INFO] 确保默认JDK版本为JDK6.0及以上版本,已配置JAVA_HOME. echo [INFO] 如不能连接Maven官方网站, 修改本文件去掉下面一行的注释. #设置临时变量 MVN=mvn ANT=ant MAVEN_OPTS=&quot;$MAVEN_OPTS -XX:MaxPermSize=128m&quot; SS_DIR=$(dirname $(cd ${0%/*} &amp;#038;&amp;#038; echo $PWD/${0##*/})) ANT=&quot;$SS_DIR/tools/ant/apache-ant-1.8.1/bin/ant&quot; #cd $(dirname `which $0`)意思是进入shell所在的目录 cd $SS_DIR &amp;#8230;&lt;p class=&quot;read-more&quot;&gt;&lt;a href=&quot;http://www.wsria.com/archives/1580&quot;&gt;继续阅读 &amp;#187;&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Linux下springside4快捷脚本（quick-start、generate-project）&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1605&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Linux下springside4快捷脚本（quick-start、generate-project）&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Springside3.3.3报错：java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1079&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Springside3.3.3报错：java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;工欲善其事必先利其器–Java Web快速开发框架–Springside&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1188&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;工欲善其事必先利其器–Java Web快速开发框架–Springside&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;推荐：国内第一本Maven书籍——《Maven实战》&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/05/06/7742332.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;推荐：国内第一本Maven书籍——《Maven实战》&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1004&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1580&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204439.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290744/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290744/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>linux</category><category>工具</category><category>脚本</category><category>SpringSide</category><pubDate>Sat, 13 Aug 2011 20:59:56 +0800</pubDate><author>咖啡兔</author><comments>http://www.wsria.com/archives/1580#comments</comments><guid isPermaLink="false">http://www.wsria.com/?p=1580</guid><dc:creator>咖啡兔</dc:creator><fs:srclink>http://www.wsria.com/archives/1580</fs:srclink><fs:srcfeed>http://www.wsria.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/wsria/~8456624/601290744/5406562</fs:itemid></item><item><title>jQuery UI及其插件在企业环境的应用总结</title><link>http://item.feedsky.com/~feedsky/wsria/~8456624/601290745/5406562/1/item.html</link><content:encoded>&lt;h3&gt;一、博文背景&lt;/h3&gt;
&lt;p&gt;使用&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/jquery&quot; title=&quot;查看 jQuery 中所有文章&quot; target=&quot;_blank&quot;&gt;jQuery&lt;/a&gt;&lt;/span&gt;差不多3年了，开始只是简单的应用，后来发现了官网开发的&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/jquery&quot; title=&quot;查看 jQuery 中所有文章&quot; target=&quot;_blank&quot;&gt;jQuery&lt;/a&gt;&lt;/span&gt; &lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/ui&quot; title=&quot;查看 UI 中所有文章&quot; target=&quot;_blank&quot;&gt;UI&lt;/a&gt;&lt;/span&gt;；从去年的一个项目开始使用&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/jquery&quot; title=&quot;查看 jQuery 中所有文章&quot; target=&quot;_blank&quot;&gt;jQuery&lt;/a&gt;&lt;/span&gt; &lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/ui&quot; title=&quot;查看 UI 中所有文章&quot; target=&quot;_blank&quot;&gt;UI&lt;/a&gt;&lt;/span&gt;作为主要的&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/ui&quot; title=&quot;查看 UI 中所有文章&quot; target=&quot;_blank&quot;&gt;UI&lt;/a&gt;&lt;/span&gt;插件，选择jQuery UI的主要原因是因为需要使用jqGrid这个插件，而这个插件又使用了jQuery UI的主题;再者jQuery UI提供主题的自定义，这样对于一些喜欢不同风格的客户来说就比较容易切换自己喜欢的主题了。&lt;br /&gt;
写这篇博文的想法就是因为基于jQuery UI开发了两套系统，并且都运行正常，而且客户的反应也不错，所以整理以下和大家分享我的经验，同时也和正在使用的童鞋交流，希望起到抛砖引玉的作用。&lt;/p&gt;
&lt;h3&gt;二、jQuery UI基础&lt;/h3&gt;
&lt;blockquote&gt;&lt;p&gt;
&lt;strong&gt;官网&lt;/strong&gt;：&lt;a href=&quot;http://jqueryui.com/&quot; target=&quot;_blank&quot;&gt;http://jqueryui.com/&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;演示&lt;/strong&gt;：&lt;a href=&quot;http://jqueryui.com/demos/&quot; target=&quot;_blank&quot;&gt;http://jqueryui.com/demos/&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;下载&lt;/strong&gt;：&lt;a href=&quot;http://jqueryui.com/download&quot; target=&quot;_blank&quot;&gt;http://jqueryui.com/download&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;在线主题自定义&lt;/strong&gt;：&lt;a href=&quot;http://jqueryui.com/themeroller/&quot; target=&quot;_blank&quot;&gt;http://jqueryui.com/themeroller/&lt;/a&gt;
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;在我们的系统中主要使用了Dialog、Tab、Button、Autocomplete等功能，下面会对于使用过程中遇到的问题进行列举：&lt;br /&gt;
&lt;span id=&quot;more-1549&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;IE下面Dialog高度问题&lt;/strong&gt;&lt;br/&gt;血的教训呀……&lt;br/&gt;&lt;strong&gt;问题描述&lt;/strong&gt;：我们的系统都是用JSP开发的，而且定义了一个global.jsp文件用于引入一些每个页面都需要用到的常量之类的属性，当然包括公共设置的JS代码，例如JSP代码：
&lt;pre&gt;
&amp;lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=UTF-8&quot; pageEncoding=&quot;UTF-8&quot;%&amp;gt;
&amp;lt;%@ include file=&quot;/common/global.jsp&quot; %&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&amp;gt;
&amp;lt;html&amp;gt;
&lt;/pre&gt;
&lt;p&gt;输出的HTML代码如下：&lt;/p&gt;
&lt;pre&gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
	// 服务器日期
	var systemDate = new Date(2011, 6, 22);
	var strSystemDate = &quot;2011-07-22&quot;;
&amp;lt;/script&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;
&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;
&amp;lt;head&amp;gt;
&lt;/pre&gt;
&lt;p&gt;问题出来了，按照上面的输出在IE下面会导致对话框的高度属性无效，再Firefox下正常;所以一直以来我都以为是jQuery UI对IE支持的BUG，后来实验后得知在一些html包含的元素必须严格按照标准书写，否则IE不能兼容而其他非IE可以兼容，修改后的代码如下：&lt;/p&gt;
&lt;pre&gt;
&amp;lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=UTF-8&quot; pageEncoding=&quot;UTF-8&quot;%&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;
&amp;lt;%@ include file=&quot;/common/global.jsp&quot; %&amp;gt;
&lt;/pre&gt;
&lt;p&gt;这样输出的结果就是：&lt;/p&gt;
&lt;pre&gt;
&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;
&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
	// 服务器日期
	var systemDate = new Date(2011, 6, 22);
	var strSystemDate = &quot;2011-07-22&quot;;
&amp;lt;/script&amp;gt;
&lt;/pre&gt;
&lt;p&gt;这样IE和Firefox打开的对话框高度就一致了……IE的容错性不高呀，不过这样也严格要求了我们的代码规整性，谨记不要犯类似错误。
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;为Dialog的Button添加图标(Icon)&lt;/strong&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;javascript&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;/**
 * 为dialog中的button设置icon
 * @param {Object} options
 */&lt;/span&gt;
setIcons&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
	$.&lt;span style=&quot;color: #660066;&quot;&gt;each&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;i&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; n&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		$&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'.ui-dialog-buttonpane'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;find&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'button:contains('&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; i &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;')'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
		.&lt;span style=&quot;color: #660066;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		    icons&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; options&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;i&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;调用方式：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;javascript&quot; style=&quot;font-family:monospace;&quot;&gt;$&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'#div_1'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;dialog&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
	&lt;span style=&quot;color: #000066;&quot;&gt;open&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;plugin&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqui&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;dialog&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;button&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;setIcons&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			上传&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt; primary&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'ui-icon-arrowthick-1-n'&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
			关闭&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt; primary&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'ui-icon-cancel'&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;具体每个组件怎么使用看官网的demo和文档吧，还是比较详细的。&lt;/p&gt;
&lt;h3&gt;三、jQuery UI扩展&lt;/h3&gt;
&lt;blockquote&gt;&lt;p&gt;
DEMO：&lt;a href=&quot;http://quasipartikel.at/multiselect/&quot;&gt;http://quasipartikel.at/multiselect/&lt;/a&gt;
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;另外一个类似的Multiselect插件：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;
DEMO：&lt;a href=&quot;http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/&quot;&gt;http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/&lt;/a&gt;
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;这两个插件功能差不多，都可以过滤数据，而且完全使用jQuery UI主题，根据应用环境自己选择。&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;
还有一些扩展再jQuery UI官网的SVN的分支中，地址：&lt;a href=&quot;http://jquery-ui.googlecode.com/svn/branches&quot;&gt;http://jquery-ui.googlecode.com/svn/branches&lt;/a&gt;&lt;br /&gt;
希望能从中发现你需要的功能。
&lt;/p&gt;&lt;/blockquote&gt;
&lt;h3&gt;四、jQuery UI扩展-jqGrid&lt;/h3&gt;
&lt;blockquote&gt;&lt;p&gt;一个功能强大的grid插件，一个吸引我使用jQuery UI的插件，一个能满足日常需要的插件，一个特别想推荐给大家的插件，它就是jqGrid。&lt;br/&gt;&lt;br /&gt;
&lt;strong&gt;官网&lt;/strong&gt;：&lt;a href=&quot;http://www.trirand.com/blog/&quot;&gt;http://www.trirand.com/blog/&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;DEMO&lt;/strong&gt;：&lt;a href=&quot;http://www.trirand.com/blog/jqgrid/jqgrid.html&quot;&gt;http://www.trirand.com/blog/jqgrid/jqgrid.html&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;WIKI&lt;/strong&gt;：&lt;a href=&quot;http://www.trirand.com/jqgridwiki/doku.php&quot;&gt;http://www.trirand.com/jqgridwiki/doku.php&lt;/a&gt;
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;使用jqGrid有段时间了，经常遇到有些童鞋问我具体怎么用，说实话jqGrid的DEMO和WIKI文档写的很清楚，而且有示例代码，所以对于怎么使用我就不做代码搬运工了，我讲的是经验。&lt;/p&gt;
&lt;h3&gt;五、jQuery UI扩展-jqGrid高级应用(从正在运行项目中提取)&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;列表高度和宽度自动调整&lt;/strong&gt;&lt;br /&gt;
这个话题是经常有人问到的，因为jqGrid的列表高度和宽度是可以自定义的，所以要做到可以充满整个窗口或者iframe，并且最重要的是可以根据窗口的调整自动设置grid的高度和宽度，下面列出我的配置。&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;javascript&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;//-- 浏览器工具 --//&lt;/span&gt;
$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;browser&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
	&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// 检测是否是IE浏览器&lt;/span&gt;
	isIE &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; _uaMatch &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; $.&lt;span style=&quot;color: #660066;&quot;&gt;uaMatch&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;navigator.&lt;span style=&quot;color: #660066;&quot;&gt;userAgent&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; _browser &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; _uaMatch.&lt;span style=&quot;color: #660066;&quot;&gt;browser&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;_browser &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'msie'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
	&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// 检测是否是chrome浏览器&lt;/span&gt;
	isChrome &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; _uaMatch &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; $.&lt;span style=&quot;color: #660066;&quot;&gt;uaMatch&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;navigator.&lt;span style=&quot;color: #660066;&quot;&gt;userAgent&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; _browser &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; _uaMatch.&lt;span style=&quot;color: #660066;&quot;&gt;browser&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;_browser &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'webkit'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
	&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// 检测是否是Firefox浏览器&lt;/span&gt;
	isMozila &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; _uaMatch &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; $.&lt;span style=&quot;color: #660066;&quot;&gt;uaMatch&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;navigator.&lt;span style=&quot;color: #660066;&quot;&gt;userAgent&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; _browser &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; _uaMatch.&lt;span style=&quot;color: #660066;&quot;&gt;browser&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;_browser &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'mozilla'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;/**
 * 改变窗口大小的时候自动根据iframe大小设置jqGrid列表宽度和高度
 * 参数说明：{
 * 		enableAutoResize : 是否开启自动高度和宽度调整开关
 * 		dataGrid : jqGrid数据列表的ID
 * 		callback : 计算完dataGrid需要的高度和宽度后的回调函数
 * 		width : 默认为iframe的宽度，如果指定则设置为指定的宽度
 * 		height : 默认为iframe的高度，如果指定则设置为指定的高度
 * 		beforeAutoResize : 窗口大小调整时自动设置之前
 * 		afterAutoResize : 窗口大小调整时自动设置之后
 * }
 */&lt;/span&gt;
$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;plugin&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;autoResize&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
	&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; defaults &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		enableAutoResize &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		beforeAutoResize&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		afterAutoResize&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;null&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
	options &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; $.&lt;span style=&quot;color: #660066;&quot;&gt;extend&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; defaults&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; options&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// 第一次调用&lt;/span&gt;
	&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; size &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; getWidthAndHeigh&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
	&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;isFunction&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;callback&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		options.&lt;span style=&quot;color: #660066;&quot;&gt;callback&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;size&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		setToolbarHeight&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// 窗口大小改变的时候&lt;/span&gt;
	&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;enableAutoResize&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;===&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;isFunction&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;beforeAutoResize&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			options.&lt;span style=&quot;color: #660066;&quot;&gt;beforeAutoResize&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
		window.&lt;span style=&quot;color: #000066;&quot;&gt;onresize&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; size &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; getWidthAndHeigh&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
			$&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;dataGrid&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'setGridHeight'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; size.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'setGridWidth'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; size.&lt;span style=&quot;color: #660066;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
			setToolbarHeight&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;isFunction&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;afterAutoResize&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
				options.&lt;span style=&quot;color: #660066;&quot;&gt;afterAutoResize&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;size&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// 根据浏览器不同设置工具栏的高度&lt;/span&gt;
	&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt; setToolbarHeight&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// 根据浏览器不同设置工具栏的高度&lt;/span&gt;
		&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;browser&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;isIE&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbarHeight&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbarHeight&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;top&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbarHeight&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;top&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ie&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
				$&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'#t_list'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbarHeight&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;top&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ie&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbarHeight&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;bottom&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbarHeight&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;bottom&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ie&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
				$&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'#tb_list'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbarHeight&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;bottom&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ie&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// 获取iframe大小&lt;/span&gt;
	&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt; getWidthAndHeigh&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;resize&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; hasToolbar &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbar&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;?&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbar&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;hasToolbar&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; toolbarType &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbar&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt;toolbarType&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
				&lt;span style=&quot;color: #000066;&quot;&gt;alert&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'请设置工具栏的属性，toolbar ： [true, [top, both]]'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
		&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; iframeHeight &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;?&lt;/span&gt; document.&lt;span style=&quot;color: #660066;&quot;&gt;documentElement&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;clientHeight&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; options.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; iframeWidth &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;width&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;?&lt;/span&gt; document.&lt;span style=&quot;color: #660066;&quot;&gt;documentElement&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;clientWidth&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; options.&lt;span style=&quot;color: #660066;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
		&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// chrome&lt;/span&gt;
		&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;browser&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;isChrome&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;hasToolbar&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
				&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;toolbarType &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'top'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
					iframeWidth &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
					iframeHeight &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;128&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
				&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;toolbarType &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'both'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
					iframeWidth &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
					iframeHeight &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;140&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
				&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
				iframeWidth &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;13&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
				iframeHeight &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;87&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// firefox&lt;/span&gt;
		&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;browser&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;isMozila&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;hasToolbar&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
				&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;toolbarType &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'top'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
					iframeWidth &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
					iframeHeight &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;122&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
				&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;toolbarType &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'both'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
					iframeWidth &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
					iframeHeight &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;145&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
				&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
				iframeWidth &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
				iframeHeight &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;89&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt; 
		&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// IE&lt;/span&gt;
		&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;hasToolbar&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
				&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;toolbarType &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'top'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
					&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;browser&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;isIE&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbarHeight&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
						&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbarHeight&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;top&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbarHeight&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;top&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ie&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
							&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// 减去jqGrid的t_list默认高度和IE的兼容高度&lt;/span&gt;
							iframeHeight &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;options.&lt;span style=&quot;color: #660066;&quot;&gt;toolbarHeight&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;top&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ie&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
						&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
					&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
					iframeHeight &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;128&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
					iframeWidth &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
					setTimeout&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
						&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// 设置上方的toolbar&lt;/span&gt;
						$&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'#t_'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; options.&lt;span style=&quot;color: #660066;&quot;&gt;dataGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;iframeWidth &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
					&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
				&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;toolbarType &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'both'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
					iframeWidth &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
					iframeHeight &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;151&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
					setTimeout&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
						&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// 设置上方的toolbar&lt;/span&gt;
						$&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'#t_'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; options.&lt;span style=&quot;color: #660066;&quot;&gt;dataGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;iframeWidth &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
					&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
				&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
				iframeWidth &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
				iframeHeight &lt;span style=&quot;color: #339933;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;88&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;width&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; iframeWidth&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; height&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; iframeHeight&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;调用方式：&lt;/p&gt;
&lt;pre&gt;
$(function() {
	// 自动根据窗口大小改变数据列表大小
	$.common.plugin.jqGrid.autoResize({
		dataGrid: '#list',
		toolbar: [true, 'top'],
		callback: listDatas
	});

});

function listDatas(size) {
	$(&quot;#list&quot;).jqGrid({
		....
		height: size.height,
		width: size.width
		....
	});
}
&lt;/pre&gt;
&lt;p&gt;这样在窗口调整大小的时候会自动设置grid的高度和宽度。&lt;br /&gt;
可以查看实际应用中的&lt;a href=&quot;http://code.google.com/p/wsria/source/browse/trunk/wsria-demo/src/main/webapp/js/module/demo/jqgrid/datalibrary-list.js&quot;&gt;例子&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;如果可以尽量使用继承式配置&lt;/strong&gt;&lt;br/&gt;&lt;br /&gt;
使用继承方式的目的主要是修改一处配置整个项目都可以起到作用，除非特殊情况才覆盖公共的配置。例如刚刚的&lt;a href=&quot;http://code.google.com/p/wsria/source/browse/trunk/wsria-demo/src/main/webapp/js/module/demo/jqgrid/datalibrary-list.js&quot;&gt;例子&lt;/a&gt;，提供我的例子：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;javascript&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;/**
 * 加载列表
 * 
 * @return
 */&lt;/span&gt;
&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt; listDatas&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;size&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;	
&amp;nbsp;
    $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;#list&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;
	$.&lt;span style=&quot;color: #660066;&quot;&gt;extend&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;plugin&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;settings&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;size&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; size&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		url&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; moduleAction &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'!list.action'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		rownumbers&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		rownumWidth&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		toolbar&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'both'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		rowList&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		pagerpos&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'center'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		colNames&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'工号'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'姓名'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'密码'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'电子邮件'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'部门'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'角色'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
        colModel&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000066;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'employeeId'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
			width&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
			align&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'center'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
			searchoptions &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
    			sopt &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; $.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;plugin&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;search&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;text&lt;/span&gt;
    		&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
			search&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;true&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
        .......&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		caption&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;&amp;quot;用户管理&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		editurl&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; moduleAction &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'!save.action'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		gridComplete&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; $.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;plugin&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;gridComplete&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'list'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'navGrid'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'#pager'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; $.&lt;span style=&quot;color: #660066;&quot;&gt;extend&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;plugin&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;pager&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		add&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		edit&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		del&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		view&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		search&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;true&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; 
	&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// edit options&lt;/span&gt;
    $.&lt;span style=&quot;color: #660066;&quot;&gt;extend&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;plugin&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;form&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;edit&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		width &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;450&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		editCaption&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'修改'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
		beforeShowForm&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; commonBeforeShowForm&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
    	beforeSubmit&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; beforeSubmit
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
&amp;nbsp;
	&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// add options&lt;/span&gt;
    &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; 
&amp;nbsp;
    &lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// delete options&lt;/span&gt;
    $.&lt;span style=&quot;color: #660066;&quot;&gt;extend&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;plugin&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;form&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;remove&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		url&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; moduleAction &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;'!delete.action'&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
&amp;nbsp;
	&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// search optios&lt;/span&gt;
	$.&lt;span style=&quot;color: #660066;&quot;&gt;extend&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;plugin&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;form&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;search&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		closeAfterSearch&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;true&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; 
&amp;nbsp;
	&lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// view options&lt;/span&gt;
	$.&lt;span style=&quot;color: #660066;&quot;&gt;extend&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;plugin&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;form&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;view&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
		beforeShowForm&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;formid&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
    		$.&lt;span style=&quot;color: #660066;&quot;&gt;common&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;plugin&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;jqGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;navGrid&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;showAllField&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;formid&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
	    &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;六、结束语&lt;/h3&gt;
&lt;p&gt;以上列出了经常使用的一些配置和问题解决办法，所以抱着详细学习插件使用方法的你失望了，因为各个插件的官网均有详细的文档和DEMO演示；&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;以上的代码在&lt;a href=&quot;http://code.google.com/p/wsria/source/browse/trunk/wsria-demo/src/main/webapp/js/common/common.js&quot;&gt;&lt;strong&gt;这里&lt;/strong&gt;&lt;/a&gt;可以找到，你可以从中提取，使用JSON扩展方式布局。&lt;br/&gt;&lt;br /&gt;
基本上在我的每个页面都会引入&lt;a href=&quot;http://code.google.com/p/wsria/source/browse/trunk/wsria-demo/src/main/webapp/js/common/common.js&quot;&gt;common.js&lt;/a&gt;，大家可以整理出一个自己的common.js
&lt;/p&gt;&lt;/blockquote&gt;
&lt;div style=&quot;margin-top: 15px; font-style: italic&quot;&gt;
&lt;p&gt;&lt;strong&gt;原创文章，转载请注明：&lt;/strong&gt; 转载自&lt;a href=&quot;http://www.wsria.com/&quot;&gt;what is the RIA?  just it…||咖啡兔&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;本文链接地址:&lt;/strong&gt; &lt;a href=&quot;http://www.wsria.com/archives/1549&quot;&gt;jQuery UI及其插件在企业环境的应用总结&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;div style=&quot;float:left; text-align:left;&gt;&lt;img alt='' src='http://1.gravatar.com/avatar/d4c01dc675bbabaf50ed1c9e4a07f96e?s=100&amp;amp;d=monsterid&amp;amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /&gt;&lt;/div&gt;&lt;h3&gt;&lt;a href='http://www.wsria.com/archives/author/admin' title='咖啡兔'&gt;咖啡兔&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;一只咖啡兔，热爱开源，喜欢追踪、研究新技术，向往背包游……
讲究效率，坚信：“工欲善其事必先利其器”
使用Linux（Ubuntu），基于Java和jQuery开发企业RIA应用&lt;/p&gt;&lt;p&gt;&lt;a href='http://www.wsria.com' title='咖啡兔'&gt;Website&lt;/a&gt; - &lt;a href='http://www.wsria.com/archives/author/admin' title='More posts by 咖啡兔'&gt;More Posts&lt;/a&gt; &lt;/p&gt;&lt;/p&gt;&lt;img src=&quot;http://www.wsria.com/?ak_action=api_record_view&amp;id=1549&amp;type=feed&quot; alt=&quot;&quot; /&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;[转][推荐]15 个 JavaScript Web UI 库&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F974&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1549&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/08/02/20547097.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;[转][推荐]15 个 JavaScript Web UI 库&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;《jQuery in Action》中文版即将上市&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F46&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1549&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204832.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;《jQuery in Action》中文版即将上市&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;一行jQuery代码打印九九乘法表&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F471&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1549&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;一行jQuery代码打印九九乘法表&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;jQuery技巧大放送&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F184&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1549&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;jQuery技巧大放送&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;推荐：基于jQuery开发仿Google Calendar(jQuery Week Calendar)&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F762&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1549&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2203961.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;推荐：基于jQuery开发仿Google Calendar(jQuery Week Calendar)&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290745/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290745/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.wsria.com/archives/1549/feed</wfw:commentRss><slash:comments>0</slash:comments><description>一、博文背景 使用jQuery差不多3年了，开始只是简单的应用，后来发现了官网开发的jQuery UI；从去年的一个项目开始使用jQuery UI作为主要的UI插件，选择jQuery UI的主要原因是因为需要使用jqGrid这个插件，而这个插件又使用了jQuery UI的主题;再者jQuery UI提供主题的自定义，这样对于一些喜欢不同风格的客户来说就比较容易切换自己喜欢的主题了。 写这篇博文的想法就是因为基于jQuery UI开发了两套系统，并且都运行正常，而且客户的反应也不错，所以整理以下和大家分享我的经验，同时也和正在使用的童鞋交流，希望起到抛砖引玉的作用。 二、jQuery UI基础 官网：http://jqueryui.com/ 演示：http://jqueryui.com/demos/ 下载：http://jqueryui.com/download 在线主题自定义：http://jqueryui.com/themeroller/ 在我们的系统中主要使用了Dialog、Tab、Button、Autocomplete等功能，下面会对于使用过程中遇到的问题进行列举： IE下面Dialog高度问题血的教训呀……问题描述：我们的系统都是用JSP开发的，而且定义了一个global.jsp文件用于引入一些每个页面都需要用到的常量之类的属性，当然包括公共设置的JS代码，例如JSP代码： &amp;#60;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=UTF-8&quot; pageEncoding=&quot;UTF-8&quot;%&amp;#62; &amp;#60;%@ include file=&quot;/common/global.jsp&quot; %&amp;#62; &amp;#60;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&amp;#62; &amp;#60;html&amp;#62; 输出的HTML代码如下： &amp;#60;script type=&quot;text/javascript&quot;&amp;#62; // &amp;#8230;&lt;p class=&quot;read-more&quot;&gt;&lt;a href=&quot;http://www.wsria.com/archives/1549&quot;&gt;继续阅读 &amp;#187;&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;[转][推荐]15 个 JavaScript Web UI 库&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F974&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1549&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/08/02/20547097.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;[转][推荐]15 个 JavaScript Web UI 库&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;《jQuery in Action》中文版即将上市&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F46&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1549&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204832.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;《jQuery in Action》中文版即将上市&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;一行jQuery代码打印九九乘法表&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F471&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1549&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;一行jQuery代码打印九九乘法表&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;jQuery技巧大放送&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F184&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1549&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;jQuery技巧大放送&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;推荐：基于jQuery开发仿Google Calendar(jQuery Week Calendar)&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F762&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1549&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2203961.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;推荐：基于jQuery开发仿Google Calendar(jQuery Week Calendar)&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290745/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290745/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>jQuery</category><category>前端技术</category><category>教程</category><category>UI</category><category>总结</category><pubDate>Sun, 24 Jul 2011 16:04:19 +0800</pubDate><author>咖啡兔</author><comments>http://www.wsria.com/archives/1549#comments</comments><guid isPermaLink="false">http://www.wsria.com/?p=1549</guid><dc:creator>咖啡兔</dc:creator><fs:srclink>http://www.wsria.com/archives/1549</fs:srclink><fs:srcfeed>http://www.wsria.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/wsria/~8456624/601290745/5406562</fs:itemid></item><item><title>Ubuntu配置ngnix+phpmyadmin</title><link>http://item.feedsky.com/~feedsky/wsria/~8456624/601290746/5406562/1/item.html</link><content:encoded>&lt;h3&gt;一、背景&lt;/h3&gt;
&lt;p&gt;操作系统：Ubuntu11.04-X86&lt;br /&gt;
&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/nginx&quot; title=&quot;查看 nginx 中所有文章&quot; target=&quot;_blank&quot;&gt;nginx&lt;/a&gt;&lt;/span&gt;: 1.04 目录位于：/usr/local/&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/nginx&quot; title=&quot;查看 nginx 中所有文章&quot; target=&quot;_blank&quot;&gt;nginx&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
之前我是使用apache作为&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/phpmyadmin&quot; title=&quot;查看 phpmyadmin 中所有文章&quot; target=&quot;_blank&quot;&gt;phpmyadmin&lt;/a&gt;&lt;/span&gt;的web服务器，后来因为一个项目的环境是nginx配置下来感觉很简单而且业界对nginx评价又比较高所以才转移到nginx;&lt;/p&gt;
&lt;h3&gt;二、安装配置过程&lt;/h3&gt;
&lt;p&gt;如果还枚安装过nginx、php、&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/phpmyadmin&quot; title=&quot;查看 phpmyadmin 中所有文章&quot; target=&quot;_blank&quot;&gt;phpmyadmin&lt;/a&gt;&lt;/span&gt;环境的话，请使用下面的命令安装：&lt;/p&gt;
&lt;pre&gt;
sudo apt-get install nginx mysql-server php5-cgi php5-mysql phpmyadmin
&lt;/pre&gt;
&lt;p&gt;如果和我的环境一样的话，那么安装 &lt;/p&gt;
&lt;pre&gt;
sudo apt-get install php5-cgi
&lt;/pre&gt;
&lt;p&gt;创建php-fastcgi脚本：&lt;/p&gt;
&lt;pre&gt;
sudo vi /etc/init.d/php-fastcgi
&lt;/pre&gt;
&lt;p&gt;插入如下脚本：&lt;br /&gt;
&lt;span id=&quot;more-1540&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;
#!/bin/bash
BIND=127.0.0.1:9000
USER=www-data
PHP_FCGI_CHILDREN=15
PHP_FCGI_MAX_REQUESTS=1000

PHP_CGI=/usr/bin/php-cgi
PHP_CGI_NAME=`basename $PHP_CGI`
PHP_CGI_ARGS=&quot;- USER=$USER PATH=/usr/bin PHP_FCGI_CHILDREN=$PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=$PHP_FCGI_MAX_REQUESTS $PHP_CGI -b $BIND&quot;
RETVAL=0

start() {
      echo -n &quot;Starting PHP FastCGI: &quot;
      start-stop-daemon --quiet --start --background --chuid &quot;$USER&quot; --exec /usr/bin/env -- $PHP_CGI_ARGS
      RETVAL=$?
      echo &quot;$PHP_CGI_NAME.&quot;
}
stop() {
      echo -n &quot;Stopping PHP FastCGI: &quot;
      killall -q -w -u $USER $PHP_CGI
      RETVAL=$?
      echo &quot;$PHP_CGI_NAME.&quot;
}

case &quot;$1&quot; in
    start)
      start
  ;;
    stop)
      stop
  ;;
    restart)
      stop
      start
  ;;
    *)
      echo &quot;Usage: php-fastcgi {start|stop|restart}&quot;
      exit 1
  ;;
esac
exit $RETVAL
&lt;/pre&gt;
&lt;p&gt;然后设置php-fastcgi随系统启动：&lt;/p&gt;
&lt;pre&gt;
sudo chmod +x /etc/init.d/php-fastcgi
sudo service php-fastcgi start
sudo update-rc.d php-fastcgi defaults
&lt;/pre&gt;
&lt;p&gt;配置nginx的&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/phpmyadmin&quot; title=&quot;查看 phpmyadmin 中所有文章&quot; target=&quot;_blank&quot;&gt;phpmyadmin&lt;/a&gt;&lt;/span&gt;：&lt;/p&gt;
&lt;pre&gt;
sudo mkdir -p /usr/local/nginx/conf/server/localhost
sudo vi /usr/local/nginx/conf/server/localhost/phpmyadmin.conf
&lt;/pre&gt;
&lt;p&gt;插入如下片段：&lt;/p&gt;
&lt;pre&gt;
server{
	listen 80;
	server_name phpmyadmin;
	access_log /var/log/phpmyadmin.access_log;
	error_log /var/log/phpmyadmin.error_log;

	location / {
	  root /usr/share/phpmyadmin;
	  index index.php;
	}

	location ~ \.php$ {
	    fastcgi_pass    127.0.0.1:9000;
	    fastcgi_index   index.php;
	    fastcgi_param   SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;
	    include         fastcgi_params;
	}
}
&lt;/pre&gt;
&lt;blockquote&gt;&lt;p&gt;其中的日志文件位置和fastcgi_pass中的端口根据自己的环境修改&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;在nginx.conf中include phpmyadmin配置：&lt;/p&gt;
&lt;pre&gt;
sudo vi /usr/local/nginx/conf/nginx.conf
&lt;/pre&gt;
&lt;p&gt;在最后一个大括号之前插入：&lt;/p&gt;
&lt;pre&gt;
include /usr/local/nginx/conf/server/localhost/phpmyadmin.conf;
&lt;/pre&gt;
&lt;p&gt;启动nginx:&lt;/p&gt;
&lt;pre&gt;
kafeitu@kafeitu-nb:~$ sudo /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
kafeitu@kafeitu-nb:~$ sudo /usr/local/nginx/sbin/nginx
&lt;/pre&gt;
&lt;p&gt;打开/etc/hosts，找到127.0.0.1   localhost然后再最后面加入phpmyadmin保存退出&lt;/p&gt;
&lt;pre&gt;
127.0.0.1   localhost phpmyadmin
&lt;/pre&gt;
&lt;p&gt;现在访问：http://phpmyadmin/ ，开始享受吧……&lt;/p&gt;
&lt;p&gt;参考资料：&lt;a href=&quot;http://joneslee85.wordpress.com/2010/02/28/howto-nginx-php5-mysql-phpmyadmin-ubuntu-shortest-setup/&quot; target=&quot;_blank&quot;&gt;Howto nginx + php5 + mysql + phpmyadmin + ubuntu shortest setup&lt;/a&gt;
&lt;div style=&quot;margin-top: 15px; font-style: italic&quot;&gt;
&lt;p&gt;&lt;strong&gt;原创文章，转载请注明：&lt;/strong&gt; 转载自&lt;a href=&quot;http://www.wsria.com/&quot;&gt;what is the RIA?  just it…||咖啡兔&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;本文链接地址:&lt;/strong&gt; &lt;a href=&quot;http://www.wsria.com/archives/1540&quot;&gt;Ubuntu配置ngnix+phpmyadmin&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;div style=&quot;float:left; text-align:left;&gt;&lt;img alt='' src='http://1.gravatar.com/avatar/d4c01dc675bbabaf50ed1c9e4a07f96e?s=100&amp;amp;d=monsterid&amp;amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /&gt;&lt;/div&gt;&lt;h3&gt;&lt;a href='http://www.wsria.com/archives/author/admin' title='咖啡兔'&gt;咖啡兔&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;一只咖啡兔，热爱开源，喜欢追踪、研究新技术，向往背包游……
讲究效率，坚信：“工欲善其事必先利其器”
使用Linux（Ubuntu），基于Java和jQuery开发企业RIA应用&lt;/p&gt;&lt;p&gt;&lt;a href='http://www.wsria.com' title='咖啡兔'&gt;Website&lt;/a&gt; - &lt;a href='http://www.wsria.com/archives/author/admin' title='More posts by 咖啡兔'&gt;More Posts&lt;/a&gt; &lt;/p&gt;&lt;/p&gt;&lt;img src=&quot;http://www.wsria.com/?ak_action=api_record_view&amp;id=1540&amp;type=feed&quot; alt=&quot;&quot; /&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Ubuntu安装ORACLE-XE&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Ubuntu安装ORACLE-XE&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;2009.5.1~5.3杭州之旅(露营、雨中游西湖)&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F520&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2205255.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;2009.5.1~5.3杭州之旅(露营、雨中游西湖)&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;夏天到了，终于收到迟来的WordPress T恤了&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F575&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2205246.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;夏天到了，终于收到迟来的WordPress T恤了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;我暴露了程序员的习惯&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F232&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2205264.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;我暴露了程序员的习惯&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;【推荐】jQuery.plugin——对话框jquery.weebox.js&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F342&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2203940.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;【推荐】jQuery.plugin——对话框jquery.weebox.js&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290746/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290746/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.wsria.com/archives/1540/feed</wfw:commentRss><slash:comments>1</slash:comments><description>一、背景 操作系统：Ubuntu11.04-X86 nginx: 1.04 目录位于：/usr/local/nginx 之前我是使用apache作为phpmyadmin的web服务器，后来因为一个项目的环境是nginx配置下来感觉很简单而且业界对nginx评价又比较高所以才转移到nginx; 二、安装配置过程 如果还枚安装过nginx、php、phpmyadmin环境的话，请使用下面的命令安装： sudo apt-get install nginx mysql-server php5-cgi php5-mysql phpmyadmin 如果和我的环境一样的话，那么安装 sudo apt-get install php5-cgi 创建php-fastcgi脚本： sudo vi /etc/init.d/php-fastcgi 插入如下脚本： #!/bin/bash BIND=127.0.0.1:9000 USER=www-data PHP_FCGI_CHILDREN=15 PHP_FCGI_MAX_REQUESTS=1000 PHP_CGI=/usr/bin/php-cgi PHP_CGI_NAME=`basename $PHP_CGI` PHP_CGI_ARGS=&quot;- USER=$USER PATH=/usr/bin PHP_FCGI_CHILDREN=$PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=$PHP_FCGI_MAX_REQUESTS $PHP_CGI &amp;#8230;&lt;p class=&quot;read-more&quot;&gt;&lt;a href=&quot;http://www.wsria.com/archives/1540&quot;&gt;继续阅读 &amp;#187;&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Ubuntu安装ORACLE-XE&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Ubuntu安装ORACLE-XE&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;夏天到了，终于收到迟来的WordPress T恤了&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F575&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2205246.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;夏天到了，终于收到迟来的WordPress T恤了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;庆祝本站Google PR上升到4，欢迎友链&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F758&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2205170.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;庆祝本站Google PR上升到4，欢迎友链&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;庆祝开源个人账务管理系统Google PR上升到5&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F767&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2205174.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;庆祝开源个人账务管理系统Google PR上升到5&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;利用JavaScript获取窗口/Body的宽度和高度(让jqGrid自适应窗口大小)&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1147&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204664.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;利用JavaScript获取窗口/Body的宽度和高度(让jqGrid自适应窗口大小)&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290746/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290746/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>ubuntu</category><category>工具</category><category>phpmyadmin</category><category>nginx</category><pubDate>Sat, 16 Jul 2011 12:17:42 +0800</pubDate><author>咖啡兔</author><comments>http://www.wsria.com/archives/1540#comments</comments><guid isPermaLink="false">http://www.wsria.com/?p=1540</guid><dc:creator>咖啡兔</dc:creator><fs:srclink>http://www.wsria.com/archives/1540</fs:srclink><fs:srcfeed>http://www.wsria.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/wsria/~8456624/601290746/5406562</fs:itemid></item><item><title>Ubuntu安装ORACLE-XE</title><link>http://item.feedsky.com/~feedsky/wsria/~8456624/601290747/5406562/1/item.html</link><content:encoded>&lt;p&gt;最近开发环境迁移到了Linux的发行版Ubuntu，但是目前正在开发的系统是使用的Oracle数据库，从网上找了一对资料都是很麻烦的，又是乱码又是一堆的配置，后来google到原来有一个&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/ubuntu&quot; title=&quot;查看 ubuntu 中所有文章&quot; target=&quot;_blank&quot;&gt;ubuntu&lt;/a&gt;&lt;/span&gt;版本的……&lt;/p&gt;
&lt;h3&gt;环境说明&lt;/h3&gt;
&lt;p&gt;操作系统：Ubuntu 11.04 X86&lt;/p&gt;
&lt;h3&gt;一、安装Oracle-Xe&lt;/h3&gt;
&lt;p&gt;Oracle 为 Ubuntu 用户设立了专门的 apt 源服务器，运行下面的命令：&lt;/p&gt;
&lt;pre&gt;
sudo apt-add-repository &quot;deb http://oss.oracle.com/debian unstable main non-free&quot;
&lt;/pre&gt;
&lt;p&gt;这时不要急于更新，还要将该源服务器的公钥添加到本地密钥库中，先下载公钥 ：&lt;/p&gt;
&lt;pre&gt;
sudo wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle
&lt;/pre&gt;
&lt;p&gt;&lt;span id=&quot;more-1529&quot;&gt;&lt;/span&gt;&lt;br /&gt;
下载完成后，添加到密钥库中&lt;/p&gt;
&lt;pre&gt;
sudo apt-key add RPM-GPG-KEY-oracle
&lt;/pre&gt;
&lt;p&gt;现在我们可以执行更新的命令了&lt;/p&gt;
&lt;pre&gt;
sudo apt-get update
&lt;/pre&gt;
&lt;p&gt;更新完毕候从仓库中搜索一下&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/oracle&quot; title=&quot;查看 oracle 中所有文章&quot; target=&quot;_blank&quot;&gt;oracle&lt;/a&gt;&lt;/span&gt;相关的软件：&lt;/p&gt;
&lt;pre&gt;
sudo apt-cache search oracle
&lt;/pre&gt;
&lt;p&gt;看到三个我们需要的结果：&lt;/p&gt;
&lt;pre&gt;
oracle-xe - Oracle Database 10g Express Western European Edition
oracle-xe-client - Oracle Client 10g Express Edition
oracle-xe-universal - Oracle Database 10g Express Universal Edition
&lt;/pre&gt;
&lt;p&gt;因为是开发需要所以我安装了&lt;b&gt;&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/oracle&quot; title=&quot;查看 oracle 中所有文章&quot; target=&quot;_blank&quot;&gt;oracle&lt;/a&gt;&lt;/span&gt;-xe&lt;/b&gt;，运行命令：&lt;/p&gt;
&lt;pre&gt;
sudo apt-get install libaio1
sudo apt-get install oracle-xe
&lt;/pre&gt;
&lt;p&gt;到此安装完成，下面的配置才是关键的。&lt;/p&gt;
&lt;h3&gt;二、配置Oracle&lt;/h3&gt;
&lt;p&gt;在/etc/profile中添加&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/oracle&quot; title=&quot;查看 oracle 中所有文章&quot; target=&quot;_blank&quot;&gt;oracle&lt;/a&gt;&lt;/span&gt;相关配置：&lt;/p&gt;
&lt;pre&gt;
sudo vi /etc/profile
&lt;/pre&gt;
&lt;p&gt;添加如下内容：&lt;/p&gt;
&lt;pre&gt;
# oracle settings
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_SID=XE
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export TNS_ADMIN=/usr/lib/oracle
&lt;/pre&gt;
&lt;p&gt;在配置的过程中遇到了问题，因为我参考的资料没有设置&lt;strong&gt;ORACLE_SID&lt;/strong&gt;所以导致数据不能访问，安装后默认的SID是&lt;strong&gt;XE&lt;/strong&gt;；&lt;/p&gt;
&lt;h3&gt;三、配置TNS&lt;/h3&gt;
&lt;pre&gt;
sudo vi /usr/lib/oracle/tnsnames.ora
&lt;/pre&gt;
&lt;p&gt;添加如下内容：&lt;/p&gt;
&lt;pre&gt;
orcl =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
    )
  )
&lt;/pre&gt;
&lt;p&gt;其中SERVICE_NAME和ORACLE_SID一致，orcl可以自定义&lt;/p&gt;
&lt;h3&gt;四、Ubuntu下sqlplus上下光标键乱码解决方法&lt;/h3&gt;
&lt;p&gt;遇到如题所述的问题时，可以这样解决该问题：&lt;br /&gt;
1、安装插件： sudo apt-get install rlwrap&lt;br /&gt;
2、在~/.bashrc中添加：alias sqlplus=&amp;#8217;rlwrap sqlplus&amp;#8217;&lt;br /&gt;
3、重新键入sqlplus命令即可尽情享用上下左右光标键了&lt;/p&gt;
&lt;h3&gt;五、中文乱码问题解决&lt;/h3&gt;
&lt;p&gt;在~/.bashrc中添加：&lt;/p&gt;
&lt;pre&gt;
export NLS_LANG=american_america.utf8
&lt;/pre&gt;
&lt;h3&gt;六、代替win下面的plsql developer工具&lt;/h3&gt;
&lt;p&gt;在linux下面可以使用oracle官方开发的sql developer，下载地址：&lt;br /&gt;
&lt;a href=&quot;http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html&quot; target=&quot;_blank&quot;&gt;下载sql developer&lt;/a&gt;
&lt;div style=&quot;margin-top: 15px; font-style: italic&quot;&gt;
&lt;p&gt;&lt;strong&gt;原创文章，转载请注明：&lt;/strong&gt; 转载自&lt;a href=&quot;http://www.wsria.com/&quot;&gt;what is the RIA?  just it…||咖啡兔&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;本文链接地址:&lt;/strong&gt; &lt;a href=&quot;http://www.wsria.com/archives/1529&quot;&gt;Ubuntu安装ORACLE-XE&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;div style=&quot;float:left; text-align:left;&gt;&lt;img alt='' src='http://1.gravatar.com/avatar/d4c01dc675bbabaf50ed1c9e4a07f96e?s=100&amp;amp;d=monsterid&amp;amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /&gt;&lt;/div&gt;&lt;h3&gt;&lt;a href='http://www.wsria.com/archives/author/admin' title='咖啡兔'&gt;咖啡兔&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;一只咖啡兔，热爱开源，喜欢追踪、研究新技术，向往背包游……
讲究效率，坚信：“工欲善其事必先利其器”
使用Linux（Ubuntu），基于Java和jQuery开发企业RIA应用&lt;/p&gt;&lt;p&gt;&lt;a href='http://www.wsria.com' title='咖啡兔'&gt;Website&lt;/a&gt; - &lt;a href='http://www.wsria.com/archives/author/admin' title='More posts by 咖啡兔'&gt;More Posts&lt;/a&gt; &lt;/p&gt;&lt;/p&gt;&lt;img src=&quot;http://www.wsria.com/?ak_action=api_record_view&amp;id=1529&amp;type=feed&quot; alt=&quot;&quot; /&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Windows Server 2008 R2 X64安装Oracle 10g R2后不能创建数据库问题解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1519&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/06/26/14466844.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Windows Server 2008 R2 X64安装Oracle 10g R2后不能创建数据库问题解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Ubuntu配置ngnix+phpmyadmin&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Ubuntu配置ngnix+phpmyadmin&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Win7下不能安装Oracle11g解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F927&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Win7下不能安装Oracle11g解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;工欲善其事，必先利其器&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1026&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204697.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;工欲善其事，必先利其器&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;既爱又恨Firefox&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F259&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2206731.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;既爱又恨Firefox&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290747/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290747/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.wsria.com/archives/1529/feed</wfw:commentRss><slash:comments>0</slash:comments><description>最近开发环境迁移到了Linux的发行版Ubuntu，但是目前正在开发的系统是使用的Oracle数据库，从网上找了一对资料都是很麻烦的，又是乱码又是一堆的配置，后来google到原来有一个ubuntu版本的…… 环境说明 操作系统：Ubuntu 11.04 X86 一、安装Oracle-Xe Oracle 为 Ubuntu 用户设立了专门的 apt 源服务器，运行下面的命令： sudo apt-add-repository &quot;deb http://oss.oracle.com/debian unstable main non-free&quot; 这时不要急于更新，还要将该源服务器的公钥添加到本地密钥库中，先下载公钥 ： sudo wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle 下载完成后，添加到密钥库中 sudo apt-key add RPM-GPG-KEY-oracle 现在我们可以执行更新的命令了 sudo apt-get update 更新完毕候从仓库中搜索一下oracle相关的软件： sudo apt-cache search oracle 看到三个我们需要的结果： oracle-xe &amp;#8230;&lt;p class=&quot;read-more&quot;&gt;&lt;a href=&quot;http://www.wsria.com/archives/1529&quot;&gt;继续阅读 &amp;#187;&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Windows Server 2008 R2 X64安装Oracle 10g R2后不能创建数据库问题解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1519&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/06/26/14466844.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Windows Server 2008 R2 X64安装Oracle 10g R2后不能创建数据库问题解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Ubuntu配置ngnix+phpmyadmin&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1540&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Ubuntu配置ngnix+phpmyadmin&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Win7下不能安装Oracle11g解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F927&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Win7下不能安装Oracle11g解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;2009.5.1~5.3杭州之旅(露营、雨中游西湖)&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F520&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2205255.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;2009.5.1~5.3杭州之旅(露营、雨中游西湖)&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;【推荐】jQuery.plugin——对话框jquery.weebox.js&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F342&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2203940.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;【推荐】jQuery.plugin——对话框jquery.weebox.js&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290747/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290747/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>ubuntu</category><category>工具</category><category>oracle</category><pubDate>Fri, 15 Jul 2011 15:52:49 +0800</pubDate><author>咖啡兔</author><comments>http://www.wsria.com/archives/1529#comments</comments><guid isPermaLink="false">http://www.wsria.com/?p=1529</guid><dc:creator>咖啡兔</dc:creator><fs:srclink>http://www.wsria.com/archives/1529</fs:srclink><fs:srcfeed>http://www.wsria.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/wsria/~8456624/601290747/5406562</fs:itemid></item><item><title>Windows Server 2008 R2 X64安装Oracle 10g R2后不能创建数据库问题解决办法</title><link>http://item.feedsky.com/~feedsky/wsria/~8456624/601290748/5406562/1/item.html</link><content:encoded>&lt;h3&gt;一、背景交代&lt;/h3&gt;
&lt;p&gt;客户刚刚到的一台新服务器，型号为：IBM X3850，自带的操作系统为：Windows Server 2008 R2 X64；需要安装版本为10.2.0.4版本的Oracle数据库。&lt;/p&gt;
&lt;h3&gt;二、遇到问题&lt;/h3&gt;
&lt;p&gt;找到Oracle提供的安装光盘后安装数据库一路next，到了最后&lt;strong&gt;创建数据库&lt;/strong&gt;的时候遇到了问题，进度停止不前，如下图：&lt;br /&gt;
&lt;a href=&quot;http://www.wsria.com/wp-content/uploads/2011/06/oracle-create-db.png&quot; rel=&quot;lightbox[1519]&quot; title=&quot;oracle创建数据库时等待状态--停滞不前&quot;&gt;&lt;img src=&quot;http://www.wsria.com/wp-content/uploads/2011/06/oracle-create-db.png&quot; alt=&quot;oracle创建数据库时等待状态--停滞不前&quot; title=&quot;oracle创建数据库时等待状态--停滞不前&quot; width=&quot;575&quot; height=&quot;423&quot; class=&quot;alignright size-full wp-image-1522&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;
查看trace.log内容如下：&lt;br /&gt;
&lt;span id=&quot;more-1519&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;
[main] [14:46:52:122] [CommandLineArguments.process:563]  CommandLineArguments-&gt;process: number of arguments = 32
[main] [14:46:52:122] [CommandLineArguments.process:738]  CommandLineArguments-&gt;process: Create Database argument is specified
[main] [14:46:52:122] [CommandLineArguments.process:910]  CommandLineArguments-&gt;process: template Name argument is specified
[main] [14:46:52:122] [CommandLineArguments.process:960]  CommandLineArguments-&gt;process: db name argument is specified
[main] [14:46:52:122] [CommandLineArguments.process:3074]  CommandLineArguments-&gt;process: in Operation Type is Creation/GenerateScripts Mode condition
[main] [14:46:52:137] [CommandLineArguments.process:3298]  CommandLineArguments-&gt;process: Successfully process command line arguments
[main] [14:46:52:855] [Host.checkOPS:2055]  Inside checkOPS
[main] [14:46:52:855] [Host.checkOPS:2067]  Trying to check cluster existence
[main] [14:46:52:902] [Library.getInstance:97]  Created instance of Library.
[main] [14:46:52:902] [Library.load:197]  Loading orauts.dll...
[main] [14:46:52:902] [Library.load:203]  oracleHome D:\oracle\product\10.2.0\db_1
[main] [14:46:52:902] [sPlatform.isHybrid:63]  osName=Windows Vista osArch=amd64 rc=false
[main] [14:46:52:902] [Library.load:223]  Loading  library D:\oracle\product\10.2.0\db_1\bin\orauts.dll
[main] [14:46:52:902] [Library.load:247]  Loaded library D:\oracle\product\10.2.0\db_1\bin\orauts.dll from path=
D:\oracle\product\10.2.0\db_1\bin
[main] [14:46:52:902] [Library.load:197]  Loading MSVCRT.dll...
[main] [14:46:52:902] [Library.load:203]  oracleHome D:\oracle\product\10.2.0\db_1
[main] [14:46:52:902] [sPlatform.isHybrid:63]  osName=Windows Vista osArch=amd64 rc=false
[main] [14:46:52:902] [Library.load:223]  Loading  library D:\oracle\product\10.2.0\db_1\bin\MSVCRT.dll
[main] [14:46:52:902] [Library.load:247]  Loaded library D:\oracle\product\10.2.0\db_1\bin\MSVCRT.dll from path=
D:\oracle\product\10.2.0\db_1\bin
[main] [14:46:52:902] [Library.load:197]  Loading orawsec10.dll...
[main] [14:46:52:902] [Library.load:203]  oracleHome D:\oracle\product\10.2.0\db_1
[main] [14:46:52:902] [sPlatform.isHybrid:63]  osName=Windows Vista osArch=amd64 rc=false
[main] [14:46:52:902] [Library.load:223]  Loading  library D:\oracle\product\10.2.0\db_1\bin\orawsec10.dll
[main] [14:46:52:902] [Library.load:247]  Loaded library D:\oracle\product\10.2.0\db_1\bin\orawsec10.dll from path=
D:\oracle\product\10.2.0\db_1\bin
[main] [14:46:52:902] [Library.load:197]  Loading orasrvm10.dll...
[main] [14:46:52:902] [Library.load:203]  oracleHome D:\oracle\product\10.2.0\db_1
[main] [14:46:52:902] [sPlatform.isHybrid:63]  osName=Windows Vista osArch=amd64 rc=false
[main] [14:46:52:902] [Library.load:223]  Loading  library D:\oracle\product\10.2.0\db_1\bin\orasrvm10.dll
[main] [14:46:52:902] [Library.load:247]  Loaded library D:\oracle\product\10.2.0\db_1\bin\orasrvm10.dll from path=
D:\oracle\product\10.2.0\db_1\bin
[main] [14:46:52:902] [Version.isPre10i:189]  isPre10i.java: Returning FALSE
[main] [14:46:52:902] [WindowsSystem.regKeyExists:1006]  WindowsSystem.regKeyExists: mainkey= HKEY_LOCAL_MACHINE subkey = Software\Oracle\Ocr
[main] [14:46:53:104] [WindowsSystem.getCSSConfigType:1163]  configType=null
[main] [14:46:53:104] [Host.checkOPS:2073]  cluster existence:false
[main] [14:46:53:104] [Host.checkOPS:2111]  Cluster installed=false
[main] [14:46:53:260] [InitParamHandler.endElement:506]  CustomSGA flag: false
[main] [14:46:53:260] [InitParamHandler.endElement:507]  Database Type: MULTIPURPOSE
[main] [14:46:53:260] [InitParamHandler.endElement:508]  Mem Percentage: 40
[main] [14:46:53:260] [InitParamHandler.endElement:526]  distributing Memory: 13737443328
[main] [14:46:53:260] [MemoryCalculator.calculateMemory:122]  Setting SGA to MAX_SGA 1610612736
[main] [14:46:53:276] [StorageAttributes.setAttribute:232]  IN threadID:1 group#=1
[main] [14:46:53:276] [StorageAttributes.setAttribute:232]  IN threadID:1 group#=2
[main] [14:46:53:276] [StorageAttributes.setAttribute:241]  Current threadID=1
[main] [14:46:53:276] [StorageAttributes.setAttribute:248]  Current threadID=1 ==&gt; redoGroups[0]=1
[main] [14:46:53:276] [StorageAttributes.setAttribute:258]  vRedoGroups:[1]
[main] [14:46:53:276] [StorageAttributes.setAttribute:288]  setAttribute: bExists=false
[main] [14:46:53:276] [StorageAttributes.setAttribute:232]  IN threadID:1 group#=3
[main] [14:46:53:276] [StorageAttributes.setAttribute:241]  Current threadID=1
[main] [14:46:53:276] [StorageAttributes.setAttribute:248]  Current threadID=1 ==&gt; redoGroups[0]=1
[main] [14:46:53:276] [StorageAttributes.setAttribute:248]  Current threadID=1 ==&gt; redoGroups[1]=2
[main] [14:46:53:276] [StorageAttributes.setAttribute:258]  vRedoGroups:[1, 2]
[main] [14:46:53:276] [StorageAttributes.setAttribute:288]  setAttribute: bExists=false
[main] [14:46:53:276] [TemplateManager.parseCloneTemplate:1477]  See for any transportable datafiles in TemplateManager.....
[main] [14:46:53:276] [TemplateManager.isInstallTemplate:2178]  Selected Template by user:=General Purpose
[main] [14:46:53:276] [TemplateManager.isInstallTemplate:2185]  The Message Id to be searched:=GENERAL_PURPOSE
[main] [14:46:53:276] [TemplateManager.parseCloneTemplate:1489]  create new clone data file for tp file.......
[main] [14:46:53:276] [Host.setupOIDCommandlineParameters:7184]  setupOIDCommandlineParameters:
[main] [14:46:53:276] [Host.setupOIDCommandlineParameters:7185]  m_regWithdirService: false
[main] [14:46:53:276] [Host.setupOIDCommandlineParameters:7186]  m_unregWithdirService: false
[main] [14:46:53:276] [Host.setupOIDCommandlineParameters:7187]  m_updateDirService: false
[main] [14:46:53:276] [Verifier.processRawConfigFile:3523]  StorageType == 0
[main] [14:46:53:276] [Verifier.setOradataDest:4349]  setOradataDest:dfDest=D:\oracle\product\10.2.0\oradata
[main] [14:46:53:276] [TemplateManager.updateDatafileDestination:1957]  updateDatafiles:datafileDir=D:\oracle\product\10.2.0\oradata
[main] [14:46:53:276] [TemplateManager.updateDatafileDestination:2103]  From template, RedoLogGrName=1
[main] [14:46:53:307] [TemplateManager.updateDatafileDestination:2118]  new file name redo01.log
[main] [14:46:53:307] [TemplateManager.updateDatafileDestination:2103]  From template, RedoLogGrName=2
[main] [14:46:53:307] [TemplateManager.updateDatafileDestination:2118]  new file name redo02.log
[main] [14:46:53:307] [TemplateManager.updateDatafileDestination:2103]  From template, RedoLogGrName=3
[main] [14:46:53:307] [TemplateManager.updateDatafileDestination:2118]  new file name redo03.log
[main] [14:46:53:307] [ProgressOnlyHost.performOperation:162]  processRawConfigFile=false
[main] [14:46:53:307] [Verifier.validateTemplate:1629]  StorageType == 0
[main] [14:46:53:307] [ProgressOnlyHost.performOperation:178]  validateTemplate=true
[main] [14:46:53:307] [OracleHome.isRacEnabled:149]  bRacOn = false
[main] [14:46:53:323] [Verifier.validateTemplate:1629]  StorageType == 0
[main] [14:46:53:323] [Verifier.calculateCloneDatafilePathsAndSizes:2951]  canonicalPath=D:\oracle\product\10.2.0\
[main] [14:46:53:323] [Verifier.calculateCloneDatafilePathsAndSizes:2951]  canonicalPath=D:\oracle\product\10.2.0\
[main] [14:46:53:323] [Verifier.calculateCloneDatafilePathsAndSizes:2951]  canonicalPath=D:\oracle\product\10.2.0\
[main] [14:46:53:323] [Verifier.calculateCloneDatafilePathsAndSizes:2951]  canonicalPath=D:\oracle\product\10.2.0\
[main] [14:46:53:323] [Verifier.calculateCloneDatafilePathsAndSizes:2951]  canonicalPath=D:\oracle\product\10.2.0\
[main] [14:46:53:338] [Verifier.calculateRedoLogGroupFileSizes:3083]  canonicalPath=D:\oracle\product\10.2.0\
[main] [14:46:53:338] [Verifier.calculateRedoLogGroupFileSizes:3083]  canonicalPath=D:\oracle\product\10.2.0\
[main] [14:46:53:338] [Verifier.calculateRedoLogGroupFileSizes:3083]  canonicalPath=D:\oracle\product\10.2.0\
[main] [14:46:53:338] [Verifier.getControlfFileSizes:3001]  No. of Control files:=3
[main] [14:46:53:463] [Host.executeSteps:4044]  Executing steps....
[main] [14:46:53:463] [Host.setUpForOperation:2920]  setUpForOperation: Mode = 128
[main] [14:46:53:479] [Host.executeSteps:4186]  setupForOperation returned: true
[main] [14:46:53:479] [Host.createStepSQLInterface:5948]  sid =orcl
[main] [14:46:53:494] [SQLEngine.initialize:242]  Execing SQLPLUS/SVRMGR process...
[main] [14:46:53:494] [SQLEngine.initialize:270]  m_bReaderStarted: false
[main] [14:46:53:494] [SQLEngine.initialize:274]  Starting Reader Thread...
[Thread-4] [14:46:53:713] [StepContext$ModeRunner.run:2478]  ---- Progress Needed:=true
[Thread-4] [14:46:53:822] [BasicStep.execute:202]  Executing Step : CLONE_DB_CREATION_RMAN_RESTORE
[Thread-4] [14:46:53:822] [StepErrorHandler.setFatalErrors:322]  setting Fatal Error: ORA-01092
[Thread-4] [14:46:53:822] [StepErrorHandler.setFatalErrors:322]  setting Fatal Error: ORA-01034
[Thread-4] [14:46:53:822] [StepErrorHandler.setFatalErrors:322]  setting Fatal Error: ORA-03114
[Thread-4] [14:46:53:822] [StepErrorHandler.setFatalErrors:322]  setting Fatal Error: ORA-12560
[Thread-4] [14:46:53:822] [StepErrorHandler.setIgnorableErrors:250]  setting Ignorable Error: ORA-01109
[Thread-4] [14:46:53:822] [BasicStep.configureSettings:304]  messageHandler being set=null
[Thread-4] [14:46:53:822] [BasicStep.execute:202]  Executing Step : INSTANCE_CREATION
[Thread-4] [14:46:53:822] [BasicStep.configureSettings:304]  messageHandler being set=null
[Thread-4] [14:46:53:838] [InitParamAttributes.sortParams:3532]  m_sortOn:-1 sortOn:4
[Thread-4] [14:46:53:884] [OracleHome.isRacEnabled:149]  bRacOn = false
[Thread-4] [14:46:53:884] [Host.noEntryinOratab:5115]  Check made for oratab arg passed............
[Thread-4] [14:46:53:884] [Oradim.getAddEntryCommand:353]  AddEntry=[D:\oracle\product\10.2.0\db_1\bin\oradim.exe, -new, -sid, ORCL, -startmode, manual, -spfile]
[Thread-4] [14:46:54:976] [Oradim.getEditEntryCommand:422]  getEditEntry cmd=[D:\oracle\product\10.2.0\db_1\bin\oradim.exe, -edit, -sid, ORCL, -startmode, auto, -srvcstart, system]
[Thread-4] [14:46:55:164] [Oradim.addSidToRegistry:871]  oracleHomeKey: SOFTWARE\ORACLE\KEY_OraDb10g_home1
[Thread-4] [14:46:55:226] [BasicStep.configureSettings:304]  messageHandler being set=oracle.sysman.assistants.util.UIMessageHandler@6f27f79d
[Thread-4] [14:46:55:226] [CloneRmanRestoreStep.executeImpl:217]  Instance Creation went fine..........
[Thread-4] [14:46:55:226] [CloneRmanRestoreStep.executeImpl:224]  db_recovery_file_dest=D:\oracle\product\10.2.0\flash_recovery_area
[Thread-4] [14:46:55:226] [CloneRmanRestoreStep.executeImpl:227]  db_recovery_file_dest_size=2147483648
[Thread-4] [14:46:56:115] [SQLEngine.setSpool:1750]  old Spool  = null
[Thread-4] [14:46:56:115] [SQLEngine.setSpool:1751]  Setting Spool  = D:\oracle\product\10.2.0\db_1\cfgtoollogs\dbca\orcl\CloneRmanRestore.log
[Thread-4] [14:46:56:115] [SQLEngine.setSpool:1752]  Is spool appendable? --&gt; true
[Thread-4] [14:46:56:115] [CloneRmanRestoreStep.executeImpl:320]  starting with pfile=D:\oracle\product\10.2.0\admin\orcl\pfile\init.ora
&lt;/pre&gt;
&lt;p&gt;开始怀疑是操作系统的问题，然后我在vmware虚拟机上安装Windows Server 2008 R2 X64然后安装数据库顺利通过，之后让管理员安装企业版的系统，再安装orace问题还是存在。&lt;/p&gt;
&lt;h3&gt;三、解决办法&lt;/h3&gt;
&lt;p&gt;因为是正版的就打电话给&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/oracle&quot; title=&quot;查看 oracle 中所有文章&quot; target=&quot;_blank&quot;&gt;oracle&lt;/a&gt;&lt;/span&gt;咨询，几经周折后得知需要安装补丁，编号：&lt;strong&gt;8202632&lt;/strong&gt;，这个补丁需要的安装办法：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;安装数据库的时候不要选择“创建数据库”选项&lt;/li&gt;
&lt;li&gt;安装完成后安装补丁&lt;strong&gt;8202632&lt;/strong&gt;，注意这个步骤在安装的时候选择安装数据库的时候home路径（例如C:\&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/oracle&quot; title=&quot;查看 oracle 中所有文章&quot; target=&quot;_blank&quot;&gt;oracle&lt;/a&gt;&lt;/span&gt;\product\10.2.0\db_1）&lt;/li&gt;
&lt;li&gt;补丁安装完成之后再运行“Database Configuration Assistant”创建数据库。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;补丁8202632下载地址：&lt;/strong&gt;&lt;a href=&quot;ftp://updates.oracle.com/8202632/p8202632_10205_MSWIN-x86-64.zip&quot; target=&quot;_blank&quot;&gt;ftp://updates.oracle.com/8202632/p8202632_10205_MSWIN-x86-64.zip&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;四、延伸问题及解决办法&lt;/h3&gt;
&lt;p&gt;如果遇到“&lt;strong&gt;EM不能启动&lt;/strong&gt;”的问题请另外打补丁解决，编号：8350262&lt;br/&gt;&lt;br /&gt;
下载地址：&lt;a href=&quot;http://download.csdn.net/source/3045207&quot;&gt;http://download.csdn.net/source/3045207&lt;/a&gt;&lt;/p&gt;
&lt;div style=&quot;margin-top: 15px; font-style: italic&quot;&gt;
&lt;p&gt;&lt;strong&gt;原创文章，转载请注明：&lt;/strong&gt; 转载自&lt;a href=&quot;http://www.wsria.com/&quot;&gt;what is the RIA?  just it…||咖啡兔&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;本文链接地址:&lt;/strong&gt; &lt;a href=&quot;http://www.wsria.com/archives/1519&quot;&gt;Windows Server 2008 R2 X64安装Oracle 10g R2后不能创建数据库问题解决办法&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;div style=&quot;float:left; text-align:left;&gt;&lt;img alt='' src='http://1.gravatar.com/avatar/d4c01dc675bbabaf50ed1c9e4a07f96e?s=100&amp;amp;d=monsterid&amp;amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /&gt;&lt;/div&gt;&lt;h3&gt;&lt;a href='http://www.wsria.com/archives/author/admin' title='咖啡兔'&gt;咖啡兔&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;一只咖啡兔，热爱开源，喜欢追踪、研究新技术，向往背包游……
讲究效率，坚信：“工欲善其事必先利其器”
使用Linux（Ubuntu），基于Java和jQuery开发企业RIA应用&lt;/p&gt;&lt;p&gt;&lt;a href='http://www.wsria.com' title='咖啡兔'&gt;Website&lt;/a&gt; - &lt;a href='http://www.wsria.com/archives/author/admin' title='More posts by 咖啡兔'&gt;More Posts&lt;/a&gt; &lt;/p&gt;&lt;/p&gt;&lt;img src=&quot;http://www.wsria.com/?ak_action=api_record_view&amp;id=1519&amp;type=feed&quot; alt=&quot;&quot; /&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Ubuntu安装ORACLE-XE&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1519&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Ubuntu安装ORACLE-XE&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Win7下不能安装Oracle11g解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F927&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1519&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Win7下不能安装Oracle11g解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;jquery.validate插件remote规则相同值不验证的问题解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1273&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1519&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204610.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;jquery.validate插件remote规则相同值不验证的问题解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;JasperReports iReport导出PDF中文解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F981&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1519&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2203831.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;JasperReports iReport导出PDF中文解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1004&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1519&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204439.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290748/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290748/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.wsria.com/archives/1519/feed</wfw:commentRss><slash:comments>6</slash:comments><description>Windows Server 2008 R2 X64安装Oracle 10g R2后不能创建数据库问题解决办法&lt;p class=&quot;read-more&quot;&gt;&lt;a href=&quot;http://www.wsria.com/archives/1519&quot;&gt;继续阅读 &amp;#187;&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Ubuntu安装ORACLE-XE&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1529&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1519&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Ubuntu安装ORACLE-XE&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Win7下不能安装Oracle11g解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F927&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1519&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Win7下不能安装Oracle11g解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;jquery.validate插件remote规则相同值不验证的问题解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1273&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1519&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204610.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;jquery.validate插件remote规则相同值不验证的问题解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;JasperReports iReport导出PDF中文解决办法&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F981&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1519&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2203831.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;JasperReports iReport导出PDF中文解决办法&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1004&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1519&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204439.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290748/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290748/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>oracle</category><category>解决方案</category><pubDate>Sun, 26 Jun 2011 12:12:46 +0800</pubDate><author>咖啡兔</author><comments>http://www.wsria.com/archives/1519#comments</comments><guid isPermaLink="false">http://www.wsria.com/?p=1519</guid><dc:creator>咖啡兔</dc:creator><fs:srclink>http://www.wsria.com/archives/1519</fs:srclink><fs:srcfeed>http://www.wsria.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/wsria/~8456624/601290748/5406562</fs:itemid></item><item><title>转：Maven实战（一）——坐标规划</title><link>http://item.feedsky.com/~feedsky/wsria/~8456624/601290749/5406562/1/item.html</link><content:encoded>&lt;h2&gt;坐标是什么？为什么要规划？&lt;/h2&gt;
&lt;p&gt;坐标是&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/maven&quot; title=&quot;查看 Maven 中所有文章&quot; target=&quot;_blank&quot;&gt;Maven&lt;/a&gt;&lt;/span&gt;最基本的概念，它就像每个构件的身份证号码，有了它我们就可以在数以千万计的构件中定位任何一个我们感兴趣的构件。举个最简单的例子，如果没有坐标，使用JUnit的时候，用户就需要去&lt;a href=&quot;http://junit.org/&quot; target=&quot;_blank&quot;&gt;下载&lt;/a&gt;依赖jar包，用依赖的方式，简单配置使用如junit:junit:4.8.2就可以了。这里第一个junit是groupId，第二个junit是artifactId，4.8.2是version。&lt;/p&gt;
&lt;p&gt;&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/maven&quot; title=&quot;查看 Maven 中所有文章&quot; target=&quot;_blank&quot;&gt;Maven&lt;/a&gt;&lt;/span&gt;的很多其他核心机制都依赖于坐标，其中最显著的就是仓库和依赖管理。对于仓库来说，有了坐标就知道在什么位置存储构件的内容，例如junit:junit:4.8.2就对应仓库中的路径&lt;code&gt;/junit/junit/4.8.2/junit-4.8.2.pom&lt;/code&gt;和&lt;code&gt;/junit/junit/4.8.2/junit-4.8.2.jar&lt;/code&gt;这样的文件，读者可以直接访问&lt;a href=&quot;http://repo1.maven.org/maven2/junit/junit/4.8.2/&quot; target=&quot;_blank&quot;&gt;中央仓库地址&lt;/a&gt;看到这样的仓库布局，或者浏览本地仓库目录&lt;code&gt;~/.m2/repository/&lt;/code&gt;以获得直观的体验。&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1497&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;依赖的配置也是完全基于坐标的，例如：&lt;/p&gt;
&lt;pre&gt;&amp;lt;dependency&amp;gt;
  &amp;lt;groupId&amp;gt;junit&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;junit&amp;lt;/artifactId&amp;gt;
  &amp;lt;version&amp;gt;4.8.2&amp;lt;/version&amp;gt;
  &amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/pre&gt;
&lt;p&gt;有了正确的坐标,&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/maven&quot; title=&quot;查看 Maven 中所有文章&quot; target=&quot;_blank&quot;&gt;Maven&lt;/a&gt;&lt;/span&gt;才能够在正确的位置找到依赖文件并使用，这里值为test的scope是用来控制该依赖只在测试时可用，与坐标无关。&lt;/p&gt;
&lt;p&gt;正因为坐标是Maven核心的核心，因此规划正确的坐标至关重要，如果你使用了模糊不清的坐标，那么你的用户就很难找到你的构件，或者即使找到了， 也容易写错。错误的使用坐标，还会造成冲突，如果你也使用junit这样的groupId，那会发生什么？下面先看一些不是很规范的坐标使用方式。&lt;/p&gt;
&lt;h2&gt;坐标规划的原则&lt;/h2&gt;
&lt;p&gt;滥用坐标、错用坐标的样例比比皆是，在中央仓库中我们能看到SpringFramework有两种坐标，其一是直接使用 springframework作为groupId，如springframework:spring-beans:1.2.6，另一种是用 org.springframework作为groupId，如org.springframework:spring-beans:2.5。细心看看， 前一种方式显得比较随意，后一种方式则是基于域名衍生出来的，显然后者更合理，因为用户能一眼根据域名联想到其Maven坐标，方便寻找。因此新版本的 SpringFramework构件都使用org.springframework作为groupId。由这个例子我们可以看到坐标规划一个原则是&lt;em&gt;基于项目域名衍生&lt;/em&gt;。其实很多流行的开源项目都破坏了这个原则，例如JUnit，这是因为Maven社区在最开始接受构件并部署到中央仓库的时候，没有很很严格的限制，而对于这些流行的项目来说，一时间更改坐标会影响大量用户，因此也算是个历史遗留问题了。&lt;/p&gt;
&lt;p&gt;还有一个常见的问题是将groupId直接匹配到公司或者组织名称，因为乍一看这是显而易见的。例如组织是zoo.com，有个项目是dog，那有 些人就直接使用groupId com.zoo了。如果项目只有一个模块，这是没有什么问题的，但现实世界的项目往往会有很多模块，Maven的一大长处就是通过多模块的方式管理项目。 那dog项目可能会有很多模块，我们用坐标的哪个部分来定义模块呢？groupId显然不对，version也不可能是，那只有artifactId。因 此要这里有了另外一个原则，&lt;em&gt;用artifactId来定义模块&lt;/em&gt;，而不是定义项目。接下来，很显然的，&lt;em&gt;项目就必须用groupId来定义&lt;/em&gt;。因此对于dog项目来说，应该使用groupId com.zoo.dog，不仅体现出这是zoo.com下的一个项目，而且可以与该组织下的其他项目如com.zoo.cat区分开来。&lt;/p&gt;
&lt;p&gt;除此之外，artifactId的定义也有最佳实践，我们常常可以看到一个项目有很多的模块，例如api，dao，service，web等等。 Maven项目在默认情况下生成的构件，其名称不会是基于artifactId，version和packaging生成的，例如&lt;code&gt;api-1.0.jar&lt;/code&gt;，&lt;code&gt;dao-1.0.jar&lt;/code&gt;等 等，他们不会带有groupId的信息，这会造成一个问题，例如当我们把所有这些构件放到Web容器下的时候，你会发现项目dog有api- 1.0.jar，项目cat也有api-1.0.jar，这就造成了冲突。更坏的情况是，dog项目有api-1.0.jar，cat项目有api- 2.0.jar，其实两者没什么关系，可当放在一起的时候，却很容易让人混淆。为了让坐标更加清晰，又出现了一个原则，即在&lt;em&gt;定义artiafctId时也加入项目的信息&lt;/em&gt;， 例如dog项目的api模块，那就使用artifactId dog-api，其他就是dog-dao，dao-service等等。虽然连字号是不允许出现在Java的包名中的，但Maven没这个限制。现在 dog-api-1.0.jar，cat-2.0.jar被放在一起时，就不容易混淆了。&lt;/p&gt;
&lt;p&gt;关于坐标，我们还没谈到version，这里不再详述因为读者可以从&lt;a href=&quot;http://www.sonatype.com/books/mvnref-book/reference/pom-relationships-sect-pom-syntax.html#pom-relationships-sect-version-build-numbers&quot; target=&quot;_blank&quot;&gt;Maven: The Complete Guide&lt;/a&gt;中找到详细的解释，简言之就是使用这样一个格式：&lt;/p&gt;
&lt;pre&gt;&amp;lt;主版本&amp;gt;.&amp;lt;次版本&amp;gt;.&amp;lt;增量版本&amp;gt;-&amp;lt;限定符&amp;gt;&lt;/pre&gt;
&lt;p&gt;其中主版本主要表示大型架构变更，次版本主要表示特性的增加，增量版本主要服务于bug修复，而限定符如alpha、beta等等是用来表示里程 碑。当然不是每个项目的版本都要用到这些4个部分，根据需要选择性的使用即可。在此基础上Maven还引入了SNAPSHOT的概念，用来表示活动的开发 状态，由于不涉及坐标规划，这里不进行详述。不过有点要提醒的是，由于SNAPSHOT的存在，自己显式地在version中使用时间戳字符串其实没有必 要。&lt;/p&gt;
&lt;h2&gt;&lt;a name=&quot;d0e80&quot;&gt;&lt;/a&gt;Classifier&lt;/h2&gt;
&lt;p&gt;Classifier可能是最容易被忽略的Maven特性，但它确实非常重要，我们也需要它来帮助规划坐标。设想这样一个情况，有一个jar项目，就说是&lt;code&gt; &lt;code&gt;dog-cli-1.0.jar&lt;/code&gt; &lt;/code&gt;吧，运行它用户就能在命令行上画一只小狗出来。现在用户的要求是希望你能提供一个zip包，里面不仅包含这个可运行的jar，还得包含源代码和文档，换句话说，这是比较正式的分发包。这个文件名应该是怎样的呢？&lt;code&gt;dog-cli-1.0.zip&lt;/code&gt;？不够清楚，仅仅从扩展名很难分辨什么是Maven默认生成的构件，什么是额外配置生成分发包。如果能是&lt;code&gt;dog-cli-1.0-dist.zip&lt;/code&gt;就最好了。这里的dist就是classifier，默认Maven只生成一个构件，我们称之为主构件，那&lt;em&gt;当我们希望Maven生成其他附属构件的时候，就能用上classifier&lt;/em&gt;。常见的classifier还有如&lt;code&gt;dog-cli-1.0-sources.jar&lt;/code&gt;表示源码包，&lt;code&gt;dog-cli-1.0-javadoc.jar&lt;/code&gt;表示JavaDoc包等等。制作classifier的方式多种多样，其中最重要的一种是使用&lt;a href=&quot;http://maven.apache.org/plugins/maven-assembly-plugin/&quot; target=&quot;_blank&quot;&gt;Maven Assembly Plugin&lt;/a&gt;，感兴趣的读者可以进一步研究。&lt;/p&gt;
&lt;h2&gt;&lt;a name=&quot;d0e109&quot;&gt;&lt;/a&gt;小结&lt;/h2&gt;
&lt;p&gt;本文是InfoQ Maven专栏的第一篇，讨论的是Maven坐标的规划，包括如何正确的使用groupId、artifactId、version，以及 classfier。笔者在维护Maven中央仓库的工作过程中遇到过各种各样模糊的甚至是错误的坐标，它们的存在给广大Maven用户带来的极大的不 便。本文抛出一些较好的实践，帮助大家更好的使用Maven。如果读者有相关的经验总结，也请不吝分享。&lt;/p&gt;
&lt;p&gt;&lt;em&gt;本文已经首发于&lt;a href=&quot;http://www.infoq.com/cn&quot; target=&quot;_blank&quot;&gt;InfoQ中文站&lt;/a&gt;，版权所有，原文为&lt;a href=&quot;http://www.infoq.com/cn/news/2010/12/xxb-maven-1&quot; target=&quot;_blank&quot;&gt;《Maven实战（一）——坐标规划》&lt;/a&gt;，如需转载，请务必附带本声明，谢谢。&lt;/em&gt;
&lt;div style=&quot;margin-top: 15px; font-style: italic&quot;&gt;
&lt;p&gt;&lt;strong&gt;原创文章，转载请注明：&lt;/strong&gt; 转载自&lt;a href=&quot;http://www.wsria.com/&quot;&gt;what is the RIA?  just it…||咖啡兔&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;本文链接地址:&lt;/strong&gt; &lt;a href=&quot;http://www.wsria.com/archives/1497&quot;&gt;转：Maven实战（一）——坐标规划&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;div style=&quot;float:left; text-align:left;&gt;&lt;img alt='' src='http://1.gravatar.com/avatar/d4c01dc675bbabaf50ed1c9e4a07f96e?s=100&amp;amp;d=monsterid&amp;amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /&gt;&lt;/div&gt;&lt;h3&gt;&lt;a href='http://www.wsria.com/archives/author/admin' title='咖啡兔'&gt;咖啡兔&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;一只咖啡兔，热爱开源，喜欢追踪、研究新技术，向往背包游……
讲究效率，坚信：“工欲善其事必先利其器”
使用Linux（Ubuntu），基于Java和jQuery开发企业RIA应用&lt;/p&gt;&lt;p&gt;&lt;a href='http://www.wsria.com' title='咖啡兔'&gt;Website&lt;/a&gt; - &lt;a href='http://www.wsria.com/archives/author/admin' title='More posts by 咖啡兔'&gt;More Posts&lt;/a&gt; &lt;/p&gt;&lt;/p&gt;&lt;img src=&quot;http://www.wsria.com/?ak_action=api_record_view&amp;id=1497&amp;type=feed&quot; alt=&quot;&quot; /&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;推荐：国内第一本Maven书籍——《Maven实战》&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1497&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/05/06/7742332.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;推荐：国内第一本Maven书籍——《Maven实战》&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;《Maven实战》最新消息，11月初出版&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1288&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1497&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2203956.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;《Maven实战》最新消息，11月初出版&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Maven 3.0 正式发布&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1200&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1497&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Maven 3.0 正式发布&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Maven下用mvn assembly:assembly打包class文件重复&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F958&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1497&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Maven下用mvn assembly:assembly打包class文件重复&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Maven学习引导&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1072&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1497&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Maven学习引导&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290749/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290749/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.wsria.com/archives/1497/feed</wfw:commentRss><slash:comments>2</slash:comments><description>坐标是什么？为什么要规划？ 坐标是Maven最基本的概念，它就像每个构件的身份证号码，有了它我们就可以在数以千万计的构件中定位任何一个我们感兴趣的构件。举个最简单的例子，如果没有坐标，使用JUnit的时候，用户就需要去下载依赖jar包，用依赖的方式，简单配置使用如junit:junit:4.8.2就可以了。这里第一个junit是groupId，第二个junit是artifactId，4.8.2是version。 Maven的很多其他核心机制都依赖于坐标，其中最显著的就是仓库和依赖管理。对于仓库来说，有了坐标就知道在什么位置存储构件的内容，例如junit:junit:4.8.2就对应仓库中的路径/junit/junit/4.8.2/junit-4.8.2.pom和/junit/junit/4.8.2/junit-4.8.2.jar这样的文件，读者可以直接访问中央仓库地址看到这样的仓库布局，或者浏览本地仓库目录~/.m2/repository/以获得直观的体验。 依赖的配置也是完全基于坐标的，例如： &amp;#60;dependency&amp;#62; &amp;#60;groupId&amp;#62;junit&amp;#60;/groupId&amp;#62; &amp;#60;artifactId&amp;#62;junit&amp;#60;/artifactId&amp;#62; &amp;#60;version&amp;#62;4.8.2&amp;#60;/version&amp;#62; &amp;#60;scope&amp;#62;test&amp;#60;/scope&amp;#62; &amp;#60;/dependency&amp;#62; 有了正确的坐标,Maven才能够在正确的位置找到依赖文件并使用，这里值为test的scope是用来控制该依赖只在测试时可用，与坐标无关。 正因为坐标是Maven核心的核心，因此规划正确的坐标至关重要，如果你使用了模糊不清的坐标，那么你的用户就很难找到你的构件，或者即使找到了， 也容易写错。错误的使用坐标，还会造成冲突，如果你也使用junit这样的groupId，那会发生什么？下面先看一些不是很规范的坐标使用方式。 坐标规划的原则 滥用坐标、错用坐标的样例比比皆是，在中央仓库中我们能看到SpringFramework有两种坐标，其一是直接使用 springframework作为groupId，如springframework:spring-beans:1.2.6，另一种是用 org.springframework作为groupId，如org.springframework:spring-beans:2.5。细心看看， 前一种方式显得比较随意，后一种方式则是基于域名衍生出来的，显然后者更合理，因为用户能一眼根据域名联想到其Maven坐标，方便寻找。因此新版本的 SpringFramework构件都使用org.springframework作为groupId。由这个例子我们可以看到坐标规划一个原则是基于项目域名衍生。其实很多流行的开源项目都破坏了这个原则，例如JUnit，这是因为Maven社区在最开始接受构件并部署到中央仓库的时候，没有很很严格的限制，而对于这些流行的项目来说，一时间更改坐标会影响大量用户，因此也算是个历史遗留问题了。 还有一个常见的问题是将groupId直接匹配到公司或者组织名称，因为乍一看这是显而易见的。例如组织是zoo.com，有个项目是dog，那有 些人就直接使用groupId com.zoo了。如果项目只有一个模块，这是没有什么问题的，但现实世界的项目往往会有很多模块，Maven的一大长处就是通过多模块的方式管理项目。 那dog项目可能会有很多模块，我们用坐标的哪个部分来定义模块呢？groupId显然不对，version也不可能是，那只有artifactId。因 此要这里有了另外一个原则，用artifactId来定义模块，而不是定义项目。接下来，很显然的，项目就必须用groupId来定义。因此对于dog项目来说，应该使用groupId com.zoo.dog，不仅体现出这是zoo.com下的一个项目，而且可以与该组织下的其他项目如com.zoo.cat区分开来。 除此之外，artifactId的定义也有最佳实践，我们常常可以看到一个项目有很多的模块，例如api，dao，service，web等等。 Maven项目在默认情况下生成的构件，其名称不会是基于artifactId，version和packaging生成的，例如api-1.0.jar，dao-1.0.jar等 等，他们不会带有groupId的信息，这会造成一个问题，例如当我们把所有这些构件放到Web容器下的时候，你会发现项目dog有api- 1.0.jar，项目cat也有api-1.0.jar，这就造成了冲突。更坏的情况是，dog项目有api-1.0.jar，cat项目有api- 2.0.jar，其实两者没什么关系，可当放在一起的时候，却很容易让人混淆。为了让坐标更加清晰，又出现了一个原则，即在定义artiafctId时也加入项目的信息， 例如dog项目的api模块，那就使用artifactId dog-api，其他就是dog-dao，dao-service等等。虽然连字号是不允许出现在Java的包名中的，但Maven没这个限制。现在 dog-api-1.0.jar，cat-2.0.jar被放在一起时，就不容易混淆了。 关于坐标，我们还没谈到version，这里不再详述因为读者可以从Maven: The Complete Guide中找到详细的解释，简言之就是使用这样一个格式： &amp;#60;主版本&amp;#62;.&amp;#60;次版本&amp;#62;.&amp;#60;增量版本&amp;#62;-&amp;#60;限定符&amp;#62; 其中主版本主要表示大型架构变更，次版本主要表示特性的增加，增量版本主要服务于bug修复，而限定符如alpha、beta等等是用来表示里程 碑。当然不是每个项目的版本都要用到这些4个部分，根据需要选择性的使用即可。在此基础上Maven还引入了SNAPSHOT的概念，用来表示活动的开发 &amp;#8230;&lt;p class=&quot;read-more&quot;&gt;&lt;a href=&quot;http://www.wsria.com/archives/1497&quot;&gt;继续阅读 &amp;#187;&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;推荐：国内第一本Maven书籍——《Maven实战》&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1497&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/05/06/7742332.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;推荐：国内第一本Maven书籍——《Maven实战》&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;《Maven实战》最新消息，11月初出版&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1288&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1497&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2203956.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;《Maven实战》最新消息，11月初出版&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Maven 3.0 正式发布&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1200&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1497&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Maven 3.0 正式发布&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Maven下用mvn assembly:assembly打包class文件重复&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F958&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1497&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Maven下用mvn assembly:assembly打包class文件重复&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Maven学习引导&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1072&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1497&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Maven学习引导&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290749/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290749/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>推荐</category><category>Maven</category><category>教程</category><category>转载</category><category>后台技术</category><pubDate>Mon, 13 Dec 2010 21:30:00 +0800</pubDate><author>咖啡兔</author><comments>http://www.wsria.com/archives/1497#comments</comments><guid isPermaLink="false">http://www.wsria.com/?p=1497</guid><dc:creator>咖啡兔</dc:creator><fs:srclink>http://www.wsria.com/archives/1497</fs:srclink><fs:srcfeed>http://www.wsria.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/wsria/~8456624/601290749/5406562</fs:itemid></item><item><title>推荐：国内第一本Maven书籍——《Maven实战》</title><link>http://item.feedsky.com/~feedsky/wsria/~8456624/601290750/5406562/1/item.html</link><content:encoded>&lt;h3&gt;引言&lt;/h3&gt;
&lt;p&gt;我是由于学习&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/springside&quot; title=&quot;查看 SpringSide 中所有文章&quot; target=&quot;_blank&quot;&gt;SpringSide&lt;/a&gt;&lt;/span&gt;的缘故接触到了&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/maven&quot; title=&quot;查看 Maven 中所有文章&quot; target=&quot;_blank&quot;&gt;Maven&lt;/a&gt;&lt;/span&gt;工具，因为&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/maven&quot; title=&quot;查看 Maven 中所有文章&quot; target=&quot;_blank&quot;&gt;Maven&lt;/a&gt;&lt;/span&gt;的缘故接触到了业内公认的Maven专家&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/juven&quot; title=&quot;查看 Juven 中所有文章&quot; target=&quot;_blank&quot;&gt;Juven&lt;/a&gt;&lt;/span&gt;，从而以后一直关注Maven的发展当然包括今天要&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/%e6%8e%a8%e8%8d%90&quot; title=&quot;查看 推荐 中所有文章&quot; target=&quot;_blank&quot;&gt;推荐&lt;/a&gt;&lt;/span&gt;的这本国内第一本Maven书籍《&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/maven%e5%ae%9e%e6%88%98&quot; title=&quot;查看 Maven实战 中所有文章&quot; target=&quot;_blank&quot;&gt;Maven实战&lt;/a&gt;&lt;/span&gt;》。&lt;br /&gt;
几个月前我开始学习Maven，加入到了&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/juven&quot; title=&quot;查看 Juven 中所有文章&quot; target=&quot;_blank&quot;&gt;Juven&lt;/a&gt;&lt;/span&gt;建立的Maven中文群，当时参考了&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/juven&quot; title=&quot;查看 Juven 中所有文章&quot; target=&quot;_blank&quot;&gt;Juven&lt;/a&gt;&lt;/span&gt;翻译的《Maven权威指南》，很遗憾权威指南没有出版，所以Juven自己撰写了符合国人阅读习惯的《&lt;a href=&quot;http://www.juvenxu.com/mvn-in-action/&quot; target=&quot;_blank&quot;&gt;Maven实战&lt;/a&gt;》，相信最早接触Maven的人都是参考的权威指南，我敢说从现在开始接触Maven的新人看的书应该是《&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/maven%e5%ae%9e%e6%88%98&quot; title=&quot;查看 Maven实战 中所有文章&quot; target=&quot;_blank&quot;&gt;Maven实战&lt;/a&gt;&lt;/span&gt;》。&lt;br /&gt;
我大致浏览过这本书的目录还算是比较全面的，在日常开发中我们需要用到的工具、需要知道的知识点、技巧基本都可以满足；不入虎穴焉得虎子，&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Juven目前就职于Sonatype，是Nexus团队的成员&lt;br /&gt;
并维护 https://oss.sonatype.org/ 和Maven中央库
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;正式因为他深入了解Maven的各个方面所以我们有理由说这是一本好书，看过了权威指南让我很快学会了使用Maven解决一些以往反复、复杂的事情，让我的项目管理更加规范，所以新人选择这本书是可以事半功倍的办法。&lt;/p&gt;
&lt;h3&gt;引用Juven博客&lt;/h3&gt;
&lt;blockquote&gt;&lt;p&gt;你是否早已厌倦了日复一日的手工构建工作？你是否对各个项目风格迥异的构建系统感到恐惧？Maven——这一Java社区事实标准的项目管理工具，能帮你从琐碎的手工劳动中解脱出来，帮你规范整个组织的构建系统。不仅如此，它还有依赖管理、自动生成项目站点等超酷的特性。已经有无数的开源项目使用它来构建项目，促进团队交流。每天都由数以万计的开发者在访问中央仓库以获取他们需要的依赖。&lt;/p&gt;
&lt;p&gt;由国内的Maven权威亲自执笔，《&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/maven%e5%ae%9e%e6%88%98&quot; title=&quot;查看 Maven实战 中所有文章&quot; target=&quot;_blank&quot;&gt;Maven实战&lt;/a&gt;&lt;/span&gt;》告诉你Maven的本质是什么，深入阐述Maven的依赖管理、仓库、生命周期、插件等核心概念。你还能看到实际的案例演变，以及诸如多模块组织、建立Nexus私服、使用Hudson进行持续集成等企业开发的最佳实践。&lt;br /&gt;
&lt;div id=&quot;attachment_1481&quot; class=&quot;wp-caption aligncenter&quot; style=&quot;width: 239px&quot;&gt;&lt;a href=&quot;http://www.wsria.com/wp-content/uploads/2010/11/maven-in-action.jpg&quot; rel=&quot;lightbox[1480]&quot; title=&quot;maven-in-action&quot;&gt;&lt;img src=&quot;http://www.wsria.com/wp-content/uploads/2010/11/maven-in-action-229x300.jpg&quot; alt=&quot;Maven实战封面&quot; title=&quot;maven-in-action&quot; width=&quot;229&quot; height=&quot;300&quot; class=&quot;size-medium wp-image-1481&quot; /&gt;&lt;/a&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;Maven实战封面&lt;/p&gt;&lt;/div&gt;
&lt;/p&gt;&lt;/blockquote&gt;
&lt;h3&gt;深入了解《Maven实战》&lt;/h3&gt;
&lt;p&gt;请访问作者Juven的博客：&lt;a href=&quot;http://www.juvenxu.com/mvn-in-action/&quot;&gt;http://www.juvenxu.com/mvn-in-action/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;正入我一直我的座右铭一样：“工欲善其事必先利其器”，Maven帮我做到了，希望这本书能带你进入Maven世界，一个事半功倍的好工具，一本好书。
&lt;div style=&quot;margin-top: 15px; font-style: italic&quot;&gt;
&lt;p&gt;&lt;strong&gt;原创文章，转载请注明：&lt;/strong&gt; 转载自&lt;a href=&quot;http://www.wsria.com/&quot;&gt;what is the RIA?  just it…||咖啡兔&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;本文链接地址:&lt;/strong&gt; &lt;a href=&quot;http://www.wsria.com/archives/1480&quot;&gt;推荐：国内第一本Maven书籍——《Maven实战》&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;div style=&quot;float:left; text-align:left;&gt;&lt;img alt='' src='http://1.gravatar.com/avatar/d4c01dc675bbabaf50ed1c9e4a07f96e?s=100&amp;amp;d=monsterid&amp;amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /&gt;&lt;/div&gt;&lt;h3&gt;&lt;a href='http://www.wsria.com/archives/author/admin' title='咖啡兔'&gt;咖啡兔&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;一只咖啡兔，热爱开源，喜欢追踪、研究新技术，向往背包游……
讲究效率，坚信：“工欲善其事必先利其器”
使用Linux（Ubuntu），基于Java和jQuery开发企业RIA应用&lt;/p&gt;&lt;p&gt;&lt;a href='http://www.wsria.com' title='咖啡兔'&gt;Website&lt;/a&gt; - &lt;a href='http://www.wsria.com/archives/author/admin' title='More posts by 咖啡兔'&gt;More Posts&lt;/a&gt; &lt;/p&gt;&lt;/p&gt;&lt;img src=&quot;http://www.wsria.com/?ak_action=api_record_view&amp;id=1480&amp;type=feed&quot; alt=&quot;&quot; /&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;转：Maven实战（一）——坐标规划&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1497&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;转：Maven实战（一）——坐标规划&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;《Maven实战》最新消息，11月初出版&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1288&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2203956.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;《Maven实战》最新消息，11月初出版&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Apache Asia Roadshow 2010 Juven Maven PPT和视频下载&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1139&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204416.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Apache Asia Roadshow 2010 Juven Maven PPT和视频下载&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1004&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204439.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;maven-war-plugin插件的warSourceExcludes和packagingExcludes参数的区别&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1335&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;maven-war-plugin插件的warSourceExcludes和packagingExcludes参数的区别&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290750/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290750/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.wsria.com/archives/1480/feed</wfw:commentRss><slash:comments>5</slash:comments><description>引言 我是由于学习SpringSide的缘故接触到了Maven工具，因为Maven的缘故接触到了业内公认的Maven专家Juven，从而以后一直关注Maven的发展当然包括今天要推荐的这本国内第一本Maven书籍《Maven实战》。 几个月前我开始学习Maven，加入到了Juven建立的Maven中文群，当时参考了Juven翻译的《Maven权威指南》，很遗憾权威指南没有出版，所以Juven自己撰写了符合国人阅读习惯的《Maven实战》，相信最早接触Maven的人都是参考的权威指南，我敢说从现在开始接触Maven的新人看的书应该是《Maven实战》。 我大致浏览过这本书的目录还算是比较全面的，在日常开发中我们需要用到的工具、需要知道的知识点、技巧基本都可以满足；不入虎穴焉得虎子， Juven目前就职于Sonatype，是Nexus团队的成员 并维护 https://oss.sonatype.org/ 和Maven中央库 正式因为他深入了解Maven的各个方面所以我们有理由说这是一本好书，看过了权威指南让我很快学会了使用Maven解决一些以往反复、复杂的事情，让我的项目管理更加规范，所以新人选择这本书是可以事半功倍的办法。 引用Juven博客 你是否早已厌倦了日复一日的手工构建工作？你是否对各个项目风格迥异的构建系统感到恐惧？Maven——这一Java社区事实标准的项目管理工具，能帮你从琐碎的手工劳动中解脱出来，帮你规范整个组织的构建系统。不仅如此，它还有依赖管理、自动生成项目站点等超酷的特性。已经有无数的开源项目使用它来构建项目，促进团队交流。每天都由数以万计的开发者在访问中央仓库以获取他们需要的依赖。 由国内的Maven权威亲自执笔，《Maven实战》告诉你Maven的本质是什么，深入阐述Maven的依赖管理、仓库、生命周期、插件等核心概念。你还能看到实际的案例演变，以及诸如多模块组织、建立Nexus私服、使用Hudson进行持续集成等企业开发的最佳实践。 深入了解《Maven实战》 请访问作者Juven的博客：http://www.juvenxu.com/mvn-in-action/ 正入我一直我的座右铭一样：“工欲善其事必先利其器”，Maven帮我做到了，希望这本书能带你进入Maven世界，一个事半功倍的好工具，一本好书。 原创文章，转载请注明： 转载自what is the RIA? just it…&amp;#124;&amp;#124;咖啡兔 本文链接地址: 推荐：国内第一本Maven书籍——《Maven实战》&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;转：Maven实战（一）——坐标规划&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1497&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;转：Maven实战（一）——坐标规划&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;《Maven实战》最新消息，11月初出版&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1288&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2203956.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;《Maven实战》最新消息，11月初出版&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Apache Asia Roadshow 2010 Juven Maven PPT和视频下载&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1139&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204416.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Apache Asia Roadshow 2010 Juven Maven PPT和视频下载&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1004&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204439.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;maven-war-plugin插件的warSourceExcludes和packagingExcludes参数的区别&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1335&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;maven-war-plugin插件的warSourceExcludes和packagingExcludes参数的区别&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290750/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290750/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>推荐</category><category>Maven</category><category>业界动态</category><category>Maven实战</category><category>书籍</category><category>SpringSide</category><category>Juven</category><pubDate>Fri, 19 Nov 2010 09:57:46 +0800</pubDate><author>咖啡兔</author><comments>http://www.wsria.com/archives/1480#comments</comments><guid isPermaLink="false">http://www.wsria.com/?p=1480</guid><dc:creator>咖啡兔</dc:creator><fs:srclink>http://www.wsria.com/archives/1480</fs:srclink><fs:srcfeed>http://www.wsria.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/wsria/~8456624/601290750/5406562</fs:itemid></item><item><title>Maven多模块布局实例详解</title><link>http://item.feedsky.com/~feedsky/wsria/~8456624/601290751/5406562/1/item.html</link><content:encoded>&lt;h3&gt;一、开场白&lt;/h3&gt;
&lt;p&gt;使用&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/maven&quot; title=&quot;查看 Maven 中所有文章&quot; target=&quot;_blank&quot;&gt;Maven&lt;/a&gt;&lt;/span&gt;有段时间了，只能感慨真是个好东西，让我从传统模式体会到了严谨、规范、敏捷、方便的特性。&lt;br /&gt;
如果你懂&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/maven&quot; title=&quot;查看 Maven 中所有文章&quot; target=&quot;_blank&quot;&gt;Maven&lt;/a&gt;&lt;/span&gt;或许看过Juven翻译的《&lt;a href=&quot;http://www.juvenxu.com/mvn-def-guide/&quot; target=&quot;_blank&quot;&gt;Maven权威指南&lt;/a&gt;》；&lt;br /&gt;
发个牢骚：由于&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/maven&quot; title=&quot;查看 Maven 中所有文章&quot; target=&quot;_blank&quot;&gt;Maven&lt;/a&gt;&lt;/span&gt;的出身问题导致学习曲线陡峭，所有有些人就开始说Maven不好用；原因有二：一是排斥Maven，二是没有耐心和精下心来学习，引用老毛的话来提醒我说的那些人：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;没有调查就没有发言权&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;到了Maven这里就是(适用于技术方面)：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;没有深入学习也没有发言权&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;如果Maven不好那么&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/spring&quot; title=&quot;查看 Spring 中所有文章&quot; target=&quot;_blank&quot;&gt;Spring&lt;/a&gt;&lt;/span&gt;、Hibernate这些大家经常使用的框架为什么还是从ant转移到Maven？&lt;br /&gt;
如果Maven不好那么为什么国外大多数项目都在使用Maven呢？&lt;br /&gt;
原因自己考虑，我不废话！我的这些话就是告诫那些&lt;strong&gt;信口雌黄&lt;/strong&gt;的人。&lt;/p&gt;
&lt;h3&gt;二、&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/%e5%a4%9a%e6%a8%a1%e5%9d%97&quot; title=&quot;查看 多模块 中所有文章&quot; target=&quot;_blank&quot;&gt;多模块&lt;/a&gt;&lt;/span&gt;布局概述&lt;/h3&gt;
&lt;p&gt;详细属性Maven的童鞋们都看过《Maven权威指南》，里面也讲解如何搭建&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/%e5%a4%9a%e6%a8%a1%e5%9d%97&quot; title=&quot;查看 多模块 中所有文章&quot; target=&quot;_blank&quot;&gt;多模块&lt;/a&gt;&lt;/span&gt;的Maven项目，但是那个毕竟是比较简单的，在实际应用中就有点水土不服了；&lt;br /&gt;
后来又参考了Juven的一篇《&lt;a href=&quot;http://juvenshun.javaeye.com/blog/305865&quot; target=&quot;_blank&quot;&gt;Maven最佳实践：划分模块&lt;/a&gt;》博文，相对权威指南来说介绍的比较详细了，但是这还是不能满足我真正在企业应用的需求，等你看完Juven的博文后再看看下面这个实际应用中的项目布局有什么异同：&lt;/p&gt;
&lt;div id=&quot;attachment_1409&quot; class=&quot;wp-caption aligncenter&quot; style=&quot;width: 481px&quot;&gt;&lt;a href=&quot;http://www.wsria.com/wp-content/uploads/2010/11/maven-multi-module-constructor2.jpg&quot; rel=&quot;lightbox[1405]&quot; title=&quot;maven-multi-module-constructor2&quot;&gt;&lt;img class=&quot;size-full wp-image-1409&quot; title=&quot;maven-multi-module-constructor2&quot; src=&quot;http://www.wsria.com/wp-content/uploads/2010/11/maven-multi-module-constructor2.jpg&quot; alt=&quot;Maven多模块布局概图&quot; width=&quot;471&quot; height=&quot;420&quot; /&gt;&lt;/a&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;Maven多模块布局概图&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;OK，现在应该看出来有什么不同了，我的项目结构比权威指南里面的介绍复杂、比Juven的那篇文章说的也复杂，接下来再看看这张图片：&lt;/p&gt;
&lt;div id=&quot;attachment_1411&quot; class=&quot;wp-caption aligncenter&quot; style=&quot;width: 329px&quot;&gt;&lt;a href=&quot;http://www.wsria.com/wp-content/uploads/2010/11/juven-maven-multi-construction.png&quot; rel=&quot;lightbox[1405]&quot; title=&quot;juven-maven-multi-construction&quot;&gt;&lt;img class=&quot;size-full wp-image-1411&quot; title=&quot;juven-maven-multi-construction&quot; src=&quot;http://www.wsria.com/wp-content/uploads/2010/11/juven-maven-multi-construction.png&quot; alt=&quot;plexus-security项目结构&quot; width=&quot;319&quot; height=&quot;338&quot; /&gt;&lt;/a&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;plexus-security项目结构&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span id=&quot;more-1405&quot;&gt;&lt;/span&gt;&lt;br /&gt;
上面这张图片是我在写这篇文章的时候刚刚找到的：《&lt;a href=&quot;http://juvenshun.javaeye.com/blog/565240&quot; target=&quot;_blank&quot;&gt;按需构建多模块，玩转Maven反应堆&lt;/a&gt;》，和上面的&lt;strong&gt;Maven多模块布局概图&lt;/strong&gt;对比一下是不是基本一样？真是后悔当初怎么没有看到Juven的这篇文章，后来把&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/hibernate&quot; title=&quot;查看 hibernate 中所有文章&quot; target=&quot;_blank&quot;&gt;hibernate&lt;/a&gt;&lt;/span&gt;的项目checkout下来分析他的maven多模块结构布局然后再结合实际应用得出的&lt;strong&gt;Maven多模块布局概图&lt;/strong&gt;。&lt;br /&gt;
OK，现在你对多模块布局有了初步的印象了，接下来才是重点，逐个击破、逐个分析。&lt;/p&gt;
&lt;h3&gt;三、多模块布局详解&lt;/h3&gt;
&lt;p&gt;无图无真相，有图才给力：(如果想真正了解多模块那么请先看着图片和说明揣摩一下含义……)&lt;/p&gt;
&lt;p&gt;&lt;div id=&quot;attachment_1417&quot; class=&quot;wp-caption aligncenter&quot; style=&quot;width: 603px&quot;&gt;&lt;a href=&quot;http://www.wsria.com/wp-content/uploads/2010/11/maven-multi-module-construction.jpg&quot; rel=&quot;lightbox[1405]&quot; title=&quot;maven-multi-module-construction&quot;&gt;&lt;img class=&quot;size-full wp-image-1417&quot; title=&quot;maven-multi-module-construction&quot; src=&quot;http://www.wsria.com/wp-content/uploads/2010/11/maven-multi-module-construction.jpg&quot; alt=&quot;Maven多模块布局概述图&quot; width=&quot;593&quot; height=&quot;281&quot; /&gt;&lt;/a&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;Maven多模块布局概述图&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;声明&lt;/strong&gt;：由于是本例是根据实际应用的项目来分析的，所以会比之前说的&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/%e6%95%99%e7%a8%8b&quot; title=&quot;查看 教程 中所有文章&quot; target=&quot;_blank&quot;&gt;教程&lt;/a&gt;&lt;/span&gt;和Juven的文章实例复杂一些。&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;denong-pb&lt;/strong&gt;：先看实例pom.&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/xml&quot; title=&quot;查看 xml 中所有文章&quot; target=&quot;_blank&quot;&gt;xml&lt;/a&gt;&lt;/span&gt;：

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;xml&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?xml&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;version&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;1.0&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;encoding&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;UTF-8&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;project&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;xmlns&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;http://maven.apache.org/POM/4.0.0&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;xmlns:xsi&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;xsi:schemaLocation&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;modelVersion&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;4.0.0&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/modelVersion&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;groupId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;com.wsria&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/groupId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;dn-pb&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;1.0.5-SNAPSHOT&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;name&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Denong Point Bank&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/name&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;packaging&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;pom&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/packaging&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&amp;nbsp;
	&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&amp;lt;!-- 设定团队持续集成发布包服务器  --&amp;gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;distributionManagement&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;repository&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;id&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;nexus&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/id&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;name&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Team Nexus Release Repository&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/name&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;url&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;http://192.168.1.111:8081/nexus/content/repositories/releases&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/url&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/repository&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;snapshotRepository&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;id&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;nexus&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/id&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;name&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Team Nexus Snapshot Repository&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/name&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;url&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;http://192.168.1.111:8081/nexus/content/repositories/snapshots&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/url&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;uniqueVersion&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;false&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/uniqueVersion&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/snapshotRepository&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/distributionManagement&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&amp;nbsp;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;scm&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;connection&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;scm:svn:https://192.168.1.111:8443/svn/denong/pb/trunk&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/connection&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;url&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;https://192.168.1.111:8443/svn/denong/pb/trunk&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/url&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/scm&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&amp;nbsp;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;modules&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;parent&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;common&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;entity&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;data&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;dao&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;service&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;web-parent&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;web-admin&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;web-site&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/module&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/modules&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&amp;nbsp;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;build&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;defaultGoal&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;install&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/defaultGoal&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;plugins&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
            &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;plugin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
                &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;groupId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;org.apache.maven.plugins&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/groupId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
                &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;maven-release-plugin&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
                &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;2.0-beta-9&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
                &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;configuration&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
                    &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;autoVersionSubmodules&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;true&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/autoVersionSubmodules&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
                &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/configuration&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
            &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/plugin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/plugins&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/build&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/project&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;bin&lt;/strong&gt;：&lt;em&gt;可有可无&lt;/em&gt;，存放一些maven的命令批处理文件或者快捷bat文件，比如本地install项目或者打包根据产品profile（在模块中配置id为product的profile）打包war；&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;common&lt;/strong&gt;：估计有一些经验的人都会把一些常用的工具类封装起来，由经验丰富的人来维护到common模块中作为技术沉淀和公司的公共类库，方便大家快速开发使用。当然实际应用中可能会使用公司已经存在的common模块，然后单个项目中可能会再加入一个common模块，一般公司的common包都是这么积累下来的；&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;dao&lt;/strong&gt;：每个模块的数据存取类，因为本项目是根据springside基础上构建的，所以都是继承HibernateDao，如果涉及到大数据量或者存储过程的调用会再加入相应的*JdbcDao；&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;data&lt;/strong&gt;：
&lt;div id=&quot;attachment_1435&quot; class=&quot;wp-caption aligncenter&quot; style=&quot;width: 286px&quot;&gt;&lt;a href=&quot;http://www.wsria.com/wp-content/uploads/2010/11/maven-multi-module-data.jpg&quot; rel=&quot;lightbox[1405]&quot; title=&quot;maven-multi-module-data&quot;&gt;&lt;img class=&quot;size-full wp-image-1435&quot; title=&quot;maven-multi-module-data&quot; src=&quot;http://www.wsria.com/wp-content/uploads/2010/11/maven-multi-module-data.jpg&quot; alt=&quot;data模块结构&quot; width=&quot;276&quot; height=&quot;286&quot; /&gt;&lt;/a&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;data模块结构&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;，根据上图介绍一下：除了data目录外其他的配置文件都是在测试期间使用的，根据不同需求使用不同配置文件，例如一些不需要spring启动时初始化的数据使用applicationContext-test-no-init-sql.&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/xml&quot; title=&quot;查看 xml 中所有文章&quot; target=&quot;_blank&quot;&gt;xml&lt;/a&gt;&lt;/span&gt;，这个没有什么规定，根据项目来设置；&lt;strong&gt;data&lt;/strong&gt;目录是存放一些使用&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/dbunit&quot; title=&quot;查看 dbunit 中所有文章&quot; target=&quot;_blank&quot;&gt;dbunit&lt;/a&gt;&lt;/span&gt;导出的xml数据文件，作用是在单元测试时的数据初始化或者利用数据文件初始化指定的数据库，一般这些数据文件的类型包括：数据字典、系统配置参数等&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;entity&lt;/strong&gt;：这里说一下JPA注解的实体工具，开始我使用的是eclipse3.6的JPA工具，但是发现有些属性加不上@Column注解很是郁闷，只能手动加入；当然你也可以使用springside中提供的&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/hibernate&quot; title=&quot;查看 hibernate 中所有文章&quot; target=&quot;_blank&quot;&gt;hibernate&lt;/a&gt;&lt;/span&gt;tools模板生成，但是我还是希望在生成期间能完全受控，所以最好想到了My&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/eclipse&quot; title=&quot;查看 Eclipse 中所有文章&quot; target=&quot;_blank&quot;&gt;Eclipse&lt;/a&gt;&lt;/span&gt;，配置好数据源然后从数据库中逆向生成JPA，所有字段都正确配置；&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;parent&lt;/em&gt;&lt;/strong&gt;：这里&lt;strong&gt;着重介绍&lt;/strong&gt;一下，此模块是所有子模块需要继承的超级POM，举个例子容易理解：把本项目(denong-pb)当做是Java语言，那么parent模块就是Object类，此模块只负责定影其他子模块需要使用的一些公共设置，谨记：&lt;br /&gt;
&lt;blockquote&gt;&lt;p&gt;parent不负责管理子模块，只是被子模块集成，千万不要和denong-pb目录的pom.xml混淆&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;service&lt;/strong&gt;：就是业务处理类，供web模块调用；&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;web-parent&lt;/strong&gt;：供web*模块继承，例如前后台都需要调用的Action接口，像数据字典、地区信息、系统属性等&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;web-admin&lt;/strong&gt;：系统的后台管理程序，使用了struts2的convention插件；&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;web-site&lt;/strong&gt;：系统网站部分，同样使用了struts2的convention插件，集成&lt;a href=&quot;http://www.wsria.com/archives/1349&quot; target=&quot;_blank&quot;&gt;单点登录&lt;/a&gt;功能&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;四、模块之间依赖关系&lt;/h3&gt;
&lt;p&gt;直观&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/%e6%95%99%e7%a8%8b&quot; title=&quot;查看 教程 中所有文章&quot; target=&quot;_blank&quot;&gt;教程&lt;/a&gt;&lt;/span&gt;图片最给力：&lt;br /&gt;
&lt;div id=&quot;attachment_1444&quot; class=&quot;wp-caption aligncenter&quot; style=&quot;width: 420px&quot;&gt;&lt;a href=&quot;http://www.wsria.com/wp-content/uploads/2010/11/maven-multi-module-relation.png&quot; rel=&quot;lightbox[1405]&quot; title=&quot;maven-multi-module-relation&quot;&gt;&lt;img src=&quot;http://www.wsria.com/wp-content/uploads/2010/11/maven-multi-module-relation.png&quot; alt=&quot;Maven多模块关系依赖图&quot; title=&quot;maven-multi-module-relation&quot; width=&quot;410&quot; height=&quot;324&quot; class=&quot;size-full wp-image-1444&quot; /&gt;&lt;/a&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;Maven多模块关系依赖图&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;
&lt;h3&gt;五、和SVN的整合——maven-release-plugin&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;http://maven.apache.org/plugins/maven-release-plugin/&quot; target=&quot;_blank&quot;&gt;maven-release-plugin&lt;/a&gt;是经常使用的插件，这里简单介绍一下，要点：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;每个模块的scm配置&lt;/strong&gt;：

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;xml&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;scm&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;connection&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;scm:svn:https://192.168.1.111:8443/svn/denong/pb/trunk/模块名称&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/connection&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;url&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;https://192.168.1.111:8443/svn/denong/pb/trunk/模块名称&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/url&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/scm&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote&gt;&lt;p&gt;上面的scm配置在每一个模块中存在，因为每一个模块再svn目录中有单独的目录；&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;但是parent模块有点不同，因为除了parent模块其他子模块需要继承parent，如下代码：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;xml&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;parent&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;groupId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;com.wsria&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/groupId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;parent&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;1.0.5-SNAPSHOT&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;relativePath&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;../parent/pom.xml&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/relativePath&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/parent&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;dn-pb-entity&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;parent模块设定了一些被子模块集成的插件，maven-release-plugin当然也在列，除了GAV之外最重要的就是tagBase标签：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;xml&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&amp;lt;!-- release插件 --&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;plugin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;groupId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;org.apache.maven.plugins&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/groupId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;maven-release-plugin&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;2.0-beta-9&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;configuration&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;tagBase&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;https://192.168.1.111:8443/svn/denong/pb/tags/&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/tagBase&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;username&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;${svn.name}&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/username&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;password&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;${svn.pwd}&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/password&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/configuration&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/plugin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;本地的settings.xml中配置(替换${svn.name}和${svn.pwd}，也就是svn提交时的用户名和密码)：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;xml&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;settings&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
...
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;profiles&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;profile&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;id&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;denong-product&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/id&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;properties&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;svn.name&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;kafeitu&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/svn.name&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
			&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;svn.pwd&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;123456&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/svn.pwd&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
		&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/properties&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/profile&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/profiles&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
...
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/settings&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;在denong-pb目录中执行命令：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;D:\wsria\projects\denong\denong-pb&gt;mvn release:prepare -Pdenong-product&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;在svn中自动打的tag结构为：&lt;br /&gt;
&lt;div id=&quot;attachment_1448&quot; class=&quot;wp-caption aligncenter&quot; style=&quot;width: 174px&quot;&gt;&lt;a href=&quot;http://www.wsria.com/wp-content/uploads/2010/11/svn-tag-construction.jpg&quot; rel=&quot;lightbox[1405]&quot; title=&quot;svn-tag-construction&quot;&gt;&lt;img src=&quot;http://www.wsria.com/wp-content/uploads/2010/11/svn-tag-construction.jpg&quot; alt=&quot;maven-release-plugin执行release:prepare后的svn结构&quot; title=&quot;svn-tag-construction&quot; width=&quot;164&quot; height=&quot;294&quot; class=&quot;size-full wp-image-1448&quot; /&gt;&lt;/a&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;maven-release-plugin执行release:prepare后的svn结构&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;
接下来就可以执行命令：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;D:\wsria\projects\denong\denong-pb&gt;mvn release:perform&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;六、多模块布局问题&lt;/h3&gt;
&lt;p&gt;如果你够细心可能发现了上面出现了relativePath属性，这个再多模块的配置中经常遇到的问题，根据目前的案例来说子模块和parent是同级的目录，但是每个子模块又都需要继承parent模块的一些配置，比如上面介绍的到common模块会使用如下配置：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;xml&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;parent&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;groupId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;com.wsria&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/groupId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;parent&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;1.0.5-SNAPSHOT&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/parent&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;common&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;现在问题来了，在common模块下执行命令：mvn compile，得到的结果中包含了警告信息：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;[WARNING] &amp;#8216;parent.relativePath&amp;#8217; points at com.wsria:dn-pb instead of com.wsria:dn-pb-parent, please verify your project structure @ line 4, column 10&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;意思是找不到dn-pb-parent这个模块……因为maven不知道dn-pb-parent模块存在的位置才会导致警告信息的出现，解决办法是手动指定dn-pb-parent模块的位置，所以最终的解决办法是在parent标签中加入：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;xml&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;relativePath&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;../parent/pom.xml&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/relativePath&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;这样maven就知道继承的parent的具体位置了，&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;relativePath默认值为../pom.xml，参考：&lt;a href=&quot;http://maven.apache.org/ref/3.0/maven-model/maven.html&quot; target=&quot;_blank&quot;&gt;http://maven.apache.org/ref/3.0/maven-model/maven.html&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;完整的parent继承配置：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;div class=&quot;code&quot;&gt;&lt;pre class=&quot;xml&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;parent&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;groupId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;com.wsria&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/groupId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;dn-pb-parent&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;1.0.5-SNAPSHOT&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;relativePath&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;../parent/pom.xml&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/relativePath&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/parent&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;dn-pb-common&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/artifactId&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;现在运行mvn命令一切正常了;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;记得每一个继承parent模块的子模块都需要添加relativePath设置&lt;/p&gt;&lt;/blockquote&gt;
&lt;h3&gt;七、多模块开发期间&lt;span class='wp_keywordlink_affiliate'&gt;&lt;a href=&quot;http://www.wsria.com/archives/tag/debug&quot; title=&quot;查看 Debug 中所有文章&quot; target=&quot;_blank&quot;&gt;Debug&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;一般我们在开发web模块的时候会启用tomcat或者jboss的debug模式来断点调试应用，但是你会发现如果web模块依赖了service模块想进入service模块debug但是eclipse却告诉你找不到class的源码，解决办法：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;把service模块加入到Build Path的Project列表中&lt;/p&gt;&lt;/blockquote&gt;
&lt;h3&gt;八、其他方案&lt;/h3&gt;
&lt;p&gt;如何布局是根据每一个项目组的安排定义的，比如&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;一个项目组分模块开发的话或许不像本例一样分模块而是把每一层都集中在一个项目中&lt;/li&gt;
&lt;li&gt;或许web模块单独一个子模块，其他的entyty、dao、service集中在一个子模块model中&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;怎么布局需要根据项目实际情况来定义&lt;/strong&gt;，当然要考虑到单个子模块的重复利用，例如service模块在本例中被web-admin和web-site模块使用，如果以后再加入webservice模块那么webservice也要依赖，或许还有命令行(command)模块也要依赖&lt;/p&gt;&lt;/blockquote&gt;
&lt;h3&gt;九、结束语&lt;/h3&gt;
&lt;p&gt;这是一篇难产的文章，有些原因影响经过了3个晚上才出世，呵呵&lt;br /&gt;
有不对的地方请留言以改正；&lt;br /&gt;
分享这篇文章的目的就是给刚刚接触或者正需要maven多模块布局的童鞋们参考，希望能对你有帮助，谢谢关注！
&lt;div style=&quot;margin-top: 15px; font-style: italic&quot;&gt;
&lt;p&gt;&lt;strong&gt;原创文章，转载请注明：&lt;/strong&gt; 转载自&lt;a href=&quot;http://www.wsria.com/&quot;&gt;what is the RIA?  just it…||咖啡兔&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;本文链接地址:&lt;/strong&gt; &lt;a href=&quot;http://www.wsria.com/archives/1405&quot;&gt;Maven多模块布局实例详解&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;div style=&quot;float:left; text-align:left;&gt;&lt;img alt='' src='http://1.gravatar.com/avatar/d4c01dc675bbabaf50ed1c9e4a07f96e?s=100&amp;amp;d=monsterid&amp;amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /&gt;&lt;/div&gt;&lt;h3&gt;&lt;a href='http://www.wsria.com/archives/author/admin' title='咖啡兔'&gt;咖啡兔&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;一只咖啡兔，热爱开源，喜欢追踪、研究新技术，向往背包游……
讲究效率，坚信：“工欲善其事必先利其器”
使用Linux（Ubuntu），基于Java和jQuery开发企业RIA应用&lt;/p&gt;&lt;p&gt;&lt;a href='http://www.wsria.com' title='咖啡兔'&gt;Website&lt;/a&gt; - &lt;a href='http://www.wsria.com/archives/author/admin' title='More posts by 咖啡兔'&gt;More Posts&lt;/a&gt; &lt;/p&gt;&lt;/p&gt;&lt;img src=&quot;http://www.wsria.com/?ak_action=api_record_view&amp;id=1405&amp;type=feed&quot; alt=&quot;&quot; /&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Maven学习引导&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1072&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1405&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Maven学习引导&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Maven 3.0 正式发布&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1200&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1405&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Maven 3.0 正式发布&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;推荐：国内第一本Maven书籍——《Maven实战》&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1405&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/05/06/7742332.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;推荐：国内第一本Maven书籍——《Maven实战》&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1004&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1405&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204439.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;maven-war-plugin插件的warSourceExcludes和packagingExcludes参数的区别&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1335&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1405&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;maven-war-plugin插件的warSourceExcludes和packagingExcludes参数的区别&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290751/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290751/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://www.wsria.com/archives/1405/feed</wfw:commentRss><slash:comments>7</slash:comments><description>全面介绍maven多模块布局&lt;p class=&quot;read-more&quot;&gt;&lt;a href=&quot;http://www.wsria.com/archives/1405&quot;&gt;继续阅读 &amp;#187;&lt;/a&gt;&lt;/p&gt;&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;  style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot;&gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;兔子向您推荐：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
        &lt;tr&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Maven学习引导&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1072&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1405&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Maven学习引导&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Maven 3.0 正式发布&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1200&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1405&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Maven 3.0 正式发布&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;推荐：国内第一本Maven书籍——《Maven实战》&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1480&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1405&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/05/06/7742332.jpg&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;推荐：国内第一本Maven书籍——《Maven实战》&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1004&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1405&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/site_images/2011/01/19/2204439.png&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;Eclipse+Maven+WTP+Tomcat不能Run On Server其中一个原因&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
                &lt;td width=&quot;102&quot; valign=&quot;top&quot; style=&quot;padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;&quot;&gt;
                    &lt;a target=&quot;_blank&quot; title=&quot;maven-war-plugin插件的warSourceExcludes和packagingExcludes参数的区别&quot; style=&quot;text-decoration: none !important; cursor: pointer !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1335&amp;from=http%3A%2F%2Fwww.wsria.com%2Farchives%2F1405&quot;&gt;
                        &lt;img style=&quot;margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;&quot; src=&quot;http://static.wumii.com/images/blogWidget/wordpress_default.gif&quot; width=&quot;96px&quot; height=&quot;96px&quot; /&gt;&lt;br /&gt;
                        &lt;font size=&quot;-1&quot;  style=&quot;display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;&quot;&gt;maven-war-plugin插件的warSourceExcludes和packagingExcludes参数的区别&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td colspan=&quot;5&quot; align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/601290751/wsria/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/wsria/~8456624/601290751/5406562/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>xml</category><category>Maven</category><category>dbunit</category><category>工具</category><category>教程</category><category>Spring</category><category>hibernate</category><category>Eclipse</category><category>多模块</category><category>后台技术</category><category>Debug</category><pubDate>Thu, 11 Nov 2010 14:14:47 +0800</pubDate><author>咖啡兔</author><comments>http://www.wsria.com/archives/1405#comments</comments><guid isPermaLink="false">http://www.wsria.com/?p=1405</guid><dc:creator>咖啡兔</dc:creator><fs:srclink>http://www.wsria.com/archives/1405</fs:srclink><fs:srcfeed>http://www.wsria.com/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/wsria/~8456624/601290751/5406562</fs:itemid></item></channel></rss>
