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.