ï»??xml version="1.0" encoding="utf-8" standalone="yes"?>综合久久99,欧美在线观看网站,亚洲国产三级http://www.aygfsteel.com/paulwong/category/49942.htmlzh-cnFri, 21 May 2021 13:21:14 GMTFri, 21 May 2021 13:21:14 GMT60Copying Files With Mavenhttp://www.aygfsteel.com/paulwong/archive/2021/05/21/435878.htmlpaulwongpaulwongFri, 21 May 2021 01:58:00 GMThttp://www.aygfsteel.com/paulwong/archive/2021/05/21/435878.htmlhttp://www.aygfsteel.com/paulwong/comments/435878.htmlhttp://www.aygfsteel.com/paulwong/archive/2021/05/21/435878.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435878.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435878.htmlhttps://www.baeldung.com/maven-copy-files

]]>
Maven project version inheritancehttp://www.aygfsteel.com/paulwong/archive/2020/12/16/435749.htmlpaulwongpaulwongWed, 16 Dec 2020 01:48:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/12/16/435749.htmlhttp://www.aygfsteel.com/paulwong/comments/435749.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/12/16/435749.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435749.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435749.html
<groupId>com.dummy.bla</groupId>
<artifactId>parent</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>pom</packaging>

B/pom.xml
<parent>
    <groupId>com.dummy.bla</groupId>
    <artifactId>parent</artifactId>
    <version>0.1-SNAPSHOT</version>     
</parent>

<groupId>com.dummy.bla.sub</groupId>
<artifactId>kid</artifactId>

B/pom.xml中需要显式注明父pom的版本号åQŒä½†ä»ŽMAVEN3.5之后åQŒå¯ä»¥ç”¨å˜é‡è¡¨ç¤ºäº†ï¼š

A/pom.xml:
<groupId>com.dummy.bla</groupId>
<artifactId>parent</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>

<properties>
    <revision>0.1-SNAPSHOT</revision>
</properties>

B/pom.xml
<parent>
    <groupId>com.dummy.bla</groupId>
    <artifactId>parent</artifactId>
    <version>${revision}</version>     
</parent>

<groupId>com.dummy.bla.sub</groupId>
<artifactId>kid</artifactId>

https://stackoverflow.com/questions/10582054/maven-project-version-inheritance-do-i-have-to-specify-the-parent-version/51969067#51969067


https://maven.apache.org/maven-ci-friendly.html

]]>
MAVEN¿Uæœã€DOCKER¿Uæœã€NPM¿UæœåQŒä¸“æ²Õd„¿Uç§æœ?/title><link>http://www.aygfsteel.com/paulwong/archive/2020/09/30/435678.html</link><dc:creator>paulwong</dc:creator><author>paulwong</author><pubDate>Wed, 30 Sep 2020 06:24:00 GMT</pubDate><guid>http://www.aygfsteel.com/paulwong/archive/2020/09/30/435678.html</guid><wfw:comment>http://www.aygfsteel.com/paulwong/comments/435678.html</wfw:comment><comments>http://www.aygfsteel.com/paulwong/archive/2020/09/30/435678.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/paulwong/comments/commentRss/435678.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/paulwong/services/trackbacks/435678.html</trackback:ping><description><![CDATA[Using Nexus 3 as Your Repository – Part 1: Maven Artifacts<br /> <a target="_blank">https://blog.sonatype.com/using-nexus-3-as-your-repository-part-1-maven-artifacts</a><br /> <br /> Using Nexus 3 as Your Repository – Part 2: npm Packages<br /> <a target="_blank">https://blog.sonatype.com/using-nexus-3-as-your-repository-part-2-npm-packages</a><br /> <br /> Using Nexus 3 as Your Repository – Part 3: Docker Images<br /> <a target="_blank">https://blog.sonatype.com/using-nexus-3-as-your-repository-part-3-docker-images</a> <br /><br />微服åŠ?-使用Nexus Repository Manager 3.0搭徏¿Uæœ‰Docker仓库<br /><a target="_blank">https://www.hifreud.com/2018/06/05/02-nexus-docker-repository/</a><img src ="http://www.aygfsteel.com/paulwong/aggbug/435678.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/paulwong/" target="_blank">paulwong</a> 2020-09-30 14:24 <a href="http://www.aygfsteel.com/paulwong/archive/2020/09/30/435678.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>How do I set directory permissions in maven output?http://www.aygfsteel.com/paulwong/archive/2020/09/23/435669.htmlpaulwongpaulwongWed, 23 Sep 2020 09:01:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/09/23/435669.htmlhttp://www.aygfsteel.com/paulwong/comments/435669.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/09/23/435669.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435669.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435669.html
        <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>3.1.1</version>

            <executions>
                <execution>
                    <id>make-assembly</id>
                    <phase>package</phase>

                    <goals>
                        <goal>single</goal>
                    </goals>
                </execution>
            </executions>

            <configuration>
                <descriptors>
                    <descriptor>src/main/assembly/descriptor.xml</descriptor>
                </descriptors>
                <archiverConfig>
                    <directoryMode>0755</directoryMode>
                    <defaultDirectoryMode>0755</defaultDirectoryMode>
                    <fileMode>0644</fileMode>
                </archiverConfig>
            </configuration>
        </plugin>

src/main/assembly/descriptor.xmlåQŒåœ¨æ­¤æ–‡ä»¶è¦†ç›–:
<fileSets>
    <fileSet>
        <directory>src/conf</directory>
        <outputDirectory>conf</outputDirectory>
        <fileMode>0600</fileMode>
        <directoryMode>0700</directoryMode>
    </fileSet>
    <fileSet>
        <directory>src/db</directory>
        <outputDirectory>db</outputDirectory>
    </fileSet>
    <fileSet>
        <directory>src/bin</directory>
        <outputDirectory>bin</outputDirectory>
        <fileMode>0755</fileMode>
    </fileSet>




]]>
Deploy artifacts into Maven Repository in Jenkinshttp://www.aygfsteel.com/paulwong/archive/2020/04/06/435321.htmlpaulwongpaulwongMon, 06 Apr 2020 06:13:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/04/06/435321.htmlhttp://www.aygfsteel.com/paulwong/comments/435321.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/04/06/435321.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435321.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435321.htmlhttps://huongdanjava.com/deploy-artifacts-into-maven-repository-in-jenkins.html



]]>
MAVEN¿Uæœ-Nexus Repository Managerhttp://www.aygfsteel.com/paulwong/archive/2020/04/06/435320.htmlpaulwongpaulwongMon, 06 Apr 2020 06:08:00 GMThttp://www.aygfsteel.com/paulwong/archive/2020/04/06/435320.htmlhttp://www.aygfsteel.com/paulwong/comments/435320.htmlhttp://www.aygfsteel.com/paulwong/archive/2020/04/06/435320.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/435320.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/435320.html

Nexus Repository Manager is a tool that allows us to store and use libraries we need in projects such as Maven project…

Nexus Repository ManagerIn this tutorial, I summarize the tutorials of Huong Dan Java on the Nexus Repository Manager for your reference.


Installation

In this tutorial, I will guide you how to install Nexus Repository Manager.


Configuration

In order to create a new Maven Repository in the Nexus Repository Manager, you can refer to this tutorial.

We need to define a Role to define User rights in the Nexus Repository Manager.

To be able to do anything in the Nexus Repository Manager, you need to create and use the User.


Manipulation

Nexus Repository Manager supports us UI to upload any artifact to the Repository.

In addition to the UI, we can also use the RESTful API to upload an artifact.



]]>
MAVEN打多环境åŒ?/title><link>http://www.aygfsteel.com/paulwong/archive/2019/11/21/434920.html</link><dc:creator>paulwong</dc:creator><author>paulwong</author><pubDate>Thu, 21 Nov 2019 08:40:00 GMT</pubDate><guid>http://www.aygfsteel.com/paulwong/archive/2019/11/21/434920.html</guid><wfw:comment>http://www.aygfsteel.com/paulwong/comments/434920.html</wfw:comment><comments>http://www.aygfsteel.com/paulwong/archive/2019/11/21/434920.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/paulwong/comments/commentRss/434920.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/paulwong/services/trackbacks/434920.html</trackback:ping><description><![CDATA[通常配置文äšg是放在src/main/resources下,build完之后会攑֜¨classesæ–‡äšg夹下åQŒæœ€¾lˆä¼šæ‰“è¿›jar包中ã€?br /> <br /> 如果是SPRING BOOT工程åQŒéƒ¨¾|²æ—¶åQŒè¦æ±‚配¾|®æ–‡ä»¶ä¸æ‰“è¿›jar包中åQŒè¦æœ‰sh启动命ä×oæ–‡äšgåQŒæœ€¾lˆäñ”生一个ZIP包,包含所有需要的东西。这时就需要善用MAVENçš„resource插äšg、assembly插äšgå’Œjar插äšg了ã€?br /> <br /> resource插äšg能重定义配置文äšg在output时的文äšg夹èµ\径,用profile的变量值替换配¾|®æ–‡ä»¶ä¸­çš„占位符ã€?br /> 但要更改点位½W¦çš„默认定义åQ?br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><properties><br />        <resource.delimiter>${}</resource.delimiter><br />    </properties></div><br /><br /> jar插äšg能排除生成在classesæ–‡äšg夹中不要的文件被打进jar包中ã€?br /> <br /> assembly插äšg能定义ZIP包中需要包含哪些文件ã€?br /> <br /> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000FF; "><</span><span style="color: #800000; ">resources</span><span style="color: #0000FF; ">></span>  <br />         <span style="color: #0000FF; "><</span><span style="color: #800000; ">resource</span><span style="color: #0000FF; ">></span>  <br />             <span style="color: #0000FF; "><</span><span style="color: #800000; ">directory</span><span style="color: #0000FF; ">></span>src/main/bin<span style="color: #0000FF; "></</span><span style="color: #800000; ">directory</span><span style="color: #0000FF; ">></span><br />             <span style="color: #008000; "><!--</span><span style="color: #008000; ">表明此文件夹中如有占位符åQŒåˆ™ä¼šå–pom中的profile中的å€ég»£æ›?/span><span style="color: #008000; ">--></span><br />             <span style="color: #0000FF; "><</span><span style="color: #800000; ">filtering</span><span style="color: #0000FF; ">></span>true<span style="color: #0000FF; "></</span><span style="color: #800000; ">filtering</span><span style="color: #0000FF; ">></span><br />             <span style="color: #0000FF; "><</span><span style="color: #800000; ">includes</span><span style="color: #0000FF; ">></span>  <br />                 <span style="color: #0000FF; "><</span><span style="color: #800000; ">include</span><span style="color: #0000FF; ">></span>*.sh<span style="color: #0000FF; "></</span><span style="color: #800000; ">include</span><span style="color: #0000FF; ">></span><br />             <span style="color: #0000FF; "></</span><span style="color: #800000; ">includes</span><span style="color: #0000FF; ">></span><br />         <span style="color: #0000FF; "></</span><span style="color: #800000; ">resource</span><span style="color: #0000FF; ">></span>  <br /> <span style="color: #0000FF; "></</span><span style="color: #800000; ">resources</span><span style="color: #0000FF; ">></span>  </div> <br /> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000FF; "><</span><span style="color: #800000; ">plugin</span><span style="color: #0000FF; ">></span>  <br />         <span style="color: #0000FF; "><</span><span style="color: #800000; ">artifactId</span><span style="color: #0000FF; ">></span>maven-jar-plugin<span style="color: #0000FF; "></</span><span style="color: #800000; ">artifactId</span><span style="color: #0000FF; ">></span>  <br />         <span style="color: #0000FF; "><</span><span style="color: #800000; ">configuration</span><span style="color: #0000FF; ">></span><br />             <span style="color: #008000; "><!--</span><span style="color: #008000; ">bin/æ–‡äšg夹不会被打进jaråŒ?/span><span style="color: #008000; ">--></span><br />             <span style="color: #0000FF; "><</span><span style="color: #800000; ">excludes</span><span style="color: #0000FF; ">></span>  <br />                 <span style="color: #0000FF; "><</span><span style="color: #800000; ">exclude</span><span style="color: #0000FF; ">></span>bin/<span style="color: #0000FF; "></</span><span style="color: #800000; ">exclude</span><span style="color: #0000FF; ">></span><br />             <span style="color: #0000FF; "></</span><span style="color: #800000; ">excludes</span><span style="color: #0000FF; ">></span><br />         <span style="color: #0000FF; "></</span><span style="color: #800000; ">configuration</span><span style="color: #0000FF; ">></span>  <br /> <span style="color: #0000FF; "></</span><span style="color: #800000; ">plugin</span><span style="color: #0000FF; ">></span>  </div> <br /> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000FF; "><</span><span style="color: #800000; ">fileSet</span><span style="color: #0000FF; ">></span>  <br />         <span style="color: #008000; "><!--</span><span style="color: #008000; ">定义bin/æ–‡äšg夹被打进zipåŒ?/span><span style="color: #008000; ">--></span><br />         <span style="color: #0000FF; "><</span><span style="color: #800000; ">directory</span><span style="color: #0000FF; ">></span>${build.outputDirectory}/bin<span style="color: #0000FF; "></</span><span style="color: #800000; ">directory</span><span style="color: #0000FF; ">></span>  <br />         <span style="color: #0000FF; "><</span><span style="color: #800000; ">outputDirectory</span><span style="color: #0000FF; ">></span>bin<span style="color: #0000FF; "></</span><span style="color: #800000; ">outputDirectory</span><span style="color: #0000FF; ">></span><br />         <span style="color: #0000FF; "><</span><span style="color: #800000; ">fileMode</span><span style="color: #0000FF; ">></span>0755<span style="color: #0000FF; "></</span><span style="color: #800000; ">fileMode</span><span style="color: #0000FF; ">></span>  <br /> <span style="color: #0000FF; "></</span><span style="color: #800000; ">fileSet</span><span style="color: #0000FF; ">></span>  </div> <br /><br />maven打包加时间戳<br /><a target="_blank">https://blog.csdn.net/z410970953/article/details/50680603</a><img src ="http://www.aygfsteel.com/paulwong/aggbug/434920.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/paulwong/" target="_blank">paulwong</a> 2019-11-21 16:40 <a href="http://www.aygfsteel.com/paulwong/archive/2019/11/21/434920.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Maven打包æ—Óž¼ŒçŽ¯å¢ƒå˜é‡æ›¿æ¢,òq¶è§£å†³spring-boot™å¹ç›®ä¸?{}无效的问é¢?/title><link>http://www.aygfsteel.com/paulwong/archive/2019/11/20/434918.html</link><dc:creator>paulwong</dc:creator><author>paulwong</author><pubDate>Wed, 20 Nov 2019 08:12:00 GMT</pubDate><guid>http://www.aygfsteel.com/paulwong/archive/2019/11/20/434918.html</guid><wfw:comment>http://www.aygfsteel.com/paulwong/comments/434918.html</wfw:comment><comments>http://www.aygfsteel.com/paulwong/archive/2019/11/20/434918.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/paulwong/comments/commentRss/434918.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/paulwong/services/trackbacks/434918.html</trackback:ping><description><![CDATA[<a target="_blank">https://www.jianshu.com/p/cf3bd9ddfe6f</a><br /><br /><img src ="http://www.aygfsteel.com/paulwong/aggbug/434918.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/paulwong/" target="_blank">paulwong</a> 2019-11-20 16:12 <a href="http://www.aygfsteel.com/paulwong/archive/2019/11/20/434918.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MAVEN中SCOPE为SYSTEMçš„JAR包如何打包?http://www.aygfsteel.com/paulwong/archive/2019/08/27/434509.htmlpaulwongpaulwongTue, 27 Aug 2019 09:32:00 GMThttp://www.aygfsteel.com/paulwong/archive/2019/08/27/434509.htmlhttp://www.aygfsteel.com/paulwong/comments/434509.htmlhttp://www.aygfsteel.com/paulwong/archive/2019/08/27/434509.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/434509.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/434509.htmlhttps://stackoverflow.com/questions/2065928/maven-2-assembly-with-dependencies-jar-under-scope-system-not-included

在pom.xml中加入REPOSITRYåQ?br />
<repositories>
  <repository>
    <id>my</id>
    <url>file://${basedir}/my-repo</url>
  </repository>
</repositories>

file://${basedir}/my-repo ä¸­æ”¾JAR包的¾l“构要和MAVENåº?m2中保持一致ã€?br />
DEPENDENCY˜q˜æ˜¯æŒ‰æ­£å¸¸çš„æ¥ï¼Œä¸åŠ SYSTEM SCOPEåQ?br />
<dependency>
  <groupId>sourceforge.jchart2d</groupId>
  <artifactId>jchart2d</artifactId>
  <version>3.1.0</version>
</dependency>


˜q™é‡Œæ¶‰åŠåˆîC¸€ä¸ªé—®é¢˜ï¼šå¦‚何ž®†JAR比较优雅地放到file://${basedir}/my-repo ä¸­ï¼Œå¯ä»¥ä½¿ç”¨deployåQŒå¦‚æžœJAR包不是由MAVEN打出来的åQŒå‘½ä»¤å¦‚下:
mvn deploy:deploy-file 
-DgroupId={yourProject} \ 
-DartifactId={yourProject}\
-Dfile={yourFile}\ // jar åŒ…èµ\å¾?br /> -Durl={URL} \// ¿UæœURL
-DrepositoryId=releases\
-Dpackaging=jar\ // æŒ‡å®šæ ¼å¼åQŒå¦‚果不写,一å?nbsp;pom æ–‡äšgä¸?br /> -DpomFile=pom.xml // æŒ‡å®šè¯?nbsp;jar åŒ…çš„ pom æ–‡äšgåQŒå¦‚不指定,ž®†ç”Ÿæˆä¸€ä¸ªé»˜è®¤çš„ pom——坯D‡´ä¸å¯ç”?/div>
如果JAR包是由MAVEN打出来的åQŒå‘½ä»¤å¦‚下:
mvn deploy:deploy-file 
-Dfile={yourFile}\ // jar åŒ…èµ\å¾?br /> -Durl=file://${basedir}/my-repo
-DpomFile=pom.xml // æŒ‡å®šè¯?nbsp;jar åŒ…çš„ pom æ–‡äšgåQŒå¦‚不指定,ž®†ç”Ÿæˆä¸€ä¸ªé»˜è®¤çš„ pom——坯D‡´ä¸å¯ç”?/div>
MAVEN DEPLOY PLUGINåQ?br />
<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-deploy-plugin</artifactId>
   <version>2.8.2</version>
   <executions>
      <execution>
         <id>default-cli</id>
         <phase>package</phase>
         <goals>
            <goal>deploy-file</goal>
         </goals>
         <configuration>
            <file>target/COMPOSANT-A-1.0.tar.gz</file>
            <repositoryId>nexus</repositoryId>
            <groupId>COMPOSANTS</groupId>
            <artifactId>COMPOSANT-A</artifactId>
            <version>1.0</version>
            <generatePom>false</generatePom>
            <packaging>tar.gz</packaging>
            <url>http://urlRepo:8080/nexus/content/repositories/snapshots</url>
         </configuration>
      </execution>
   </executions>
