sonia
sonia

Reputation: 67

Missing artifact error when adding a Maven dependency

I am not familiar with maven but I need to add a jnativehook dependency in a Java/Jersey project. I tried to add this dependency in my pom.xml

<dependency>
  <groupId>com.1stleg</groupId>
  <artifactId>system-hook</artifactId>
  <version>2.0.3</version>
</dependency>

But I get an error on Eclipse

Missing artifact com.1stleg:system-hook:jar:2.0.3

Upvotes: 1

Views: 1280

Answers (1)

H&#233;ctor Valls
H&#233;ctor Valls

Reputation: 26084

According this, it should be:

<dependency>
    <groupId>com.1stleg</groupId>
    <artifactId>jnativehook</artifactId>
    <version>2.0.3</version>
</dependency>

instead of

<dependency>
  <groupId>com.1stleg</groupId>
  <artifactId>system-hook</artifactId>
  <version>2.0.3</version>
</dependency>

Hope it helps!

Upvotes: 1

Related Questions