锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩一区二区三区xxxx,中文字幕中文字幕中文字幕亚洲无线,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

paulwong 2021-05-21 09:58 鍙戣〃璇勮
]]>
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鐨勭増鏈彿錛屼絾浠嶮AVEN3.5涔嬪悗錛屽彲浠ョ敤鍙橀噺琛ㄧず浜嗭細

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

paulwong 2020-12-16 09:48 鍙戣〃璇勮
]]>
MAVEN縐佹湇銆丏OCKER縐佹湇銆丯PM縐佹湇錛屼笓娌誨悇縐嶇鏈?/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鎼緩縐佹湁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錛屽湪姝ゆ枃浠惰鐩栵細
<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>




paulwong 2020-09-23 17:01 鍙戣〃璇勮
]]>
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



paulwong 2020-04-06 14:13 鍙戣〃璇勮
]]>
MAVEN縐佹湇-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.



paulwong 2020-04-06 14:08 鍙戣〃璇勮
]]>
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[閫氬父閰嶇疆鏂囦歡鏄斁鍦╯rc/main/resources涓嬶紝build瀹屼箣鍚庝細鏀懼湪classes鏂囦歡澶逛笅錛屾渶緇堜細鎵撹繘jar鍖呬腑銆?br /> <br /> 濡傛灉鏄疭PRING BOOT宸ョ▼錛岄儴緗叉椂錛岃姹傞厤緗枃浠朵笉鎵撹繘jar鍖呬腑錛岃鏈塻h鍚姩鍛戒護鏂囦歡錛屾渶緇堜駭鐢熶竴涓猌IP鍖咃紝鍖呭惈鎵鏈夐渶瑕佺殑涓滆タ銆傝繖鏃跺氨闇瑕佸杽鐢∕AVEN鐨剅esource鎻掍歡銆乤ssembly鎻掍歡鍜宩ar鎻掍歡浜嗐?br /> <br /> resource鎻掍歡鑳介噸瀹氫箟閰嶇疆鏂囦歡鍦╫utput鏃剁殑鏂囦歡澶硅礬寰勶紝鐢╬rofile鐨勫彉閲忓兼浛鎹㈤厤緗枃浠朵腑鐨勫崰浣嶇銆?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 />--><properties><br />        <resource.delimiter>${}</resource.delimiter><br />    </properties></div><br /><br /> jar鎻掍歡鑳芥帓闄ょ敓鎴愬湪classes鏂囦歡澶逛腑涓嶈鐨勬枃浠惰鎵撹繘jar鍖呬腑銆?br /> <br /> assembly鎻掍歡鑳藉畾涔塟IP鍖呬腑闇瑕佸寘鍚摢浜涙枃浠躲?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; ">琛ㄦ槑姝ゆ枃浠跺す涓鏈夊崰浣嶇錛屽垯浼氬彇pom涓殑profile涓殑鍊間唬鏇?/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/鏂囦歡澶逛笉浼氳鎵撹繘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/鏂囦歡澶硅鎵撹繘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鎵撳寘鏃訛紝鐜鍙橀噺鏇挎崲,騫惰В鍐硈pring-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涓璖COPE涓篠YSTEM鐨凧AR鍖呭浣曟墦鍖咃紵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

鍦╬om.xml涓姞鍏EPOSITRY錛?br />
<repositories>
  <repository>
    <id>my</id>
    <url>file://${basedir}/my-repo</url>
  </repository>
</repositories>

file://${basedir}/my-repo 涓斁JAR鍖呯殑緇撴瀯瑕佸拰MAVEN搴?m2涓繚鎸佷竴鑷淬?br />
DEPENDENCY榪樻槸鎸夋甯哥殑鏉ワ紝涓嶅姞SYSTEM SCOPE錛?br />
<dependency>
  <groupId>sourceforge.jchart2d</groupId>
  <artifactId>jchart2d</artifactId>
  <version>3.1.0</version>
</dependency>


榪欓噷娑夊強鍒頒竴涓棶棰橈細濡備綍灝咼AR姣旇緝浼橀泤鍦版斁鍒癴ile://${basedir}/my-repo 涓紝鍙互浣跨敤deploy錛屽鏋淛AR鍖呬笉鏄敱MAVEN鎵撳嚭鏉ョ殑錛屽懡浠ゅ涓嬶細
mvn deploy:deploy-file 
-DgroupId={yourProject} \ 
-DartifactId={yourProject}\
-Dfile={yourFile}\ // jar 鍖呰礬寰?br /> -Durl={URL} \// 縐佹湇URL
-DrepositoryId=releases\
-Dpackaging=jar\ // 鎸囧畾鏍煎紡錛屽鏋滀笉鍐欙紝涓鍙?nbsp;pom 鏂囦歡涓?br /> -DpomFile=pom.xml // 鎸囧畾璇?nbsp;jar 鍖呯殑 pom 鏂囦歡錛屽涓嶆寚瀹氾紝灝嗙敓鎴愪竴涓粯璁ょ殑 pom——瀵艱嚧涓嶅彲鐢?/div>
濡傛灉JAR鍖呮槸鐢盡AVEN鎵撳嚭鏉ョ殑錛屽懡浠ゅ涓嬶細
mvn deploy:deploy-file 
-Dfile={yourFile}\ // jar 鍖呰礬寰?br /> -Durl=file://${basedir}/my-repo
-DpomFile=pom.xml // 鎸囧畾璇?nbsp;jar 鍖呯殑 pom 鏂囦歡錛屽涓嶆寚瀹氾紝灝嗙敓鎴愪竴涓粯璁ょ殑 pom——瀵艱嚧涓嶅彲鐢?/div>
MAVEN DEPLOY PLUGIN錛?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>


paulwong 2019-08-27 17:32 鍙戣〃璇勮
]]>Maven瀹夎jar鏂囦歡鍒版湰鍦頒粨搴?/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鐨勪腑澶粨搴撻噷娌℃湁錛屾瘮濡傞偅涓浐鎵х殑Oracle錛岃繖瀹朵紮濮嬬粓涓嶆効鎰忔妸ojdbc椹卞姩鎻愪氦鍒癕aven浠撳簱錛岃繖浠朵簨寰堥儊闂鳳紝Maven鍙堜笉鏀寔寮曞叆鏈湴jar鏂囦歡濡傛灉鐢↖DE寮鴻寮曞叆鍦∕aven緙栬瘧鐨勬椂鍊欏張鏃犳硶閫氳繃銆?br /><br />Maven瀹樻柟鎻愪緵瀵煎叆鏈湴jar鏂囦歡鍒版湰鍦頒粨搴撶殑maven-install-plugin錛屽彲鏄鐢ㄧ殑鏃跺欏張寰楄嫤閫肩殑鍘繪壘鍛戒護錛岀敤璧鋒潵涔熸瘮杈冮夯鐑︼紝鍥犳錛屾湰鏂囪緇嗕粙緇嶄竴涓媘aven-install-plugin鎻掍歡鐨勪嬌鐢紝鍙互瀵煎叆浠繪剰鏁伴噺鐨刯ar鏂囦歡鍒版湰鍦頒粨搴擄紝鏄笉鏄緢寮蹇冮偅錛?br /><br /><span style="color: #0000ff;"><strong>閰嶇疆POM</strong></span><br />Maven鎻掍歡maven-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 />鍦ㄧ粡榪嘙aven鐨剉alidate闃舵鏃惰嚜鍔ㄥ鍏ュ畨瑁咃紝鍦╡xecutions閲屾寚瀹氭彃浠剁殑goals鍜宮aven鐨刾hase銆?br />鐩存帴鎵ц鍛戒護 mvn install:install-file<br /><br /><strong style="color: #0000ff;">鎻掍歡灞炴?br /></strong><br />濡傛灉瑕佸湪瀵煎叆鏃剁敓鎴恜om鏂囦歡錛屽鍔犻厤緗睘鎬э細<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 />鎸囧畾鑷繁鐨凱OM鏂囦歡錛?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鏂囦歡鏃犻渶鎸囧畾姝ゅ睘鎬э紝浼氳嚜鍔ㄥ畨瑁呫?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 />鏇村璇︾粏閰嶇疆錛?a target="_blank">http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html</a><br /><br />鏈鍚庢彁紺轟竴鍙ワ紝鍏跺疄Maven鐢熷懡鍛ㄦ湡涓殑姣忎竴涓樁孌甸兘鏄竴涓彃浠舵潵瀹炵幇鐨勶紝鑰屼笖閮藉彲浠ュ崟鐙嬁鍑烘潵鏍規嵁浣犵殑浣跨敤闇瑕佹潵閰嶇疆銆?br />璇︾粏璇鋒煡鐪媓ttp://maven.apache.org/plugins/<br />鎴栬?br />鍙︿竴綃嘙aven鐩稿叧鏂囩珷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鏂囦歡鏈夊嚑浠斤紝濡?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 />-->#灝嗕笅闈㈠弬鏁版斁鍦↗VM涓?濡傛灉鏄疶OMCAT鍒欐斁鍦╟atalina.sh<br />#寮鍙?<br />JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=dev "<br /><br />#嫻嬭瘯:<br />JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=test "<br /><br />#濡傛灉鏄疎CLIPSE涓惎鍔═OMCAT錛屽垯鍙渶鍔?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閫氳繃鍛戒護琛屽鍒秊ar鍖呯殑渚濊禆鍖呭懡浠?/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[浠嶮aven浠撳簱涓鍑簀ar鍖咃細<br /><br />榪涘叆宸ョ▼pom.xml 鎵鍦ㄧ殑鐩綍涓嬶紝杈撳叆浠ヤ笅鍛戒護錛?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涓哄鍑虹殑鐩爣鏂囦歡澶?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闃呰鍏ㄦ枃

