David Michael Gang
David Michael Gang

Reputation: 7299

htmlunit artifact not found with maven

I have the following pom.xml

<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.aaaa</groupId>
  <artifactId>david1</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <dependencies>
  <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>2.37.1</version>
    </dependency> 
  </dependencies>
</project>

I get an error: Missing artifact net.sourceforge.htmlunit:htmlunit:jar:2.13

What could be the reason?

From the effective pom i get

<repositories>
    <repository>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>Central Repository</name>
      <url>http://repo.maven.apache.org/maven2</url>
    </repository>
  </repositories>

I did try to google the error but did not find anything.

Best regards,

David

Upvotes: 0

Views: 1858

Answers (1)

Eugene Loy
Eugene Loy

Reputation: 12416

Seems like some of the transitive dependencies of selenium-java cannot be resolved.

Suspicious thing is that 2.37.1 version is not listed in MVNRepository.

It might be that it is not yet released. Try more stable version, like 2.35.0

Upvotes: 1

Related Questions