Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

maven build fails because of missing dependency #555

Open
@thatsdone

Description

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月22日T21: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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /