[GRADLE-2395] JAI dependency can't be find through maven Created: 19/Jul/12 Updated: 10/Feb/17 Resolved: 10/Feb/17 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.0 |
Fix Version/s: | None |
Type: | Bug | ||
Reporter: | fx thoorens | Assignee: | Unassigned |
Resolution: | Won't Fix | Votes: | 1 |
Description |
this script does not work: apply plugin: 'java' repositories { flatDir { dir 'lib' } mavenCentral() } dependencies { compile group: 'javax.media', name: 'jai_core', version: '1.1.3' } I have jai_core-1.1.3.jar in the lib/ folder I get the error Artifact 'javax.media:jai_core:1.1.3@jar' not found However when i comment out mavenCentral() it works The reason i think: The reason it is a blocker: The solution would be to look in declared flatDir when a jar is not found (event if the pom is found) in the maven repository. Hope it is clear enough! |
Comments |
Comment by fx thoorens [ 19/Jul/12 ] |
here the pom for jai_core in maven: http://search.maven.org/#artifactdetails%7Cjavax.media%7Cjai_core%7C1.1.3%7Cjar |
Comment by fx thoorens [ 19/Jul/12 ] |
found a work around: put this repository BEFORE mavenCentral(): in this case we can move this issue from blocker to major |
Comment by Nikolaus Krismer [ 22/Jul/15 ] |
This solution only works if you have the jai_core-1.1.3.jar in the lib folder (at least for me... tested with gradle 2.5) I could only solve the problem by adding following repository
maven {
url 'https://repo.gradle.org/gradle/plugins-releases'
}
and by using this dependency for jai_core
compile 'javax.media.jai:com.springsource.javax.media.jai.core:1.1.3'
Although this is a acceptable workaround for me, I'd really like to now, thy adding the OSGeo repo before mavenCentral does not work if the jai_core-1.1.4.jar is not in a local flatDir repo. |
Comment by Benjamin Muschko [ 15/Nov/16 ] |
As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub. We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to. Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:
We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle! |
Comment by Benjamin Muschko [ 10/Feb/17 ] |
Thanks again for reporting this issue. We haven't heard back from you after our inquiry from November 15th. We are closing this issue now. Please create an issue on GitHub if you still feel passionate about getting it resolved. |