</plugin>


]]>Maven安装jaræ–‡äšg到本åœîC»“åº?/title><link>http://www.aygfsteel.com/paulwong/archive/2014/07/05/415488.html</link><dc:creator>paulwong</dc:creator><author>paulwong</author><pubDate>Sat, 05 Jul 2014 14:37:00 GMT</pubDate><guid>http://www.aygfsteel.com/paulwong/archive/2014/07/05/415488.html</guid><wfw:comment>http://www.aygfsteel.com/paulwong/comments/415488.html</wfw:comment><comments>http://www.aygfsteel.com/paulwong/archive/2014/07/05/415488.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/paulwong/comments/commentRss/415488.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/paulwong/services/trackbacks/415488.html</trackback:ping><description><![CDATA[在项目开发期间难免遇遭ä‹É用的jar包在Maven的中央仓库里没有åQŒæ¯”如那个固执的OracleåQŒè¿™å®¶ä¼™å§‹ç»ˆä¸æ„¿æ„æŠŠojdbc驱动提交到Maven仓库åQŒè¿™ä»¶äº‹å¾ˆéƒé—øP¼ŒMaven又不支持引入本地jaræ–‡äšg如果用IDEå¼ø™¡Œå¼•入在Maven¾~–译的时候又无法通过ã€?br /><br />Maven官方提供导入本地jaræ–‡äšg到本åœîC»“库的maven-install-pluginåQŒå¯æ˜¯è¦ç”¨çš„æ—¶å€™åˆå¾—苦逼的åŽÀL‰¾å‘½ä×oåQŒç”¨èµäh¥ä¹Ÿæ¯”较麻烦,因此åQŒæœ¬æ–‡è¯¦¾l†ä»‹¾lä¸€ä¸‹maven-install-plugin插äšgçš„ä‹É用,可以导入ä»ÀL„æ•°é‡çš„jaræ–‡äšg到本åœîC»“库,是不是很开心那åQ?br /><br /><span style="color: #0000ff;"><strong>配置POM</strong></span><br />Maven插äšgmaven-install-plugin<br /><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; "><</span><span style="color: #800000; ">plugin</span><span style="color: #0000FF; ">></span><br />    <span style="color: #0000FF; "><</span><span style="color: #800000; ">artifactId</span><span style="color: #0000FF; ">></span>maven-install-plugin<span style="color: #0000FF; "></</span><span style="color: #800000; ">artifactId</span><span style="color: #0000FF; ">></span><br />    <span style="color: #0000FF; "><</span><span style="color: #800000; ">version</span><span style="color: #0000FF; ">></span>2.4<span style="color: #0000FF; "></</span><span style="color: #800000; ">version</span><span style="color: #0000FF; ">></span><br />    <span style="color: #0000FF; "><</span><span style="color: #800000; ">inherited</span><span style="color: #0000FF; ">></span>false<span style="color: #0000FF; "></</span><span style="color: #800000; ">inherited</span><span style="color: #0000FF; ">></span><br />    <span style="color: #0000FF; "><</span><span style="color: #800000; ">executions</span><span style="color: #0000FF; ">></span><br />        <span style="color: #0000FF; "><</span><span style="color: #800000; ">execution</span><span style="color: #0000FF; ">></span><br />            <span style="color: #0000FF; "><</span><span style="color: #800000; ">id</span><span style="color: #0000FF; ">></span>install-artifacts.1<span style="color: #0000FF; "></</span><span style="color: #800000; ">id</span><span style="color: #0000FF; ">></span><br />            <span style="color: #0000FF; "><</span><span style="color: #800000; ">goals</span><span style="color: #0000FF; ">></span><br />                <span style="color: #0000FF; "><</span><span style="color: #800000; ">goal</span><span style="color: #0000FF; ">></span>install-file<span style="color: #0000FF; "></</span><span style="color: #800000; ">goal</span><span style="color: #0000FF; ">></span><br />            <span style="color: #0000FF; "></</span><span style="color: #800000; ">goals</span><span style="color: #0000FF; ">></span><br />            <span style="color: #0000FF; "><</span><span style="color: #800000; ">phase</span><span style="color: #0000FF; ">></span>validate<span style="color: #0000FF; "></</span><span style="color: #800000; ">phase</span><span style="color: #0000FF; ">></span><br />            <span style="color: #0000FF; "><</span><span style="color: #800000; ">configuration</span><span style="color: #0000FF; ">></span><br />                <span style="color: #0000FF; "><</span><span style="color: #800000; ">file</span><span style="color: #0000FF; ">></span>${basedir}/libs/ojdbc14.jar<span style="color: #0000FF; "></</span><span style="color: #800000; ">file</span><span style="color: #0000FF; ">></span><br />                <span style="color: #0000FF; "><</span><span style="color: #800000; ">groupId</span><span style="color: #0000FF; ">></span>org.oracle<span style="color: #0000FF; "></</span><span style="color: #800000; ">groupId</span><span style="color: #0000FF; ">></span><br />                <span style="color: #0000FF; "><</span><span style="color: #800000; ">artifactId</span><span style="color: #0000FF; ">></span>oraclejdbc<span style="color: #0000FF; "></</span><span style="color: #800000; ">artifactId</span><span style="color: #0000FF; ">></span><br />                <span style="color: #0000FF; "><</span><span style="color: #800000; ">packaging</span><span style="color: #0000FF; ">></span>jar<span style="color: #0000FF; "></</span><span style="color: #800000; ">packaging</span><span style="color: #0000FF; ">></span><br />                <span style="color: #0000FF; "><</span><span style="color: #800000; ">version</span><span style="color: #0000FF; ">></span>14<span style="color: #0000FF; "></</span><span style="color: #800000; ">version</span><span style="color: #0000FF; ">></span><br />            <span style="color: #0000FF; "></</span><span style="color: #800000; ">configuration</span><span style="color: #0000FF; ">></span><br />        <span style="color: #0000FF; "></</span><span style="color: #800000; ">execution</span><span style="color: #0000FF; ">></span><br />        <span style="color: #0000FF; "><</span><span style="color: #800000; ">execution</span><span style="color: #0000FF; ">></span><br />            <span style="color: #0000FF; "><</span><span style="color: #800000; ">id</span><span style="color: #0000FF; ">></span>install-artifacts.2<span style="color: #0000FF; "></</span><span style="color: #800000; ">id</span><span style="color: #0000FF; ">></span><br />            <span style="color: #0000FF; "><</span><span style="color: #800000; ">goals</span><span style="color: #0000FF; ">></span><br />                <span style="color: #0000FF; "><</span><span style="color: #800000; ">goal</span><span style="color: #0000FF; ">></span>install-file<span style="color: #0000FF; "></</span><span style="color: #800000; ">goal</span><span style="color: #0000FF; ">></span><br />            <span style="color: #0000FF; "></</span><span style="color: #800000; ">goals</span><span style="color: #0000FF; ">></span><br />            <span style="color: #0000FF; "><</span><span style="color: #800000; ">phase</span><span style="color: #0000FF; ">></span>validate<span style="color: #0000FF; "></</span><span style="color: #800000; ">phase</span><span style="color: #0000FF; ">></span><br />            <span style="color: #0000FF; "><</span><span style="color: #800000; ">configuration</span><span style="color: #0000FF; ">></span><br />                <span style="color: #0000FF; "><</span><span style="color: #800000; ">file</span><span style="color: #0000FF; ">></span>${basedir}/libs/foundation-1.0.jar<span style="color: #0000FF; "></</span><span style="color: #800000; ">file</span><span style="color: #0000FF; ">></span><br />                <span style="color: #0000FF; "><</span><span style="color: #800000; ">groupId</span><span style="color: #0000FF; ">></span>org.bg<span style="color: #0000FF; "></</span><span style="color: #800000; ">groupId</span><span style="color: #0000FF; ">></span><br />                <span style="color: #0000FF; "><</span><span style="color: #800000; ">packaging</span><span style="color: #0000FF; ">></span>jar<span style="color: #0000FF; "></</span><span style="color: #800000; ">packaging</span><span style="color: #0000FF; ">></span><br />                <span style="color: #0000FF; "><</span><span style="color: #800000; ">artifactId</span><span style="color: #0000FF; ">></span>foundation<span style="color: #0000FF; "></</span><span style="color: #800000; ">artifactId</span><span style="color: #0000FF; ">></span><br />                <span style="color: #0000FF; "><</span><span style="color: #800000; ">version</span><span style="color: #0000FF; ">></span>1.0<span style="color: #0000FF; "></</span><span style="color: #800000; ">version</span><span style="color: #0000FF; ">></span><br />            <span style="color: #0000FF; "></</span><span style="color: #800000; ">configuration</span><span style="color: #0000FF; ">></span><br />        <span style="color: #0000FF; "></</span><span style="color: #800000; ">execution</span><span style="color: #0000FF; ">></span><br />    <span style="color: #0000FF; "></</span><span style="color: #800000; ">executions</span><span style="color: #0000FF; ">></span><br /><span style="color: #0000FF; "></</span><span style="color: #800000; ">plugin</span><span style="color: #0000FF; ">></span></div><br /><br /><strong style="color: #0000ff;">执行导入<br /></strong><br />在经˜q‡Mavençš„validate阶段时自动导入安装,在executions里指定插件的goalså’Œmavençš„phaseã€?br />直接执行命ä×o mvn install:install-file<br /><br /><strong style="color: #0000ff;">插äšg属æ€?br /></strong><br />如果要在导入时生成pomæ–‡äšgåQŒå¢žåŠ é…¾|®å±žæ€§ï¼š<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; "><</span><span style="color: #800000; ">generatePom</span><span style="color: #0000FF; ">></span>true<span style="color: #0000FF; "></</span><span style="color: #800000; ">generatePom</span><span style="color: #0000FF; ">></span></div><br />指定自己的POMæ–‡äšgåQ?br /><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; "><</span><span style="color: #800000; ">generatePom</span><span style="color: #0000FF; ">></span>false<span style="color: #0000FF; "></</span><span style="color: #800000; ">generatePom</span><span style="color: #0000FF; ">></span><br /><span style="color: #0000FF; "><</span><span style="color: #800000; ">pomFile</span><span style="color: #0000FF; ">></span>${basedir}/dependencies/someartifact-1.0.pom<span style="color: #0000FF; "></</span><span style="color: #800000; ">pomFile</span><span style="color: #0000FF; ">></span></div>如果JAR自带POMæ–‡äšg无需指定此属性,会自动安装ã€?br /><br /><a target="_blank">http://www.cnblogs.com/xguo/archive/2013/06/04/3117894.html</a><br /><br /><a target="_blank">http://www.cnblogs.com/xguo/archive/2013/06/01/3113146.html</a><br /><br />更多详细配置åQ?a target="_blank">http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html</a><br /><br />最后提½CÞZ¸€å¥ï¼Œå…¶å®žMaven生命周期中的每一个阶ŒDµéƒ½æ˜¯ä¸€ä¸ªæ’件来实现的,而且都可以单独拿出来æ ÒŽ®ä½ çš„使用需要来配置ã€?br />详细è¯ähŸ¥çœ‹http://maven.apache.org/plugins/<br />或è€?br />另一½‹‡Maven相关文章http://www.cnblogs.com/xguo/archive/2013/06/01/3113146.htmlã€?img src ="http://www.aygfsteel.com/paulwong/aggbug/415488.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/paulwong/" target="_blank">paulwong</a> 2014-07-05 22:37 <a href="http://www.aygfsteel.com/paulwong/archive/2014/07/05/415488.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SPRING中多开å?‹¹‹è¯•多环境中的资源文仉™…¾|?/title><link>http://www.aygfsteel.com/paulwong/archive/2014/03/28/411596.html</link><dc:creator>paulwong</dc:creator><author>paulwong</author><pubDate>Fri, 28 Mar 2014 02:57:00 GMT</pubDate><guid>http://www.aygfsteel.com/paulwong/archive/2014/03/28/411596.html</guid><wfw:comment>http://www.aygfsteel.com/paulwong/comments/411596.html</wfw:comment><comments>http://www.aygfsteel.com/paulwong/archive/2014/03/28/411596.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/paulwong/comments/commentRss/411596.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/paulwong/services/trackbacks/411596.html</trackback:ping><description><![CDATA[propertyæ–‡äšg有几份,å¦?br /><div>mongo_dev.properties</div><div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->#intranet<br />mongo.replicationset=10.120.141.229:27017,10.120.141.226:27017,10.120.141.228:27017<br />mongo.username=cms<br />mongo.password=cms<br /><br />mongo.dbname=cms<br />mongo.connectionsPerHost=100<br />mongo.threadsAllowedToBlockForConnectionMultiplier=4<br />mongo.maxWaitTime=1500<br />mongo.socketTimeout=1500<br />mongo.connectTimeout=1000<br />mongo.autoConnectRetry=true<br />mongo.socketKeepAlive=true<br />mongo.slaveOk=true<br /><br />mongo.debug=true<br />mongo.trace=true</div><br /><br /><div>mongo_test.properties</div><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->#internet<br />mongo.replicationset=10.120.11.221:27017,10.120.11.122:27017,10.120.11.212:27017<br />mongo.username=cms<br />mongo.password=cms<br /><br />mongo.dbname=cms<br />mongo.connectionsPerHost=100<br />mongo.threadsAllowedToBlockForConnectionMultiplier=4<br />mongo.maxWaitTime=1500<br />mongo.socketTimeout=1500<br />mongo.connectTimeout=1000<br />mongo.autoConnectRetry=true<br />mongo.socketKeepAlive=true<br />mongo.slaveOk=true<br /><br />mongo.debug=false<br />mongo.trace=false</div><br />Spring的配¾|®æ–‡ä»¶ä¸­åŠ å…¥<br /><div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; "><</span><span style="color: #800000; ">context:property-placeholder<br />        </span><span style="color: #FF0000; ">location</span><span style="color: #0000FF; ">="classpath*:/properties/mongodb/mongo_${spring.profiles.active}.properties /></span></div><br /><br /><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->#ž®†ä¸‹é¢å‚数放在JVMä¸?如果是TOMCAT则放在catalina.sh<br />#å¼€å?<br />JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=dev "<br /><br />#‹¹‹è¯•:<br />JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=test "<br /><br />#如果是ECLIPSE中启动TOMCATåQŒåˆ™åªéœ€åŠ?br />-Dspring.profiles.active=dev</div><br /><br /><br /><br /><br /><img src ="http://www.aygfsteel.com/paulwong/aggbug/411596.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/paulwong/" target="_blank">paulwong</a> 2014-03-28 10:57 <a href="http://www.aygfsteel.com/paulwong/archive/2014/03/28/411596.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>maven通过命ä×o行复制jar包的依赖包命ä»?/title><link>http://www.aygfsteel.com/paulwong/archive/2013/11/28/406936.html</link><dc:creator>paulwong</dc:creator><author>paulwong</author><pubDate>Thu, 28 Nov 2013 04:10:00 GMT</pubDate><guid>http://www.aygfsteel.com/paulwong/archive/2013/11/28/406936.html</guid><wfw:comment>http://www.aygfsteel.com/paulwong/comments/406936.html</wfw:comment><comments>http://www.aygfsteel.com/paulwong/archive/2013/11/28/406936.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/paulwong/comments/commentRss/406936.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/paulwong/services/trackbacks/406936.html</trackback:ping><description><![CDATA[从Maven仓库中导出jar包:<br /><br />˜q›å…¥å·¥ç¨‹pom.xml 所在的目录下,输入以下命ä×oåQ?br /><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->mvn dependency:copy-dependencies -DoutputDirectory=lib</div>lib为导出的目标文äšgå¤?img src ="http://www.aygfsteel.com/paulwong/aggbug/406936.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/paulwong/" target="_blank">paulwong</a> 2013-11-28 12:10 <a href="http://www.aygfsteel.com/paulwong/archive/2013/11/28/406936.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ECLIPSE+MAVEN+TOMCAT7 PLUGING+JNDIhttp://www.aygfsteel.com/paulwong/archive/2013/07/15/401578.htmlpaulwongpaulwongMon, 15 Jul 2013 05:51:00 GMThttp://www.aygfsteel.com/paulwong/archive/2013/07/15/401578.htmlhttp://www.aygfsteel.com/paulwong/comments/401578.htmlhttp://www.aygfsteel.com/paulwong/archive/2013/07/15/401578.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/401578.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/401578.html阅读全文

]]>
Run Jetty Run - Eclipse插äšghttp://www.aygfsteel.com/paulwong/archive/2012/05/22/378809.htmlpaulwongpaulwongTue, 22 May 2012 02:44:00 GMThttp://www.aygfsteel.com/paulwong/archive/2012/05/22/378809.htmlhttp://www.aygfsteel.com/paulwong/comments/378809.htmlhttp://www.aygfsteel.com/paulwong/archive/2012/05/22/378809.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/378809.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/378809.html

Introduction

Because Run-Jetty-Run(RJR) use full project classpath to run the web application, and we did some finetune job for maven by default.

So you could use RJR to run Maven web based web application WITHOUT ANY CONFIGURATION.

Simple click "Run Jetty" and then it works.

Forgot those configuration in pom.xml or WTP and save your time, use RJR to run it today.

For more details about how to run RJR, please referenced to GettingStarted and UserGuide .

Try it , you will love it. ;)


http://code.google.com/p/run-jetty-run/

]]>更改MAVEN默认使用的JDK版本http://www.aygfsteel.com/paulwong/archive/2012/02/14/369935.htmlpaulwongpaulwongTue, 14 Feb 2012 06:36:00 GMThttp://www.aygfsteel.com/paulwong/archive/2012/02/14/369935.htmlhttp://www.aygfsteel.com/paulwong/comments/369935.htmlhttp://www.aygfsteel.com/paulwong/archive/2012/02/14/369935.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/369935.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/369935.html
  <build>  
    
<plugins>  
      
<plugin>  
        
<groupId>org.apache.maven.plugins</groupId>  
        
<artifactId>maven-compiler-plugin</artifactId>  
        
<configuration>  
          
<source>1.6</source>  
          
<target>1.6</target>  
        
</configuration>  
      
