Install Axe DevTools for Web for Java from a Bundle
Install Axe DevTools for Web for Java from a downloadable bundle using Maven
Installing Axe DevTools for Web as a bundle is the simplest way to add it to an existing software project. Bundles can be downloaded from this page or may be distributed directly by your Deque representative. For information on how to install from your artifact repository or Deque's artifact repository, read one of those articles.
Prerequisites
This bundled package requires an existing Java web project to integrate with, as well as a Selenium browser driver binary for your target browser (such as ChromeDriver or GeckoDriver). Depending on your testing setup, your testing framework may still be required as an additional dependency.
Install With Maven
To add the bundle to your project using Maven, first install the JAR into your local Maven repository. Replace $path-to-file with the file path to the bundle in your local environment, $binding with either selenium, hamcrest, or cucumber depending on your testing setup, and $version with your version.
Install only one bundle that matches your testing framework. Installing more than one bundle will cause errors.
mvn install:install-file \
-Dfile="$path-to-file/$binding-$version-jar-with-dependencies.jar" \
-DgroupId=com.deque.html.axe-devtools \
-DartifactId=$binding \
-Dversion=$version \
-Dpackaging=jar \
-Dclassifier=jar-with-dependencies \
-DgeneratePom=trueThen, also in pom.xml, add the bundle as a dependency object under the <dependencies> object. Replace $binding with either selenium, hamcrest, or cucumber depending on your testing setup, and replace $version with your version.
<dependency>
<groupId>com.deque.html.axe-devtools</groupId>
<artifactId>$binding</artifactId>
<version>$version</version>
<classifier>jar-with-dependencies</classifier>
<scope>test</scope>
</dependency>For some testing frameworks, you will have to add a dependency for the framework as well. As an example, JUnit is shown. Replace $version with your desired version of JUnit. For frameworks other than JUnit, see the testing framework's documentation.
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>$version</version>
<scope>test</scope>
</dependency>In order to test whether maven is able to access and install these dependencies, run the command mvn install from the command line in the same directory as your pom.xml file.
Next Steps
Once Axe DevTools has been successfully installed in your environment, read the guide on importing and initializing.
Troubleshooting
If issues installing the bundled package persist, contact your Deque representative directly, reach us via our support desk, or send us an email. We'll be happy to help.
