Watij and Maven

670 views
Skip to first unread message

pcleary00

unread,
Sep 16, 2011, 11:21:57 AM9/16/11
to watij
Anyone have a way to pull in Waitj using Maven?

pcleary00

unread,
Sep 16, 2011, 6:15:43 PM9/16/11
to watij
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>

alwex

unread,
Oct 14, 2011, 10:04:07 AM10/14/11
to watij
Hi,

Done the same on my side.

It would be very appreciated if watij (webspec) became available
through a maven repository.
Reply all
Reply to author
Forward
0 new messages