</plugin>  
    
</plugins>  
</build>
再UPDATE PROJECT CONFIGURATION

]]>
使用Eclipse构徏Mavençš„SpringMVC™å¹ç›®http://www.aygfsteel.com/paulwong/archive/2012/01/29/368984.htmlpaulwongpaulwongSun, 29 Jan 2012 15:27:00 GMThttp://www.aygfsteel.com/paulwong/archive/2012/01/29/368984.htmlhttp://www.aygfsteel.com/paulwong/comments/368984.htmlhttp://www.aygfsteel.com/paulwong/archive/2012/01/29/368984.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/368984.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/368984.htmlhttp://limingnihao.iteye.com/blog/830409



]]>
Watij and Mavenhttp://www.aygfsteel.com/paulwong/archive/2012/01/03/367792.htmlpaulwongpaulwongTue, 03 Jan 2012 14:08:00 GMThttp://www.aygfsteel.com/paulwong/archive/2012/01/03/367792.htmlhttp://www.aygfsteel.com/paulwong/comments/367792.htmlhttp://www.aygfsteel.com/paulwong/archive/2012/01/03/367792.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/367792.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/367792.html

First, download the waitj bundle and unzip it.

Then, use maven to manually install each dependency in the lib folder
like so:
mvn install:install-file -Dfile=webspec.jar -DartifactId=webspec -
DgroupId=watij -Dversion=1.3.1 -Dpackaging=jar

