Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Modbus4J 2.0.2 and Maven, How it works?
-
Hello.
I am using the last version of Modbus4J 2.0.2, converted to use Maven for dependency management.
In my first Modbus4J project (1 year ago), I only add the different *.jar to my project and it works fine. (modbus4J.jar, seroUtils.jar, RXTXcomm.jar)
But now I can not do it, if I add the new jar on my project I can see a lot of build errors, regarding for apache libs...
I am using Eclipse and I installed the maven plugin but I do not know how I can insert the libraries in my project.Do you know How Can I build and test the files of com.serotonin.modbus4j.test of Modbus4J 2.0.2? (MasterTest.java, ListenerTest.java...)
And How Can I integrate the new Modbus4J libraries on my project?Thanks in advance,
Best regards.
-
Problem solved.
In the pom.xml file I can see the libraries that we need.
I can find these libraries in ~/.m2/repository and in modbus4j-maven-local.
I added these libraries *.jar, in my project and all works fine.