This page describes how to add JxBrowser to a Maven-based project.
Repository
In order to obtain JxBrowser JAR files using Maven you need to add the following code to the repositories section of your pom.xml file:
<repository>
<id>com.teamdev</id>
<url>http://maven.teamdev.com/repository/products</url>
</repository>
Dependencies
Cross-Platform
If your project runs on Windows, macOS, and Linux, please add the following code to the dependencies section of your pom.xml file:
<dependency>
<groupId>com.teamdev.jxbrowser</groupId>
<artifactId>jxbrowser-cross-platform</artifactId>
<version>6.24.3</version>
<type>pom</type>
</dependency>
Platform-Specific
If you need JxBrowser JAR files only for a specific platform, you can use the appropriate dependency as described below.
If your Java application runs only on Windows and macOS platforms, and you do not need Linux dependency, you can include only Windows and macOS dependencies.
Windows 32-bit
<dependency>
<groupId>com.teamdev.jxbrowser</groupId>
<artifactId>jxbrowser-win32</artifactId>
<version>6.24.3</version>
</dependency>
Windows 64-bit
<dependency>
<groupId>com.teamdev.jxbrowser</groupId>
<artifactId>jxbrowser-win64</artifactId>
<version>6.24.3</version>
</dependency>
macOS 64-bit
<dependency>
<groupId>com.teamdev.jxbrowser</groupId>
<artifactId>jxbrowser-mac</artifactId>
<version>6.24.3</version>
</dependency>
Linux 64-bit
<dependency>
<groupId>com.teamdev.jxbrowser</groupId>
<artifactId>jxbrowser-linux64</artifactId>
<version>6.24.3</version>
</dependency>