You can also do deploy:deploy-file if you want to put them into a
central maven repo.

Of course, you don't need to do this for log4j, junit, slf4j. I did
it for all the others for speed, registering them under "watij" and
version 1.3.1

Got this working in Eclipse, a simple login test case, yipee!

Here is the POM snippet for my project:

  <dependencies> 
    
<dependency> 
      
<groupId>junit</groupId> 
      
<artifactId>junit</artifactId> 
      
<version>4.8.2</version> 
      
<scope>test</scope> 
    
</dependency> 


    
<!-- WATIJ --> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>webspec</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>engine-gecko</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>engine-ie</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>engine-webkit</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>jniwrap-native</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>jxbrowser</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>MozillaGlue</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>MozillaInterfaces</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>mshtml</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>runtime</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>tuxpack</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>winpack</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>xulrunner-linux</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>xulrunner-linux64</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>xulrunner-mac</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>watij</groupId> 
      
<artifactId>xulrunner-windows</artifactId> 
      
<version>1.3.1</version> 
    
</dependency> 


    
<dependency> 
      
<groupId>log4j</groupId> 
      
<artifactId>log4j</artifactId> 
      
<version>1.2.15</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>org.slf4j</groupId> 
      
<artifactId>slf4j-api</artifactId> 
      
<version>1.5.8</version> 
    
</dependency> 
    
<dependency> 
      
<groupId>org.slf4j</groupId> 
      
<artifactId>slf4j-log4j12</artifactId> 
      
<version>1.5.8</version> 
    
</dependency> 





]]>
一个ä‹É用GUZZ+SPRINGçš„MAVEN™å¹ç›®POMæ–‡äšghttp://www.aygfsteel.com/paulwong/archive/2011/11/30/365216.htmlpaulwongpaulwongWed, 30 Nov 2011 08:18:00 GMThttp://www.aygfsteel.com/paulwong/archive/2011/11/30/365216.htmlhttp://www.aygfsteel.com/paulwong/comments/365216.htmlhttp://www.aygfsteel.com/paulwong/archive/2011/11/30/365216.html#Feedback2http://www.aygfsteel.com/paulwong/comments/commentRss/365216.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/365216.html<project ...  é˜…读全文

]]>
在Eclipse中调试Maven™å¹ç›®http://www.aygfsteel.com/paulwong/archive/2011/11/30/365210.htmlpaulwongpaulwongWed, 30 Nov 2011 08:02:00 GMThttp://www.aygfsteel.com/paulwong/archive/2011/11/30/365210.htmlhttp://www.aygfsteel.com/paulwong/comments/365210.htmlhttp://www.aygfsteel.com/paulwong/archive/2011/11/30/365210.html#Feedback2http://www.aygfsteel.com/paulwong/comments/commentRss/365210.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/365210.html下面我们ž®±æ¥é…ç½®ä¸€ä¸‹ã€?br />
  1. 首先在Run->Externel Tools->Open Externel Tools Dialog.. 打开配置对话æ¡?选中左边的Program节点,右键选择New然后再右边的配置里面输入Name信息åQŒåœ¨Main tab下的Location选择你maven可执行文件的全èµ\å¾?eg:/home/rory/apps/apache-maven-2.0.8/bin/mvn),Working Directory选择你的maven™å¹ç›®(eg:${workspace_loc:/guice-example}),Arguments里输入jetty:run。然后再切换到Environment tab。New 一下变é‡?nameæ˜?br /> 
    MAVEN_OPTS

    value�
    -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8080,server=y,suspend=y

    okåQŒè¿™ä¸€æ­¥è®¾¾|®å®Œæ¯•,Apply一下,close关闭

  2. 接下来添加一个Debug,打开Run->Open Debug Dialog..打开Debug Dialog½H—口,选中左边的Remote Java Application,右键New输入nameåQŒProject里选中要Debug的项目Connection Properties里的Host里设¾|®æˆlocalhost,Port讄¡½®æˆä¸Šé¢é…¾|®çš„8080(˜q™é‡Œè¦å¡«JETTY默认启动的端å?然后Apply一下就ok了ã€?

  3. 接下来就可以开始调试了。首先启动第一步配¾|®çš„Externel Tools配置åQŒç„¶åŽå†˜qè¡Œ½W¬äºŒæ­¥é…¾|®çš„Debug.ž®±å¯ä»¥çœ‹åˆ°æŽ§åˆ¶å°æœ‰mvn jetty:run的输å‡ÞZº†ã€‚接下来ž®±å¼€å¦‚Debugä½ çš„™å¹ç›®å§ã€?)


]]>
实践åQšæ­å»ºåŸºäºŽmavençš„Java EE协同开发环å¢?http://www.aygfsteel.com/paulwong/archive/2011/11/30/365155.htmlpaulwongpaulwongTue, 29 Nov 2011 16:15:00 GMThttp://www.aygfsteel.com/paulwong/archive/2011/11/30/365155.htmlhttp://www.aygfsteel.com/paulwong/comments/365155.htmlhttp://www.aygfsteel.com/paulwong/archive/2011/11/30/365155.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/365155.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/365155.htmlhttp://dearshor.iteye.com/blog/272274

]]>
Maven常用Settings.xmlhttp://www.aygfsteel.com/paulwong/archive/2011/10/30/362330.htmlpaulwongpaulwongSun, 30 Oct 2011 12:57:00 GMThttp://www.aygfsteel.com/paulwong/archive/2011/10/30/362330.htmlhttp://www.aygfsteel.com/paulwong/comments/362330.htmlhttp://www.aygfsteel.com/paulwong/archive/2011/10/30/362330.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/362330.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/362330.html<?xml version="1.0" encoding="UTF-8"?> 
<settings> 
    
