Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing jar in maven repo

Tags:

maven

maven-3

Library depends on library, which missing in maven central (error 404 missing library). I tired to download the same library from an external source and placed into local Maven Repository, but it's not working. How can I solve this problem?

The following artifacts could not be resolved: javax.media:jai-core:jar:1.1.3, com.sun.media:jai-codec
:jar:1.1.3: Failure to find javax.media:jai-core:jar:1.1.3 in http://repo.maven.
apache.org/maven2 was cached in the local repository, resolution will not be rea
ttempted until the update interval of central has elapsed or updates are forced

If I adds these libraries in pom of my project(just for testing local repo), it's ok (from local repo). Problem, that another library depends on them. My pom.xml:

        <dependency>
            <groupId>de.intarsys.opensource</groupId> //lib in maven central
            <artifactId>jPodRenderer</artifactId>     //depends on libs below
            <version>5.5.1</version>
        </dependency>
        <dependency>
            <groupId>javax.media</groupId>      //in local repo
            <artifactId>jai_core</artifactId>
            <version>1.1.3</version>
        </dependency>
        <dependency>
            <groupId>com.sun.media</groupId>    //in local repo
            <artifactId>jai_codec</artifactId>
            <version>1.1.3</version>
        </dependency>
like image 656
zella Avatar asked Oct 31 '22 23:10

zella


1 Answers

Can you just try it out. I'm not sure I understood your question.

Pom.xml

<dependency>
 <groupId>com.sun.media</groupId>    //in local repo
 <artifactId>jai_codec</artifactId>
 <version>1.1.3</version>
</dependency>
<dependency>
 <groupId>javax.media</groupId>
 <artifactId>jai_core</artifactId>
 <version>1.1.3</version>
</dependency>
<dependency>
 <groupId>de.intarsys.opensource</groupId>
 <artifactId>iscwt</artifactId>
 <version>5.5</version>
</dependency>
like image 129
Unmesha Sreeveni U.B Avatar answered Nov 09 '22 13:11

Unmesha Sreeveni U.B