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 阅读(703) 评论(0)  编辑  收藏 所属分类: MAVENTESTIGN


只有注册用户登录后才能发表评论。


网站导航: