Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maven build fails because of missing dependency #555

Open
thatsdone opened this issue Oct 23, 2021 · 0 comments
Open

maven build fails because of missing dependency #555

thatsdone opened this issue Oct 23, 2021 · 0 comments

Comments

@thatsdone
Copy link

DESCRIPTION

Maven build of htm.java fails saying 'algorithmfoundry:algorithmfoundry-shade-culled:jar:1.3' is missing.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.705 s
[INFO] Finished at: 2021-10-22T21:44:52+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project htm.java: Could not resolve dependencies for project org.numenta:htm.java:jar:0.6.13: Could not find artifact algorithmfoundry:algorithmfoundry-shade-culled:jar:1.3 in repo (http://metaware.us/maven3) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

REPRODUCE PROCEDURE

Just try to clone & buid htm.java using maven.

In case of me, build environment is the following:

  • OS : Ubuntu 20.04 LTS w/llinux-image-5.4.0-40-generic
  • Java: 11.0.11+9-0ubuntu2~20.04 (ubuntu bundled)
  • Maven: 3.6.3-1 (ubuntu bundled)
  • htm.java version
    • HEAD of master with commit timestamp "Wed Sep 15 21:44:59 2021 -0500"
$ git log -n 1 --oneline
886f7cf8 (HEAD -> master, origin/master, origin/HEAD) Updated to test permissions

ANALYSYS and SUGGESTED RESOLUTION

It seems this is a long standing(?) issue as you can find out below:

https://discourse.numenta.org/t/dependency-problem-from-maven-release/2042

The original Matrix Tool Kit for Java implementation (with a method addRow() that missing in the current MTJ) from algorithmfoundry seems to have been lost, and now htm.java bundles a copy of 'algorithmfoundry-shade-culled-1.3.jar' under 'libs' directory.

Thus, just updating pom.xml like below resolves this issue.

$ diff -u  pom.xml pom.xml.new
--- pom.xml     2021-10-23 09:11:55.324013034 +0900
+++ pom.xml.new 2021-10-22 21:30:08.009629309 +0900
@@ -144,6 +144,8 @@
                        <groupId>algorithmfoundry</groupId>
                        <artifactId>algorithmfoundry-shade-culled</artifactId>
                        <version>1.3</version>
+                       <scope>system</scope>
+                       <systemPath>${project.basedir}/libs/algorithmfoundry-shade-culled-1.3.jar</systemPath>
                </dependency>
        </dependencies>

I will create a PR for this soon.

Regards,
Masanori

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant