??xml version="1.0" encoding="utf-8" standalone="yes"?>香蕉久久夜色精品国产更新时间 ,国产高清视频在线,日韩在线影院http://www.aygfsteel.com/masen/category/45284.htmlzh-cnWed, 09 Jun 2010 11:53:32 GMTWed, 09 Jun 2010 11:53:32 GMT60Maven2Q初-转IBMQ?/title><link>http://www.aygfsteel.com/masen/articles/323129.html</link><dc:creator>Masen</dc:creator><author>Masen</author><pubDate>Wed, 09 Jun 2010 03:14:00 GMT</pubDate><guid>http://www.aygfsteel.com/masen/articles/323129.html</guid><wfw:comment>http://www.aygfsteel.com/masen/comments/323129.html</wfw:comment><comments>http://www.aygfsteel.com/masen/articles/323129.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/masen/comments/commentRss/323129.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/masen/services/trackbacks/323129.html</trackback:ping><description><![CDATA[<blockquote style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">本文主要阐述 Maven2 的新Ҏ(gu),q些新特性可以大大地~短了开发管理中的工作量Q得开发h员将_֊集中在实际的业务问题上?/blockquote> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">Maven 出现到现在也有很长时间了Q初识它的感觉至今仍清晰的印在脑中。现在想来,当时?Ant UL Maven 的想法其实很朴素Q就是因?Maven 可以以网站的形式展现与项目相关的信息Q如开发h员列表、各U?Report。这U方式ؓ目的构建带来了极大的方便,其?Report 的。试惛_于生的 Junit-Report、JavaDoc、CheckStyle、PMD {报告,如果没有一个统一的入口,每次切换目录是多么o人厌烦的事情Q?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">Maven 无疑是相当成功的Q这一点从来多的开源项目开始?Maven 可以看出。Maven 取得成功的原因很单:在简化构本的同时Q功能ƈ没有~水Q反而有所增强Q提供汇集项目信息的工具Qƈ以相当友好的方式呈现Q丰富的插g化了工作。如此有力的工具出现Q自然是争相使用?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N1005E"><span id="wmqeeuq" class="atitle" style="font-family: Arial, sans-serif; font-weight: bold; font-size: 18px; ">新特?/span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">如今 Maven2 已经推出QMaven 的官方网站称QMaven2 相对?Maven1 是一个相当大的{变,甚至不惜牺牲兼容性来辑ֈq一目的。(Z Maven1 的用L惻IMaven1 仍在l箋他的使命。)如此大的变动到底换来了什么样的结果?</p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N10067"><span id="wmqeeuq" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">1Q?更快、更?/span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">比v Maven1 那不急不慢的q行速度QMaven2在速度上有了质的飞跃,甚至与Ant相比也毫不逊色Q当Ӟ下蝲不算Q。除此之外,"化工作,使用业界公认的最?jng)_?也是?Maven2 的另一大主题,其他的新Ҏ(gu)无处不在体?Maven2 为简化工作而做出的努力?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N10070"><span id="wmqeeuq" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">2Q?更少的配|文?/span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">Maven1 ?Maven2 主要配置文g的对比:</p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>Maven1Qproject.xml、maven.xml、project.properties和build.properties?/li> <li>Maven2Qpom.xml和settings.xml?/li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">POM是Maven的核心对象模型,在Maven2中POM已由project.xml转移到pom.xml中用,版本也由3升?。对于项目,一般只需要pom.xmlp了?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">在Maven2中不需要也不提倡用maven.xmlQ原因如下:</p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>plugin的易用性的增强?/li> <li>散布于maven.xml中的内容难以在不同项目间׃nQ也不利于维护。在Maven2中徏议用自定义的plugin来封装这些内宏V?/li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">如果仍期望能够用类似maven.xml的功能,?lt;preGoal>Q请参?a style="color: #5c81a7; ">Inserting non-standard build steps using preGoals and postGoals?/a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">在Maven2中,配置使用settings.xmlQ它取代了原有的project.properties和build.properties。配|在Maven2中存在两U别:</p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>用户U,针对操作pȝd用户而言。一般在$home/.m2/Q对于windows用户Q就是目录:C:\Documents and Settings\用户名\.m2\settings.xml?/li> <li>全局U:一般在%M2_HOME%/conf/settings.xmlQM2_HOME是Maven2的根目录环境变量名?/li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">在settings.xml中可以配|,如本地Repository、proxy{等Q关于settings.xml的结构可以从Maven的官方网站上获取?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N100A6"><span id="wmqeeuq" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">3Q?Plugin语言更换</span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">在Maven2中,~写plugin的语a由jelly变更为Java和BeanShell。Java在速度上更有优势,而且开发h员的熟?zhn)E度更高。对于其他的行脚本Q如groovyQMaven的官方网站的意见是,{待其更成熟时再考虑</p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">?/span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N100AF"><span id="wmqeeuq" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">4Q?提供预定义的目录模板</span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">好的目录l构可以使开发h员更Ҏ(gu)理解目Qؓ以后的维护工作也打下良好的基。Maven2Ҏ(gu)业界公认的最佳目录结构,为开发者提供了~省的标准目录模ѝMaven2的标准目录结构如下:</p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span><span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><img alt="" border="0" height="581" src="http://www.ibm.com/developerworks/cn/opensource/os-maven2/images/table1.gif" width="319" /></span><span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> </span><span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">使用目录模板Q可以pom.xml更简z。因为Maven2已经Ҏ(gu)~省目录Q预定义了相关的动作Q而无需人工的干预。以resources目录ZQ?/p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>src/main/resourcesQ负责管理项目主体的资源。在使用Maven2执行compile之后Q这个目录中的所有文件及子目录,会复制到target/classes目录中,Z后的打包提供了方ѝ?/li> <li>src/test/resourcesQ负责管理项目测试的资源。在使用Maven2执行test-compile之后Q这个目录中的所有文件及子目录,会复制到target/test-classes目录中,为后l的试做好了准备?/li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">q些动作?Maven1 中,是需要在 maven.xml 中?lt;preGoal>?lt;postGoal>来完成的。如今,完全不需要在pom.xml中指定就能够自动完成。在src和test都用resourcesQ方便构建和试Q这U方式本已是前人的l验。通过使用Maven2Qɘq个l验在开发团队中得到普及?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">创徏标准目录模板Q可以通过如下命oQ?/p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <table width="100%" cellpadding="0" cellspacing="0" border="0" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr> <td class="code-outline" style="line-height: 19px; background-color: #eeeeee; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; "> <pre class="displaycode" style="margin-top: 0px; margin-bottom: 0px; font-family: 'Andale Mono', 'Lucida Console', Monaco, fixed, monospace; font-size: 11px; ">mvn archetype:create -DgroupId=com.codeline.commons -DartifactId=codelineCommons </pre> </td> </tr> </tbody> </table> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">groupId和artifactId的含义与Maven1中的含义一P参数artifactId的g作ؓ目根目录的名字。除了徏立相应的目录之外QMaven2q会创徏~省的pom.xml?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">Maven2也考虑刎ͼ不同cd的项目需要拥有不同的目录l构。如创徏web目Q可以用命令:</p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <table width="100%" cellpadding="0" cellspacing="0" border="0" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr> <td class="code-outline" style="line-height: 19px; background-color: #eeeeee; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; "> <pre class="displaycode" style="margin-top: 0px; margin-bottom: 0px; font-family: 'Andale Mono', 'Lucida Console', Monaco, fixed, monospace; font-size: 11px; ">mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp </pre> </td> </tr> </tbody> </table> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N100F3"><span id="wmqeeuq" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">5Q?生命周期的引?/span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">在Maven2中有了明的生命周期概念Q而且都提供与之对应的命oQ得项目构建更加清晰明了。主要的生命周期阶段Q?/p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>validateQ验证工E是否正,所有需要的资源是否可用?/li> <li>compileQ编译项目的源代码?/li> <li>test-compileQ编译项目测试代码?/li> <li>testQ用已~译的测试代码,试已编译的源代码?/li> <li>packageQ已发布的格式,如jarQ将已编译的源代码打包?/li> <li>integration-testQ在集成试可以q行的环境中处理和发布包?/li> <li>verifyQ运行Q何检查,验证包是否有效且辑ֈ质量标准?/li> <li>installQ把包安装在本地的repository中,可以被其他工E作Z赖来使用</li> <li>deployQ在整合或者发布环境下执行Q将最l版本的包拷贝到q程的repositoryQ得其他的开发者或者工E可以共享?/li> <li>generate-sourcesQ生应用需要的M额外的源代码Q如xdoclet?/li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">如果要执行项目编译,那么直接输入Qmvn compile卛_Q对于其他的阶段可以cL。阶D之间是存在依赖关系QdependencyQ的Q如test依赖test-compile。在执行mvn testӞ会先q行mvn test-compileQ然后才是mvn test?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N10120"><span id="wmqeeuq" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">6Q?新增Dependency Scope</span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">在POM 4中,<dependency>中还引入?lt;scope>Q它主要理依赖的部|Ӏ目?lt;scope>可以使用5个|</p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>compileQ缺省|适用于所有阶D,会随着目一起发布?/li> <li>providedQ类似compileQ期望JDK、容器或使用者会提供q个依赖。如servlet.jar?/li> <li>runtimeQ只在运行时使用Q如JDBC驱动Q适用q行和测试阶Dc?/li> <li>testQ只在测试时使用Q用于编译和q行试代码。不会随目发布?/li> <li>systemQ类似providedQ需要显式提供包含依赖的jarQMaven不会在Repository中查扑֮?/li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><scope>的用D例:</p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <table width="100%" cellpadding="0" cellspacing="0" border="0" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr> <td class="code-outline" style="line-height: 19px; background-color: #eeeeee; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; "> <pre class="displaycode" style="margin-top: 0px; margin-bottom: 0px; font-family: 'Andale Mono', 'Lucida Console', Monaco, fixed, monospace; font-size: 11px; "><dependency> <groupId>hibernate</groupId> <artifactId>hibernate</artifactId> <version>3.0.3</version> <scope>test</scope> </dependency> </pre> </td> </tr> </tbody> </table> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N10147"><span id="wmqeeuq" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">7Q?传递依赖,化依赖管?/span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">在Maven1中,需要把依赖所需要的包也一q列出。这对于使用cM如Hibernate的用h说所操的心太多了Q而且也不方便。在Maven2中实C传递依赖,如此对于Hibernate所依赖的包QMaven2会自动下载,开发h员只需兛_Hibernate卛_?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">注意Q只有得到Maven支持的依赖,通常是plugin形式出现Q才能获得这个特性。而且对于一些老的pluginQ可能由于时间的关系不支持传递依赖。如臛_在Maven 2.0.1中,对于Hibernate 2.1.2Q仍焉要显式列出Hibernate 2.1.2所依赖的包?/p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr> <td style="line-height: 19px; "><img width="100%" src="http://www.ibm.com/i/v14/rules/blue_rule.gif" height="1" alt="" /><br /> <img alt="" width="8" height="6" border="0" src="http://www.ibm.com/i/c.gif" /></td> </tr> </tbody> </table> <table class="no-print" cellspacing="0" cellpadding="0" align="right" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr align="right"> <td style="line-height: 19px; "><img width="100%" height="4" src="http://www.ibm.com/i/c.gif" alt="" /><br /> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td valign="middle" style="line-height: 19px; "><img width="16" src="http://www.ibm.com/i/v14/icons/u_bold.gif" height="16" border="0" alt="" /><br /> </td> <td valign="top" align="right" style="line-height: 19px; "><a class="fbox" style="color: #5c81a7; text-decoration: none; font-family: verdana, nsimSun, arial, sans-serif; font-size: 12px; line-height: 13px; "><strong>回页?/strong></a></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span><span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N10153"><span id="wmqeeuq" class="atitle" style="font-family: Arial, sans-serif; font-weight: bold; font-size: 18px; ">使用?/span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">安装Maven2的步骤非常简单:首先从Maven官方|站下蝲相应的Y件包Q目前是Maven 2.0.1Q然后解压,q设|环境变量M2_HOME= Maven2的解压安装目录;最后将%M2_HOME%/bind到path中,方便Maven在Q何目录下q行?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">Maven2的运行命令是mvnQ用mvn -h可以获得相关的帮助信息。常用情形:</p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>创徏Maven目Qmvn archetype:create</li> <li>~译源代码:mvn compile</li> <li>~译试代码Qmvn test-compile</li> <li>q行试Qmvn test</li> <li>产生siteQmvn site</li> <li>打包Qmvn package</li> <li>在本地Repository中安装jarQmvn install</li> <li>清除产生的项目:mvn clean</li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">或许是由于刚刚推出的~故QMaven2目前q是有一些不如人意的地斏V尤其是Report部分的pluginQ有的是因ؓ目前q没有,如junit-report。有的则是一些莫名其妙的问题Q如checktyle和pmdQ在本地l(f)ocale下都无法正常工作。以pmd举例Q在产生PMD报告时会抛出如下异常Q?/p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <table width="100%" cellpadding="0" cellspacing="0" border="0" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr> <td class="code-outline" style="line-height: 19px; background-color: #eeeeee; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; "> <pre class="displaycode" style="margin-top: 0px; margin-bottom: 0px; font-family: 'Andale Mono', 'Lucida Console', Monaco, fixed, monospace; font-size: 11px; ">java.util.MissingResourceException: Can't find bundle for base name pmd-report, locale zh_CN at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle .java:839) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:808) at java.util.ResourceBundle.getBundle(ResourceBundle.java:702) …… </pre> </td> </tr> </tbody> </table> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">q运的是QMaven2一出现备受关注,要不了多长时_诸如此类的问题应该就会很快解冟?/p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr> <td style="line-height: 19px; "><img width="100%" src="http://www.ibm.com/i/v14/rules/blue_rule.gif" height="1" alt="" /><br /> <img alt="" width="8" height="6" border="0" src="http://www.ibm.com/i/c.gif" /></td> </tr> </tbody> </table> <table class="no-print" cellspacing="0" cellpadding="0" align="right" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr align="right"> <td style="line-height: 19px; "><img width="100%" height="4" src="http://www.ibm.com/i/c.gif" alt="" /><br /> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td valign="middle" style="line-height: 19px; "><img width="16" src="http://www.ibm.com/i/v14/icons/u_bold.gif" height="16" border="0" alt="" /><br /> </td> <td valign="top" align="right" style="line-height: 19px; "><a class="fbox" style="color: #5c81a7; text-decoration: none; font-family: verdana, nsimSun, arial, sans-serif; font-size: 12px; line-height: 13px; "><strong>回页?/strong></a></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span><span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N10189"><span id="wmqeeuq" class="atitle" style="font-family: Arial, sans-serif; font-weight: bold; font-size: 18px; ">l论</span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">Maven2在Maven1的优势基之上Q又向前q进了一大步。它提供的这些新Ҏ(gu)大大地~短了开发管理中的工作量Q得开发h员将_֊集中在实际的业务问题上。而且q些新特性对于简化用,普及最?jng)_践,也vCU极的作用?/p> <img src ="http://www.aygfsteel.com/masen/aggbug/323129.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/masen/" target="_blank">Masen</a> 2010-06-09 11:14 <a href="http://www.aygfsteel.com/masen/articles/323129.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˶</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ԣ</a>| <a href="http://" target="_blank">ϲ</a>| <a href="http://" target="_blank">ľ</a>| <a href="http://" target="_blank">·</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank">α</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">߰</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">¤</a>| <a href="http://" target="_blank">Ȩ</a>| <a href="http://" target="_blank">կ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">IJ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">׳</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">ͼ</a>| <a href="http://" target="_blank">˼</a>| <a href="http://" target="_blank">¤</a>| <a href="http://" target="_blank">ׯ</a>| <a href="http://" target="_blank">ͭϿ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʯɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɳ</a>| <a href="http://" target="_blank">ȫ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">е</a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>