If you use Apache Maven for your project, it's very easy to start using UADetector, because all artifacts are in The Central Repository . This repository is used by default to search for libraries.
Just add the following dependency to your Project Object Model (POM). You know, the file called pom.xml .
- <project>
- ...
- <dependencies>
- ...
- <dependency>
- <groupId>net.sf.uadetector</groupId>
- <artifactId>uadetector-resources</artifactId>
- <version>2014.04</version>
- </dependency>
- ...
- </dependencies>
- ...
- </project>
Maven will now transitively resolve the dependencies to the core module , resources module and SLF4J . Now you're good to go with the next example: Usage in a Servlet .