Configuring your Builds to work with ScientiaMobile’s Private Maven Repository
We are proud to announce that we have made it even easier to include the WURFL API into your Java project with the introduction of a private Maven repository!
If you are a commercial licensee of the WURFL OnSite Java API, it is as easy as adding your scientiamobile.com credentials into your settings.xml file and including WURFL as a dependency in your pom.xml file.
You will first need to define an ID using a username and password that are associated with your license on scientiamobile.com and then place that into your settings.xml in our Maven installation.
<server> <id>com.scientiamobile.wurfl</id> <username>YourUsername</username> <password>YourPassword</password> </server>
Now that your credentials have been added, you will need to add the WURFL repository in your pom.xml file:
<project> (...) <repositories> <repository> <!-- Define the ID that was added in your Maven's settings.xml --> <id>com.scientiamobile.wurfl</id> <!---You do not need to change the following lines --> <name>com.scientiamobile.wurfl</name> <url>https://maven.scientiamobile.com/repository/wurfl-onsite/</url> </repository> </repositories> </project>
Let’s also add WURFL as a dependency:
<project> (...) <dependencies> (...) <dependency> <groupId>com.scientiamobile.wurfl</groupId> <artifactId>wurfl</artifactId> <version>220.127.116.11</version> </dependency> (...) </dependencies> (...) </project>
After everything has been configured with Maven, you are now ready to build your project and get started integrating WURFL!