paulwong

          Watij and Maven

          By the way, I did this "by hand" and got it working.

          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> 



          posted on 2012-01-03 22:08 paulwong 閱讀(821) 評論(0)  編輯  收藏 所屬分類: MAVEN 、TESTIGN

          主站蜘蛛池模板: 开化县| 广元市| 宜兴市| 沙洋县| 洪江市| 麦盖提县| 太保市| 马山县| 苏州市| 京山县| 镇安县| 汉沽区| 东辽县| 响水县| 绥化市| 永靖县| 清徐县| 通化市| 石楼县| 大洼县| 柞水县| 沅陵县| 娄烦县| 双柏县| 鄱阳县| 称多县| 金乡县| 呼玛县| 徐闻县| 永清县| 宾川县| 商都县| 民权县| 伊通| 新巴尔虎右旗| 手游| 藁城市| 花莲市| 台东市| 玉龙| 玉门市|