"BUILD FAILED" when build "MBus module" -- mbus-ds:jar:1.1.3 not found
-
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:- 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/fileAlternatively, 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.3from the specified remote repositories:
central (http://repo1.maven.org/maven2)Thanks
-
Hi mebius,
cd /path/to/ma-core-publc
mvn installThen try again. Maven manages dependecies in our projects.
-
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.3from the specified remote repositories:
central (http://repo1.maven.org/maven2) -
Hi mebius,
That's not the entire output of the build failure. What is it failing on now?
-
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:- 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/fileAlternatively, 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.3from the specified remote repositories:
central (http://repo1.maven.org/maven2)Total time: 10 seconds
thanks
-
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 installThen 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?
-
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.