Reputation: 3436
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
?
Upvotes: 15
Views: 52192
Reputation: 21
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.
Upvotes: 2
Reputation: 5178
Are you sure this is causing the problem? Haven't you missed anything else?
Here is the complete configuration (pom.xml) which you might need:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.bea.xml</groupId>
<artifactId>jsr173-ri</artifactId>
<version>1.0</version>
<name>JSR 173 - Streaming API for XML - Reference Implementation</name>
<description>JSR 173 - Streaming API for XML - Reference Implementation</description>
<url>http://dev2dev.bea.com/xml/stax.html</url>
<distributionManagement>
<downloadUrl>http://ftpna2.bea.com/pub/downloads/jsr173.jar</downloadUrl>
</distributionManagement>
<licenses>
<license>
<name>BEA JSR 173 RI</name>
<url>http://www.ibiblio.org/maven2/com/bea/xml/jsr173-ri/1.0/jsr173-ri-1.0-license.txt</url>
<distribution>manual</distribution>
</license>
</licenses>
<organization>
<name>BEA</name>
<url>http://www.bea.com</url>
</organization>
<dependencies>
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jsr173</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</project>
Upvotes: 1
Reputation: 252
dependency is correct....u don't have to change that.You can download the the jar from http://mvnrepository.com/artifact/com.bea.xml/jsr173-ri/1.0 and put it on ur local repo.
Upvotes: 0
Reputation: 2638
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
Upvotes: 13