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

Manually compiled subset of JavaCPP Presets could not be accessed by Gradle #42

Closed
maximumspatium opened this issue Mar 18, 2015 · 5 comments
Labels

Comments

@maximumspatium
Copy link

I'm experiencing an issue when I try to use leptonica + tessseract bindings, compiled from the latest trunk and installed into Maven local repository, from within Gradle. I've correctly added all required dependencies and pointed Gradle to MavenLocal repository.

Gradle does report the following error:

* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve org.bytedeco.javacpp-presets:leptonica:1.71-0.11.
  Required by:
      :Project:unspecified
   > Could not parse POM file:/****/*****/.m2/repository/org/bytedeco/javacpp-presets/leptonica/1.71-0.11/leptonica-1.71-0.11.pom
      > Could not find org.bytedeco:javacpp-presets:0.11.

It looks like the parent POM is missing. I've looked into the local .m2 directory and the expected parent pom "javacpp-presets-0.11.pom" is, indeed, not there.

I'm using the following terminal commands in order to get everything built and installed:

bash cppbuild.sh -platform linux-x86 install leptonica tesseract
mvn install --projects leptonica,tesseract

Below the results:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] JavaCPP Presets for Leptonica ..................... SUCCESS [29:05.014s]
[INFO] JavaCPP Presets for Tesseract ..................... SUCCESS [1:32.344s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30:40.956s
[INFO] Finished at: Wed Mar 18 17:44:03 CET 2015
[INFO] Final Memory: 22M/230M

Any ideas what's going wrong?
Thank you in advance!
Best regards
Max

@saudet
Copy link
Member

saudet commented Mar 18, 2015 via email

@maximumspatium
Copy link
Author

Hello Samuel,

IIRC, Gradle does support Maven snapshots. They are just called "changing modules" in the Gradle's jargon.
Anyway, I've tried without "-SNAPSHOT" as well. Neither solution works...

Best regards
Max

@saudet saudet added the bug label Mar 19, 2015
@saudet
Copy link
Member

saudet commented Mar 19, 2015

Oh, I see the problem: mvn install --projects leptonica,tesseract doesn't install the parent module. Using a period like this mvn install --projects .,leptonica,tesseract usually works. We should add that to the README.md file. Let me know do that...

@maximumspatium
Copy link
Author

Hi Samuel,

oh man, that ugly Maven strikes back...

Anyway, thank you very much for the hint! It works now as expected.

The issue can be closed now. It would be nice to update the README accordigly. Smth like this:

Please ensure that the list of comma-separated projects starts with ".". Otherwise, the generated artifacts could be incomplete.

Thank you in advance!
Best regards
Max

saudet added a commit that referenced this issue Mar 19, 2015
… (issue #42)

 * Make CMake configurable via `CMAKE` variable in `cppbuild.sh` (pull #41)
@maximumspatium
Copy link
Author

Many thanks! The issue can be closed.
Best regards
Max

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

No branches or pull requests

2 participants