• Recent
    • Tags
    • Popular
    • Register
    • Login

    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.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Modbus4J 2.0.2 and Maven, How it works?

    Modbus4J general discussion
    1
    3
    3.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ramonhlR
      ramonhl
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • ramonhlR
        ramonhl
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post