• 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

    "BUILD FAILED" when build "MBus module" -- mbus-ds:jar:1.1.3 not found

    Development general discussion
    2
    7
    2.7k
    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.
    • mebiusM
      mebius
      last edited by

      Hi supporter,

      We met this kind of error when ant-build MBus-module's build.xml. Could you please help?

      BUILD FAILED
      F:\ma-proj\ma-modules-public\MBus\build.xml:4: The following error occurred while executing this line:
      F:\ma-proj\ma-core-public\Core\module-build.xml:34: Unable to resolve artifact: Missing:

      1. com.infiniteautomation:mango:jar:2.7.10

      Try downloading the file manually from the project website.

      Then, install it using the command:
      mvn install:install-file -DgroupId=com.infiniteautomation -DartifactId=mango -Dversion=2.7.10 -Dpackaging=jar -Dfile=/path/to/file

      Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.infiniteautomation -DartifactId=mango -Dversion=2.7.10 -Dpackaging=jar -Dfile=/path/to/file -Durl= -DrepositoryId=[id]

      Path to dependency:
      1) com.infiniteautomation.mango:mbus-ds:jar:1.1.3
      2) com.infiniteautomation:mango:jar:2.7.10


      1 required artifact is missing.

      for artifact:
      com.infiniteautomation.mango:mbus-ds:jar:1.1.3

      from the specified remote repositories:
      central (http://repo1.maven.org/maven2)

      Thanks

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by

        Hi mebius,

        cd /path/to/ma-core-publc
        mvn install

        Then try again. Maven manages dependecies in our projects.

        mebiusM 1 Reply Last reply Reply Quote 0
        • mebiusM
          mebius @phildunlap
          last edited by

          @phildunlap

          Hi phildunlap,

          Command "mvn install" succeeded but ant-build for Mbus still failed due to:

          1 required artifact is missing.

          for artifact:
          com.infiniteautomation.mango:mbus-ds:jar:1.1.3

          from the specified remote repositories:
          central (http://repo1.maven.org/maven2)

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            Hi mebius,

            That's not the entire output of the build failure. What is it failing on now?

            mebiusM 1 Reply Last reply Reply Quote 0
            • mebiusM
              mebius @phildunlap
              last edited by

              @phildunlap

              Hi phildunlap,

              Here is the console output.

              Buildfile: F:\ma-proj\ma-modules-public\MBus\build.xml
              [mvn:dependencies] Downloading: com/infiniteautomation/mango/2.7.10/mango-2.7.10.pom from repository central at http://repo1.maven.org/maven2
              [mvn:dependencies] Unable to locate resource in repository
              [mvn:dependencies] [INFO] Unable to find resource 'com.infiniteautomation:mango:pom:2.7.10' in repository central (http://repo1.maven.org/maven2)
              [mvn:dependencies] Downloading: com/infiniteautomation/mango/2.7.10/mango-2.7.10.jar from repository central at http://repo1.maven.org/maven2
              [mvn:dependencies] Unable to locate resource in repository
              [mvn:dependencies] [INFO] Unable to find resource 'com.infiniteautomation:mango:jar:2.7.10' in repository central (http://repo1.maven.org/maven2)
              [mvn:dependencies] An error has occurred while processing the Maven artifact tasks.
              [mvn:dependencies] Diagnosis:
              [mvn:dependencies]
              [mvn:dependencies] Unable to resolve artifact: Missing:
              [mvn:dependencies] ----------
              [mvn:dependencies] 1) com.infiniteautomation:mango:jar:2.7.10
              [mvn:dependencies]
              [mvn:dependencies] Try downloading the file manually from the project website.
              [mvn:dependencies]
              [mvn:dependencies] Then, install it using the command:
              [mvn:dependencies] mvn install:install-file -DgroupId=com.infiniteautomation -DartifactId=mango -Dversion=2.7.10 -Dpackaging=jar -Dfile=/path/to/file
              [mvn:dependencies]
              [mvn:dependencies] Alternatively, if you host your own repository you can deploy the file there:
              [mvn:dependencies] mvn deploy:deploy-file -DgroupId=com.infiniteautomation -DartifactId=mango -Dversion=2.7.10 -Dpackaging=jar -Dfile=/path/to/file -Durl= -DrepositoryId=[id]
              [mvn:dependencies]
              [mvn:dependencies] Path to dependency:
              [mvn:dependencies] 1) com.infiniteautomation.mango:mbus-ds:jar:1.1.3
              [mvn:dependencies] 2) com.infiniteautomation:mango:jar:2.7.10
              [mvn:dependencies]
              [mvn:dependencies] ----------
              [mvn:dependencies] 1 required artifact is missing.
              [mvn:dependencies]
              [mvn:dependencies] for artifact:
              [mvn:dependencies] com.infiniteautomation.mango:mbus-ds:jar:1.1.3
              [mvn:dependencies]
              [mvn:dependencies] from the specified remote repositories:
              [mvn:dependencies] central (http://repo1.maven.org/maven2)
              [mvn:dependencies]
              [mvn:dependencies]
              [mvn:dependencies]

              BUILD FAILED
              F:\ma-proj\ma-modules-public\MBus\build.xml:4: The following error occurred while executing this line:
              F:\ma-proj\ma-core-public\Core\module-build.xml:34: Unable to resolve artifact: Missing:

              1. com.infiniteautomation:mango:jar:2.7.10

              Try downloading the file manually from the project website.

              Then, install it using the command:
              mvn install:install-file -DgroupId=com.infiniteautomation -DartifactId=mango -Dversion=2.7.10 -Dpackaging=jar -Dfile=/path/to/file

              Alternatively, if you host your own repository you can deploy the file there:
              mvn deploy:deploy-file -DgroupId=com.infiniteautomation -DartifactId=mango -Dversion=2.7.10 -Dpackaging=jar -Dfile=/path/to/file -Durl= -DrepositoryId=[id]

              Path to dependency:
              1) com.infiniteautomation.mango:mbus-ds:jar:1.1.3
              2) com.infiniteautomation:mango:jar:2.7.10


              1 required artifact is missing.

              for artifact:
              com.infiniteautomation.mango:mbus-ds:jar:1.1.3

              from the specified remote repositories:
              central (http://repo1.maven.org/maven2)

              Total time: 10 seconds

              thanks

              1 Reply Last reply Reply Quote 0
              • phildunlapP
                phildunlap
                last edited by phildunlap

                This looks like the mvn install of the Core didn't actually succeed.... Hmmm....

                Can you try....
                cd /path/to/ma-core-public
                mvn install
                cd Core
                mvn install

                Then try again? Can you check your user's local maven repository for the mango-2.7.10.jar file? It will be at C:\Users\Username\.m2\repository\com\infiniteautomation\mango\2.7.10\ (or maybe F:\ by the looks of your output).

                Are you sure the 'mvn install' succeeded on all build targets?

                mebiusM 1 Reply Last reply Reply Quote 0
                • mebiusM
                  mebius @phildunlap
                  last edited by

                  @phildunlap

                  Hi phildunlap,

                  I use the code from zip file instead of cloning code from git, module build works fine now with the same steps.

                  Thank you very much for your kind help.

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