paulwong 2013-07-15 13:51 鍙戣〃璇勮
]]>
Run Jetty Run - Eclipse鎻掍歡http://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/

paulwong 2012-05-22 10:44 鍙戣〃璇勮
]]>鏇存敼MAVEN榛樿浣跨敤鐨凧DK鐗堟湰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>
鍐峌PDATE PROJECT CONFIGURATION

paulwong 2012-02-14 14:36 鍙戣〃璇勮
]]>
浣跨敤Eclipse鏋勫緩Maven鐨凷pringMVC欏圭洰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



paulwong 2012-01-29 23:27 鍙戣〃璇勮
]]>
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> 





paulwong 2012-01-03 22:08 鍙戣〃璇勮
]]>
涓涓嬌鐢℅UZZ+SPRING鐨凪AVEN欏圭洰POM鏂囦歡http://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 ...  闃呰鍏ㄦ枃

paulwong 2011-11-30 16:18 鍙戣〃璇勮
]]>
鍦‥clipse涓皟璇昅aven欏圭洰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. 棣栧厛鍦≧un->Externel Tools->Open Externel Tools Dialog.. 鎵撳紑閰嶇疆瀵硅瘽妗?閫変腑宸﹁竟鐨凱rogram鑺傜偣,鍙抽敭閫夋嫨New鐒跺悗鍐嶅彸杈圭殑閰嶇疆閲岄潰杈撳叆Name淇℃伅錛屽湪Main tab涓嬬殑Location閫夋嫨浣爉aven鍙墽琛屾枃浠剁殑鍏ㄨ礬寰?eg:/home/rory/apps/apache-maven-2.0.8/bin/mvn),Working Directory閫夋嫨浣犵殑maven欏圭洰(eg:${workspace_loc:/guice-example}),Arguments閲岃緭鍏etty:run銆傜劧鍚庡啀鍒囨崲鍒癊nvironment tab銆侼ew 涓涓嬪彉閲?name鏄?br /> 
    MAVEN_OPTS

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

    ok錛岃繖涓姝ヨ緗畬姣曪紝Apply涓涓嬶紝close鍏抽棴

  2. 鎺ヤ笅鏉ユ坊鍔犱竴涓狣ebug,鎵撳紑Run->Open Debug Dialog..鎵撳紑Debug Dialog紿楀彛,閫変腑宸﹁竟鐨凴emote Java Application,鍙抽敭New杈撳叆name錛孭roject閲岄変腑瑕丏ebug鐨勯」鐩瓹onnection Properties閲岀殑Host閲岃緗垚localhost,Port璁劇疆鎴愪笂闈㈤厤緗殑8080(榪欓噷瑕佸~JETTY榛樿鍚姩鐨勭鍙?鐒跺悗Apply涓涓嬪氨ok浜嗐?

  3. 鎺ヤ笅鏉ュ氨鍙互寮濮嬭皟璇曚簡銆傞鍏堝惎鍔ㄧ涓姝ラ厤緗殑Externel Tools閰嶇疆錛岀劧鍚庡啀榪愯絎簩姝ラ厤緗殑Debug.灝卞彲浠ョ湅鍒版帶鍒跺彴鏈塵vn jetty:run鐨勮緭鍑轟簡銆傛帴涓嬫潵灝卞紑濡侱ebug浣犵殑欏圭洰鍚с?)


paulwong 2011-11-30 16:02 鍙戣〃璇勮
]]>
瀹炶返錛氭惌寤哄熀浜巑aven鐨凧ava 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

paulwong 2011-11-30 00:15 鍙戣〃璇勮
]]>
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> 


paulwong 2011-10-30 20:57 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 灵丘县| 新建县| 唐河县| 博罗县| 汕尾市| 田林县| 如皋市| 昂仁县| 德安县| 东乌| 观塘区| 禹州市| 包头市| 道真| 德安县| 上蔡县| 岳池县| 宽甸| 错那县| 墨江| 彭阳县| 肃宁县| 五原县| 高平市| 大港区| 昂仁县| 德阳市| 开平市| 台北县| 长葛市| 卢龙县| 衡南县| 隆回县| 类乌齐县| 浮山县| 阳春市| 广安市| 特克斯县| 乌拉特后旗| 徐汇区| 台山市|