<servers> 
        
<server> 
            
<id>tomcat</id> 
            
<username>tomcat</username> 
            
<password>tomcat</password> 
            
<privateKey>${usr.home}/.ssh/id_dsa</privateKey>   
            
<passphrase>some_passphrase</passphrase>   
            
<filePermissions>664</filePermissions>   
            
<directoryPermissions>775</directoryPermissions>   
            
<configuration></configuration>   
        
</server> 
        
<server> 
            
<id>tomcat2</id> 
            
<username>tomcat2</username> 
            
<password>tomcat2</password> 
        
</server> 
    
</servers> 
    
<profiles> 
        
<profile> 
         
<id>default</id> 
           
<activation>   
        
<activeByDefault>false</activeByDefault>   
        
<jdk>1.6.0_24</jdk>   
        
<os>   
          
<name>windows 7</name>   
          
<family>windows</family>   
          
<arch>x86</arch>   
          
<version>6.1</version>   
        
</os>   
        
<property>   
          
<name>mavenVersion</name>   
          
<value>2.2.1</value>   
        
</property>   
        
<file>   
          
<exists>${basedir}/file2.properties</exists>   
          
<missing>${basedir}/file1.properties</missing>   
        
</file>   
      
</activation> 
            
<repositories> 
                
<repository> 
                    
<id>spring-maven-release</id> 
                    
<name>Spring Maven Release Repository</name> 
                    
<url>http://maven.springframework.org/release</url> 
                
</repository> 
                
<repository> 
                    
<id>spring-maven-milestone</id> 
                    
<name>Spring Maven Milestone Repository</name> 
                    
<url>http://maven.springframework.org/milestone</url> 
                
</repository> 
                
<repository> 
                    
<id>JBoss Repo</id> 
                    
<url>https://repository.jboss.org/nexus/content/repositories/releases</url> 
                    
<name>JBoss Repo</name> 
                
</repository> 
                
<repository> 
                    
<snapshots> 
                        
<enabled>false</enabled> 
                    
</snapshots> 
                    
<id>jboss repo</id> 
                    
<url>https://repository.jboss.org/nexus/content/groups/public/</url> 
                
</repository> 
                
<repository> 
                    
<snapshots> 
                        
<enabled>true</enabled> 
                    
</snapshots> 
                    
<id>JBoss Repo shapshots</id> 
                    
<url> https://repository.jboss.org/nexus/content/repositories/snapshots</url> 
                    
<name>JBoss Repo</name> 
                
</repository> 
                
<repository> 
      
<id>snapshots.jboss.org</id> 
      
<name>JBoss Snapshot Repository</name> 
      
<url>http://snapshots.jboss.org/maven2</url> 
      
<releases> 
        
<enabled>false</enabled> 
      
</releases> 
      
<snapshots> 
        
<enabled>true</enabled> 
      
</snapshots> 
    
</repository> 
                
<repository> 
                    
<snapshots> 
                        
<enabled>false</enabled> 
                    
</snapshots> 
                    
<id>Jolbox BoneCP</id> 
                    
<url>http://jolbox.com/bonecp/downloads/maven</url> 
                
</repository> 
            
</repositories> 
            
<pluginRepositories/> 
        
</profile> 
    
</profiles> 


</settings> 


]]>
Ö÷Õ¾Ö©Öë³ØÄ£°å£º Î÷°²ÊÐ| ÒË·áÏØ| ÌúÁëÏØ| Îå·å| ƽÀûÏØ| ººÖÐÊÐ| ÅíÖÝÊÐ| ½çÊ×ÊÐ| ½¶ÁëÏØ| ¶î¼ÃÄÉÆì| ÐÅÒËÊÐ| ¶«¸ÛÊÐ| ÓñÁÖÊÐ| ½ð²ýÊÐ| ÀÖÍ¤ÏØ| ×óÔÆÏØ| ÁøÁÖÏØ| ÇìÔÆÏØ| È·É½ÏØ| ÇàÍ­Ï¿ÊÐ| ÄôÈÙÏØ| ÇçÂ¡ÏØ| ÁÙä¬ÏØ| ãë´¨ÏØ| ¹ðÑôÏØ| ¸ùºÓÊÐ| ÌÒÔ°ÊÐ| ¶«°²ÏØ| Ñô¸ßÏØ| ÈýÑÇÊÐ| ¿ÑÀûÏØ| ÓÀÈÊÏØ| ¸·ÑôÊÐ| µÀÕæ| ÉØ¹ØÊÐ| ¿ûÇàÇø| ÄÏ¿µÊÐ| ƽ½­ÏØ| ÈôÇ¼ÏØ| Éñ³ØÏØ| ¾²°²Çø|