Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven Dependency missing artifact

I am currently working on a Java project using Maven. In my pom.xml I am getting this error.

Missing artifact com.bea.xml:jsr173-ri:jar:1.0

I have added this dependency

<dependency>
        <groupId>com.bea.xml</groupId>
        <artifactId>jsr173-ri</artifactId>
        <version>1.0</version>
</dependency>

to my pom.xml. But still the error is same.

Am I missing adding repository for jsr173-ri dependency? I am also not getting repository to add in my pom.xml.

Can someone suggest me repository code for jsr173-ri to add in my pom.xml?

like image 578
code_fish Avatar asked Dec 31 '12 09:12

code_fish


People also ask

What is missing artifact error in POM xml?

The error in pom. xml “missing artifact maven” occurs when the artifact is missing in local repository and remote repository. In eclipse, missing artifact maven error shows in the programs window. Maven is a software tool for building artifacts.

How do I resolve a missing jar in Maven repository?

Look in your . m2 directory (use the paths which you see in the dialog above) and check whether the files are there or whether they are really missing. If they are missing, run "mvn install" (see the "Run as..." menu) to download them.


2 Answers

com.bea.xml is not available in public repositories(Download size is zero). Therefore you need to download the JAR file and manually install it in to your local repo.

Some useful links: Manually install dependency

like image 149
Chandana Avatar answered Sep 19 '22 08:09

Chandana


Step1: Add that missing jar in C:\Users\{your name}\.m2\repository\{dep jar folder}\{version-RELEASE}\{missing jar}

Step2: In Eclipse, right click on pom.xml -> go to Maven ->Add Dependency Step3: Look for jar name in Enter groupId, artifactId Step4: Select it in Search Results: and click OK.

like image 39
Arpita Avatar answered Sep 18 '22 08:09

Arpita