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

Artifact wrong in POM ? #3

Closed
raigex opened this issue May 8, 2014 · 7 comments
Closed

Artifact wrong in POM ? #3

raigex opened this issue May 8, 2014 · 7 comments
Labels

Comments

@raigex
Copy link

raigex commented May 8, 2014

Gradle 'project' project refresh failed:
Could not download artifact 'org.bytedeco.javacpp-presets:opencv:2.4.9-0.8:opencv-Mac OS X-x86_64.jar'

I've tried to get this working via a gradle dependencies compile. When looking over javacpp-precents/opencv/2.4.9-08/opencv-macosx-x86_64.jar is available (actual file) but for some reason the POM looks for Mac OS X (with spaces) to download into my script.

@saudet
Copy link
Member

saudet commented May 9, 2014

Can you try adding a profile like this to the pom.xml file to see if it works that way?

    <profile>
      <id>MACOSX</id>
      <activation>
        <os><name>Mac OS X</name></os>
      </activation>
      <properties>
        <os.name>macosx</os.name>
      </properties>
    </profile>

Thanks! BTW, we can specify the "platform" property directly to override this autodetection.

@raigex
Copy link
Author

raigex commented May 9, 2014

I shall try and give u feedback. Also since I am doing this for android, this auto detection would not really work as needed would it?

@saudet
Copy link
Member

saudet commented May 9, 2014

Thanks!

AFAIK, Gradle or Maven itself doesn't work on Android, or does it? Anyway, usually we develop on the desktop and the idea is to set the "platform" property to android-arm or android-x86. We can download both too, just specify them as dependencies in your build file.

@raigex
Copy link
Author

raigex commented May 9, 2014

Yea, graden (and maven) work with Android Studio. They are the new compling style for Android for those using Android Studio. I'm still kinda new to gradle so I'll have to checkout how to modify the pom.xml and set the "platform" property

@saudet saudet added the bug label May 9, 2014
@raigex
Copy link
Author

raigex commented May 9, 2014

Also if you can tell me what I'm doing wrong with my gradle.build file in dependencies. I would like it to pull the android version but I dont know how to get the proper classifier in:

    compile group: 'org.bytedeco', name: 'javacv', version: '0.8', platform: 'android-arm'

@saudet
Copy link
Member

saudet commented May 9, 2014

"platform" is a property you can use with the pom.xml file to pull all the dependencies. It gets used as the "classifier", which is what you seem to want to set there.

In any case, please let me know if the fix I propose up there works for your platform, or not. If you still have unrelated questions to Android or anything else, please post them on the mailing list, not here, thank you.

@saudet
Copy link
Member

saudet commented Jun 7, 2014

Fixed by making all the dependencies optional, as proposed in issue #10 and changed in commit 0e7cd79.

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