How Do I Use Maven to Install Windward Java Engine in my Application?
Windward's Java Report Engine is updated for each general release with its current code packaged in the Maven repository. This allows you to easily add the Windward Java Report Engine to your project without the need to coding a build script for the Windward libraries. We know many of you use Maven and the request was heard loud and clear. Follow the instructions below to easily add the Windward Java Report Engine to your Java application and get started generating your reports in no time!
To learn more about Maven a good overview is posted here.
In order to take advantage of the Maven project management and comprehension tool there are a few things you will need
- Jave SE JDK 8 (the JRE package is not enough).
- Apache Maven
Add the Windward version dependency to your Java project pom.xml file
- Reference Windward by adding the the "repositories" and "dependencies" sections below:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>Example</groupId> <artifactId>SampleProject</artifactId> <version>1.0</version> <repositories> <repository> <id>windward-maven-repo</id> <name>windward-maven-repo</name> <url>https://windward.mycloudrepo.io/public/repositories/windward-group</url> </repository> </repositories> <dependencies> <dependency> <groupId>net.windward</groupId> <artifactId>WindwardReports</artifactId> <version>VERSION_NUMBER</version> </dependency> </dependencies> </project>
- Replace VERSION_NUMBER with the version of the Windward Java Engine you want to use. (Example: 184.108.40.206)
If you have Maven mirrors defined in your settings.xml then you'll also need to set your mirror to mirror our repository as well.
To improve the reliability and security of our Maven repository, we moved the repository to a new host.
Before version 16.7 of Java Report Engine, the URL for the Maven repository was:
... <url>http://maven-repository.windward.net/artifactory/libs-release-local</url> ...
To ensure backward compatibility, we implemented URL redirects so this URL still works. Though, this URL should be updated to access the repository directly.