﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-jinfeng_wang-随笔分类-maven</title><link>http://www.blogjava.net/jinfeng_wang/category/479.html</link><description>G-G-S,D-D-U!</description><language>zh-cn</language><lastBuildDate>Tue, 27 Feb 2007 08:55:04 GMT</lastBuildDate><pubDate>Tue, 27 Feb 2007 08:55:04 GMT</pubDate><ttl>60</ttl><item><title>Magic Maven translation release发布</title><link>http://www.blogjava.net/jinfeng_wang/archive/2005/03/16/2141.html</link><dc:creator>jinfeng_wang</dc:creator><author>jinfeng_wang</author><pubDate>Wed, 16 Mar 2005 12:14:00 GMT</pubDate><guid>http://www.blogjava.net/jinfeng_wang/archive/2005/03/16/2141.html</guid><wfw:comment>http://www.blogjava.net/jinfeng_wang/comments/2141.html</wfw:comment><comments>http://www.blogjava.net/jinfeng_wang/archive/2005/03/16/2141.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.blogjava.net/jinfeng_wang/comments/commentRss/2141.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jinfeng_wang/services/trackbacks/2141.html</trackback:ping><description><![CDATA[<BR>总共花了3天时间翻译，第一次正式的翻译哦！<BR><BR>&nbsp;Magic Maven translation release：<BR><BR>下载地址：&nbsp; <A href="http://www.blogjava.net/Files/jinfeng_wang/MagicMaven.zip">http://www.blogjava.net/Files/jinfeng_wang/MagicMaven.zip</A> <img src ="http://www.blogjava.net/jinfeng_wang/aggbug/2141.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jinfeng_wang/" target="_blank">jinfeng_wang</a> 2005-03-16 20:14 <a href="http://www.blogjava.net/jinfeng_wang/archive/2005/03/16/2141.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Magic Maven( Translation part 3) </title><link>http://www.blogjava.net/jinfeng_wang/archive/2005/03/15/2089.html</link><dc:creator>jinfeng_wang</dc:creator><author>jinfeng_wang</author><pubDate>Tue, 15 Mar 2005 03:36:00 GMT</pubDate><guid>http://www.blogjava.net/jinfeng_wang/archive/2005/03/15/2089.html</guid><wfw:comment>http://www.blogjava.net/jinfeng_wang/comments/2089.html</wfw:comment><comments>http://www.blogjava.net/jinfeng_wang/archive/2005/03/15/2089.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/jinfeng_wang/comments/commentRss/2089.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jinfeng_wang/services/trackbacks/2089.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Written by Srikanth Shenoy November 2003Translated by jinfeng wang 2005年三月原文地址：http://www.theserverside.com/articles/article.tss?l=MavenMagic本文的翻译已经原作者同意，转载请保持原文。如有问题和意见可以和原作者或我联系。Part 1: http...&nbsp;&nbsp;<a href='http://www.blogjava.net/jinfeng_wang/archive/2005/03/15/2089.html'>阅读全文</a><img src ="http://www.blogjava.net/jinfeng_wang/aggbug/2089.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jinfeng_wang/" target="_blank">jinfeng_wang</a> 2005-03-15 11:36 <a href="http://www.blogjava.net/jinfeng_wang/archive/2005/03/15/2089.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Magic Maven( Translation part 2) </title><link>http://www.blogjava.net/jinfeng_wang/archive/2005/03/14/2074.html</link><dc:creator>jinfeng_wang</dc:creator><author>jinfeng_wang</author><pubDate>Mon, 14 Mar 2005 08:44:00 GMT</pubDate><guid>http://www.blogjava.net/jinfeng_wang/archive/2005/03/14/2074.html</guid><wfw:comment>http://www.blogjava.net/jinfeng_wang/comments/2074.html</wfw:comment><comments>http://www.blogjava.net/jinfeng_wang/archive/2005/03/14/2074.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/jinfeng_wang/comments/commentRss/2074.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jinfeng_wang/services/trackbacks/2074.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Written by Srikanth Shenoy November 2003Translated by jinfeng wang 2005年三月原文地址：http://www.theserverside.com/articles/article.tss?l=MavenMagic本文的翻译已经原作者同意，转载请保持原文。如有问题和意见可以和原作者或我联系。Part 1: http...&nbsp;&nbsp;<a href='http://www.blogjava.net/jinfeng_wang/archive/2005/03/14/2074.html'>阅读全文</a><img src ="http://www.blogjava.net/jinfeng_wang/aggbug/2074.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jinfeng_wang/" target="_blank">jinfeng_wang</a> 2005-03-14 16:44 <a href="http://www.blogjava.net/jinfeng_wang/archive/2005/03/14/2074.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Magic Maven( Translation part 1) </title><link>http://www.blogjava.net/jinfeng_wang/archive/2005/03/11/1956.html</link><dc:creator>jinfeng_wang</dc:creator><author>jinfeng_wang</author><pubDate>Fri, 11 Mar 2005 09:38:00 GMT</pubDate><guid>http://www.blogjava.net/jinfeng_wang/archive/2005/03/11/1956.html</guid><wfw:comment>http://www.blogjava.net/jinfeng_wang/comments/1956.html</wfw:comment><comments>http://www.blogjava.net/jinfeng_wang/archive/2005/03/11/1956.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/jinfeng_wang/comments/commentRss/1956.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jinfeng_wang/services/trackbacks/1956.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Magic Maven Written by Srikanth Shenoy November 2003Translated by jinfeng wang 2005年三月原文地址：http://www.theserverside.com/articles/article.tss?l=MavenMagic本文的翻译已经原作者同意，转载请保持原文。如有问题和意见可以和原作者或我联系。...&nbsp;&nbsp;<a href='http://www.blogjava.net/jinfeng_wang/archive/2005/03/11/1956.html'>阅读全文</a><img src ="http://www.blogjava.net/jinfeng_wang/aggbug/1956.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jinfeng_wang/" target="_blank">jinfeng_wang</a> 2005-03-11 17:38 <a href="http://www.blogjava.net/jinfeng_wang/archive/2005/03/11/1956.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Maven存在的问题/疑惑？</title><link>http://www.blogjava.net/jinfeng_wang/archive/2005/03/10/1898.html</link><dc:creator>jinfeng_wang</dc:creator><author>jinfeng_wang</author><pubDate>Thu, 10 Mar 2005 04:52:00 GMT</pubDate><guid>http://www.blogjava.net/jinfeng_wang/archive/2005/03/10/1898.html</guid><wfw:comment>http://www.blogjava.net/jinfeng_wang/comments/1898.html</wfw:comment><comments>http://www.blogjava.net/jinfeng_wang/archive/2005/03/10/1898.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/jinfeng_wang/comments/commentRss/1898.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jinfeng_wang/services/trackbacks/1898.html</trackback:ping><description><![CDATA[1、如果整个项目使用maven管理，那么每个开发客户端都需要配置maven才行。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 如果要在Eclipse里面集成maven，例如使用maven ide，那么还要对maven ide进行配置。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这里提醒一下哦，Eclipse里面使用maven ide的时候会下载maven，在eclipse\plugins\org.apache.maven_1.0.0\lib目录中，如果你想，还需要象maven那样自己配置。<BR><BR>2、如果你想在客户端debug怎么办？那还是需要将lib库拷贝到本地。现在只能统一映射网络硬盘。那就是在开发的时候是一种方式，在发布的时候又是一种模式。maven对开发的帮助并不是很大，有意义的内容在于maven会“强迫”要求你尽量分开projcet之间的各层。<BR><BR>3、maven的各artifact 之间的依赖问题。maven artifact 的version决定与POM中的currentversion，而没用能够和CVS的version连接起来。如果在开发过程中，会生成A、B两个artifact，A依赖于B，但是B经过改动后，编译A、B，此时Maven并不能自动发觉B已经改动过。只要maven在repository发现了B.currentversion.jar，那么它就不会将B重新打包，maven还是必须通过种种人工手段才能够完成先编译B再编译A。在测试的时候也是如此。总之，必须还是需要人为的参与才能保证顺序的正确，才能保证你所使用的库，是最新的库。<BR><BR>4、如果maven只能提供一个repository的功能和利用POM减少script的功能，那用maven干吗呢？何况每个developer还需要自己机器上拥有repository。如果说maven提供了许多的plugin，那么现在的ant也可以支持，只是未能正式成形。<BR><BR>我的意思是说：maven带来的内容并不是ant的完全替代品，有时候甚至需要人工参与才能让maven完成任务。当然，maven提供jelly，自己写script，但那不是又麻烦了么？<BR><BR><BR><FONT color=#008000>//maven 可以先排队哦，问题3解决了</FONT><img src ="http://www.blogjava.net/jinfeng_wang/aggbug/1898.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jinfeng_wang/" target="_blank">jinfeng_wang</a> 2005-03-10 12:52 <a href="http://www.blogjava.net/jinfeng_wang/archive/2005/03/10/1898.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>project  orginazition</title><link>http://www.blogjava.net/jinfeng_wang/archive/2005/02/16/1255.html</link><dc:creator>jinfeng_wang</dc:creator><author>jinfeng_wang</author><pubDate>Wed, 16 Feb 2005 09:01:00 GMT</pubDate><guid>http://www.blogjava.net/jinfeng_wang/archive/2005/02/16/1255.html</guid><wfw:comment>http://www.blogjava.net/jinfeng_wang/comments/1255.html</wfw:comment><comments>http://www.blogjava.net/jinfeng_wang/archive/2005/02/16/1255.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/jinfeng_wang/comments/commentRss/1255.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jinfeng_wang/services/trackbacks/1255.html</trackback:ping><description><![CDATA[<DIV class=section><A name=Overview></A>
<H2>Overview</H2>
<P>The display tag library uses Maven for build and documentation and tries to conform to general Maven project layout. If you are used to working on a maven-driven project you should feel comfortable with it. Here is a description of the file and folder organization. The <STRONG>strong</STRONG> names refer to project specific setting/files. </P></DIV>
<DIV class=section><A name=Common_Directory_Layout></A>
<H2>Common Directory Layout</H2>
<TABLE class=bodyTable>
<TBODY>
<TR class=a>
<TH>Directory or file name</TH>
<TH>Content</TH>
<TH>Comment</TH></TR>
<TR class=b>
<TD>LICENSE.txt</TD>
<TD>The license for the project.</TD>
<TD>This file contains the license that applies to the project. </TD></TR>
<TR class=a>
<TD>project.xml</TD>
<TD>Maven project descriptor</TD>
<TD>This file contains the basic project configuration for maven (project name, developers, urls, dependencies, etc). </TD></TR>
<TR class=b>
<TD>project.properties</TD>
<TD>A file defining project specific properties.</TD>
<TD>This file can be used to override maven default properties for the core and properties for the various plugins. It can also be used to define any maven properties used by a project. The properties defined in this file should be applicable to most users of your project, as opposed to custom properties for a specific build/user which should be defined in <CODE>${project.home}/build.properties</CODE> . </TD></TR>
<TR class=a>
<TD>maven.xml</TD>
<TD>Maven configuration for defining build goals</TD>
<TD>This file contains the default maven goals for the project, plus added pre-post operations to be performed. </TD></TR>
<TR class=b>
<TD>src/</TD>
<TD>Source code</TD>
<TD>This is the main directory for all the source code, subdivided in subdirectory to separate different "kind" of code. </TD></TR>
<TR class=a>
<TD><STRONG>src/java</STRONG> </TD>
<TD>Java source code</TD>
<TD>This directory contains all the java source code both for the library and the example webapp. </TD></TR>
<TR class=b>
<TD><STRONG>src/webapp</STRONG> </TD>
<TD>Example webapp source</TD>
<TD>This directory contains all the code (JSP, images, web.xml configuration) for the example webapp. </TD></TR>
<TR class=a>
<TD><STRONG>src/tld</STRONG> </TD>
<TD>tld</TD>
<TD>This directory contains the tag library definition file (tld), which is added in the library jar and in the examples war during the build. </TD></TR>
<TR class=b>
<TD>xdocs/</TD>
<TD>Documentation files in XML format.</TD>
<TD>Maven projects use Jelly/JSL to transform documentation files in XML into HTML. Project documentation should be placed in this directory. Maven converts all XML files in this directory using JSL. Non-XML files (and directories) are copied without modification to permit the inclusion of "other" types of documentation (including images). The generated HTML files automatically inherit the Maven look-and-feel by default. </TD></TR>
<TR class=a>
<TD>xdocs/navigation.xml</TD>
<TD>Navigation links for site.</TD>
<TD>Maven projects use Jelly stylesheets to transform documentation files in XML into HTML (XHTML for the most part). This file includes the navigation links that are added to each xdoc transformed in the <CODE>xdocs</CODE> directory. </TD></TR>
<TR class=b>
<TD><STRONG>checkstyle.xml</STRONG> </TD>
<TD>Checkstyle configuration file</TD>
<TD>Configuration file containing checkstyle settings used during generation of reports.</TD></TR></TBODY></TABLE></DIV>
<DIV class=section><A name=Maven-Generated_Layout></A>
<H2>Maven-Generated Layout</H2>
<TABLE class=bodyTable>
<TBODY>
<TR class=a>
<TH>Directory name</TH>
<TH>Content</TH>
<TH>Comment</TH></TR>
<TR class=b>
<TD>target/</TD>
<TD>Contains compiled classes and JARs.</TD>
<TD>The contents of the target/ directory should be enough to use the project. This directory contains the final JAR and WAR that are generated. </TD></TR>
<TR class=a>
<TD>target/classes</TD>
<TD>Contains compiled classes.</TD>
<TD>The target/classes directory contains all compiled classes. This directory is used when packaging the final JAR for a project. </TD></TR>
<TR class=b>
<TD><STRONG>target/generated-docs</STRONG></TD>
<TD>Contains Maven generated xdocs.</TD>
<TD>The target/generated-docs directory <STRONG>contains all of the Maven-generated xdocs. All content generated by Maven is first converted to xdoc format, so the same stylesheet used to transform the rest of the site can be used on generated content. </STRONG>The contents of this directory are transformed and stored in the docs/ directory. </TD></TR>
<TR class=a>
<TD><STRONG>target/docs</STRONG></TD>
<TD>Documentation files intended for the website publication.</TD>
<TD><STRONG>The docs/ directory contains only generated documentation that is intended to be published as the project's website. This directory includes the Velocity/DVSL generated HTML files, JavaDocs, cross-referenced sources, and various generated reports.</STRONG> Generally, <FONT color=#000080>all documentation is stored in the xdocs/ directory and then "transformed" into this directory. The specific documents that Maven generates are described below. </FONT></TD></TR>
<TR class=b>
<TD>target/docs/index.html</TD>
<TD>Starting point for browsing the documentation.</TD>
<TD>Browsing the documentation locally should yield the same results as browsing the documentation on the project's home page. </TD></TR>
<TR class=a>
<TD>target/docs/apidocs</TD>
<TD>API documentation.</TD>
<TD>Maven automatically generates JavaDocs for projects using the JavaDoc utility. Placing the API documentation under docs/apidocs/ makes it slightly easier for other documentation files under docs/ to reference API documentation and vice versa. </TD></TR>
<TR class=b>
<TD>target/docs/xref</TD>
<TD>Cross-referenced source code.</TD>
<TD>Maven automatically generates cross-referenced source code that enables easy browsing of an entire source tree. Placing the cross-referenced sources under docs/xref/ makes it slightly easier for other documentation files under docs/ to reference API documentation and vice versa. </TD></TR>
<TR class=a>
<TD>target/docs/mail-lists.html</TD>
<TD>Mailing list documentation.</TD>
<TD>Maven automatically generates a list of mailing lists based on the information provided in the project descriptor. </TD></TR>
<TR class=b>
<TD>target/docs/team-list.html</TD>
<TD>The list of project team members.</TD>
<TD>Maven automatically generates a list of project team members based on the information provided in the project descriptor. </TD></TR>
<TR class=a>
<TD><FONT color=#ff1493>target/docs/dependencies.html</FONT></TD>
<TD>The list of dependencies.</TD>
<TD>Maven automatically generates a list of dependencies based on the information provided in the project descriptor. </TD></TR>
<TR class=b>
<TD>target/docs/changelog.html</TD>
<TD>The CVS change log.</TD>
<TD>Maven automatically generates a change log from CVS log messages. This log is currently limited to the past 30 days (but will be configurable in the future). </TD></TR>
<TR class=a>
<TD>target/docs/file-activity-report.html</TD>
<TD>The File Activity Report.</TD>
<TD>Maven automatically generates a log from your SCM listing file changes in the last 30 days. </TD></TR>
<TR class=b>
<TD>target/docs/developer-activity-report.html</TD>
<TD>The Developer Activity Report.</TD>
<TD>Maven automatically generates a log from your SCM listing changes per developer in the last 30 days. </TD></TR>
<TR class=a>
<TD><FONT color=#ff1493>target/docs/jdepend-report.html</FONT></TD>
<TD>Metric report.</TD>
<TD>Maven automatically generates a report on various source code <A href="http://sourceforge.net/projects/metrics/">metrics</A>. This report can provide further insight into a project. </TD></TR>
<TR class=b>
<TD>target/docs/checkstyle-report.html</TD>
<TD>Checkstyle report.</TD>
<TD>Maven automatically generates a report on the results of Checkstyle. This report provides assurance that the coding conventions for your project are being followed. </TD></TR></TBODY></TABLE></DIV>
<P>&nbsp;</P>
<P>全部report参考 <A href="http://maven.apache.org/reference/plugins/changes/maven-reports.html">Maven Generated Reports</A></P><img src ="http://www.blogjava.net/jinfeng_wang/aggbug/1255.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jinfeng_wang/" target="_blank">jinfeng_wang</a> 2005-02-16 17:01 <a href="http://www.blogjava.net/jinfeng_wang/archive/2005/02/16/1255.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>maven的常用goal</title><link>http://www.blogjava.net/jinfeng_wang/archive/2005/02/16/1254.html</link><dc:creator>jinfeng_wang</dc:creator><author>jinfeng_wang</author><pubDate>Wed, 16 Feb 2005 08:59:00 GMT</pubDate><guid>http://www.blogjava.net/jinfeng_wang/archive/2005/02/16/1254.html</guid><wfw:comment>http://www.blogjava.net/jinfeng_wang/comments/1254.html</wfw:comment><comments>http://www.blogjava.net/jinfeng_wang/archive/2005/02/16/1254.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/jinfeng_wang/comments/commentRss/1254.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jinfeng_wang/services/trackbacks/1254.html</trackback:ping><description><![CDATA[<P>
<TABLE cellSpacing=0 cellPadding=4 width="80%" align=center border=1>
<TBODY>
<TR>
<TD>
<P><STRONG>Plug in</STRONG></P></TD>
<TD>
<P><STRONG>Goal</STRONG></P></TD>
<TD>
<P><STRONG>Description</STRONG></P></TD></TR>
<TR>
<TD rowSpan=2>
<P>ear</P></TD>
<TD>
<P>ear</P></TD>
<TD>
<P>construire une archive de type ear</P></TD></TR>
<TR>
<TD>
<P>deploy</P></TD>
<TD>
<P>déployer un fichier ear dans un serveur d'application</P></TD></TR>
<TR>
<TD rowSpan=2>
<P>ejb</P></TD>
<TD>
<P>ejb</P></TD>
<TD>&nbsp; </TD></TR>
<TR>
<TD>
<P>deploy</P></TD>
<TD>&nbsp; </TD></TR>
<TR>
<TD>
<P>jalopy</P></TD>
<TD>
<P>format</P></TD>
<TD>&nbsp; </TD></TR>
<TR>
<TD rowSpan=2>
<P>java</P></TD>
<TD>
<P>compile</P></TD>
<TD>
<P>compiler des sources</P></TD></TR>
<TR>
<TD>
<P>jar</P></TD>
<TD>
<P>créer une archive de type .jar</P></TD></TR>
<TR>
<TD>
<P>javadoc</P></TD>
<TD>&nbsp; </TD>
<TD>&nbsp; </TD></TR>
<TR>
<TD>
<P>jnlp</P></TD>
<TD>&nbsp; </TD>
<TD>&nbsp; </TD></TR>
<TR>
<TD>
<P>pdf</P></TD>
<TD>&nbsp; </TD>
<TD>
<P>générer la documentation du projet au format PDF</P></TD></TR>
<TR>
<TD rowSpan=2>
<P>site</P></TD>
<TD>
<P>generate</P></TD>
<TD>
<P>générer le site web du projet</P></TD></TR>
<TR>
<TD>
<P>deploy</P></TD>
<TD>
<P>copier le site web sur un serveur web</P></TD></TR>
<TR>
<TD>
<P>test</P></TD>
<TD>
<P>match</P></TD>
<TD>
<P>exécuter des tests unitaires</P></TD></TR>
<TR>
<TD rowSpan=3>
<P>war</P></TD>
<TD>
<P>init</P></TD>
<TD>&nbsp; </TD></TR>
<TR>
<TD>
<P>war</P></TD>
<TD>&nbsp; </TD></TR>
<TR>
<TD>
<P>deploy</P></TD>
<TD>&nbsp; </TD></TR></TBODY></TABLE></P>
<P>法文哦 :) </P>
<P>你可以自己 maven -g &gt;goal.txt 查看所有命令.</P><img src ="http://www.blogjava.net/jinfeng_wang/aggbug/1254.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jinfeng_wang/" target="_blank">jinfeng_wang</a> 2005-02-16 16:59 <a href="http://www.blogjava.net/jinfeng_wang/archive/2005/02/16/1254.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>maven的tutorial</title><link>http://www.blogjava.net/jinfeng_wang/archive/2005/02/16/1253.html</link><dc:creator>jinfeng_wang</dc:creator><author>jinfeng_wang</author><pubDate>Wed, 16 Feb 2005 08:03:00 GMT</pubDate><guid>http://www.blogjava.net/jinfeng_wang/archive/2005/02/16/1253.html</guid><wfw:comment>http://www.blogjava.net/jinfeng_wang/comments/1253.html</wfw:comment><comments>http://www.blogjava.net/jinfeng_wang/archive/2005/02/16/1253.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/jinfeng_wang/comments/commentRss/1253.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jinfeng_wang/services/trackbacks/1253.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt">1</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、下载并解压</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt">zip</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">到你自己指定的目录</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt"><BR>2</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、检查是否设定了</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt">JAVA_HOME</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，然后设定</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt">MAVEN_HOME</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">为安装目录和</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt">Path=%MAVEN_HOME%\bin</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt"><BR>3</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、将</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt">lib\maven.jar </SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">解压缩，修改其中的</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt">default.properties</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文件中的几个属性。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt"><BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; maven.home.local = d:/maven<BR>&nbsp;&nbsp; maven.repo.local = d:/maven/repository<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; ## ----------------------------------------------------------<BR>&nbsp;&nbsp; ## ${user.home}/build.properties<BR>&nbsp;&nbsp; ## ----------------------------------------------------------<BR>&nbsp;&nbsp; maven.proxy.host = proxy<BR>&nbsp;&nbsp; maven.proxy.port = 80<BR>&nbsp;&nbsp; maven.proxy.username = username<BR>&nbsp;&nbsp; maven.proxy.password = password<BR>4</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt">maven</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">使用时会出现乱码，这是由于</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt">maven.jarorg\apache\maven\messages\messages_zh_CN.properties</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这个文件的毛病。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt"><BR>&nbsp;&nbsp; native2ascii</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">进行转换，然后重新覆盖此文件即可。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt"><BR>&nbsp;&nbsp; <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt">5</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、运行</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt">maven</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">命令，即可生成一系列的文件</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt">6</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、运行</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt">maven genapp </SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">即可生成测试文件，自动下载文件，然后就可以</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt"> maven java:compile</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">了。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt"><o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">7.&nbsp; default.properties</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>中远程</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">repository</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>重新设置</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">:&nbsp;maven.repo.remote = <A href="http://apache.linuxforum.net/dist/java-repository,http://dist.codehaus.org/,http://mirrors.sunsite.dk/maven/,http://public.planetmirror.com/pub/maven,http://www.ibiblio.org/maven,http://www.ganet.org/maven/,http://test.topicus.nl/maven/"><SPAN style="COLOR: windowtext; TEXT-DECORATION: none; text-underline: none">http://apache.linuxforum.net/dist/java-repository,http://dist.codehaus.org/,http://mirrors.sunsite.dk/maven/,http://public.planetmirror.com/pub/maven,http://www.ibiblio.org/maven,http://www.ganet.org/maven/,http://test.topicus.nl/maven/</SPAN></A><o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">&nbsp;<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt"><STRONG><FONT color=#0000ff size=3>maven tutorial</FONT></STRONG> :&nbsp;&nbsp;</SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">&nbsp;<A href="http://www-900.ibm.com/developerWorks/cn/java/j-maven/">http://www-900.ibm.com/developerWorks/cn/java/j-maven/</A></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">&nbsp;<A href="http://www.theserverside.com/articles/article.tss?l=MavenMagic"><SPAN style="COLOR: windowtext; TEXT-DECORATION: none; text-underline: none">http://www.theserverside.com/articles/article.tss?l=MavenMagic</SPAN></A><o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>使用中如果有问题</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">,</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>可以参考下面文章</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">. :)&nbsp; <A href="http://java.mblogger.cn/layout/posts/5731.aspx"><SPAN style="COLOR: windowtext; TEXT-DECORATION: none; text-underline: none">http://java.mblogger.cn/layout/posts/5731.aspx</SPAN></A><o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>但我下载的源代码和原文</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">"Figure 3 "</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>的目录结构不一致</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">, </SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>只有三个目录</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">:service, Foobar-Web,ear. </SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>执行结果不正确</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">. <BR><BR></SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>我分别在这三个目录下</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">,</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>分别执行</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">maven, </SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>前两个已经完成</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">,</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>但是在</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">ear</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>目录下执行</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">maven</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>命令</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">,</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>则报错如下</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">: <BR>"Case-sensitive issue: The dependency xerces:xerces has a case problem. The dependency was either retrieved in the past with the wrong case or has been specified with the wrong case in your project.xml file. Fix your project.xml or update your local repository with the properly-cased file and try again." <BR><BR></SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>让人郁闷的是</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">, </SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>我把</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">repository</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>里面的</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">xerces</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>目录删除</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">,</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>还是只可以完成前两步</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">,</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>第三步报同一个错误</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">. <BR><BR></SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>我将每个</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">depency</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>的</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">properties</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>元素删除</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">,</SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>就可以了</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt"> sucessful :( <BR><BR></SPAN><SPAN style="FONT-SIZE: 10pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt"><FONT face=宋体>可以请教一下么</FONT></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-font-kerning: 1.0pt">?&nbsp;&nbsp;&nbsp; </SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>&nbsp;<o:p></o:p></SPAN></P><img src ="http://www.blogjava.net/jinfeng_wang/aggbug/1253.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jinfeng_wang/" target="_blank">jinfeng_wang</a> 2005-02-16 16:03 <a href="http://www.blogjava.net/jinfeng_wang/archive/2005/02/16/1253.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>