Problems while using Maven (Java): The POM for [...] is missing, no dependency information available

2,992 views
Skip to first unread message

Mark2D2

unread,
Jan 24, 2019, 9:57:58 AM1/24/19
to Clara
Hey there,

I just trying to get started with clara rules, but it just won't work.
I created a new Maven-Project, and added the dependency into the .pom as described in http://www.clara-rules.org/docs/firststeps/ :

<?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/xsd/maven-4.0.0.xsd">
   
<modelVersion>4.0.0</modelVersion>
   
<groupId>com.mycompany</groupId>
   
<artifactId>mavenproject1</artifactId>
   
<version>1.0-SNAPSHOT</version>
   
<packaging>jar</packaging>
   
<dependencies>
       
<dependency>
           
<groupId>com.cerner</groupId>
           
<artifactId>clara-rules</artifactId>
           
<version>0.19.0</version>
       
</dependency>
   
</dependencies>
   
<properties>
       
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
       
<maven.compiler.source>1.8</maven.compiler.source>
       
<maven.compiler.target>1.8</maven.compiler.target>
   
</properties>
</project>

I also copied the examples from the GitHub-Repository .

But still I get

Building mavenproject1 1.0-SNAPSHOT
------------------------------------------------------------------------
The POM for com.cerner:clara-rules:jar:0.19.0 is missing, no dependency information available
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 0.188 s
Finished at: ...
Final Memory: 7M/243M
------------------------------------------------------------------------
Failed to execute goal on project mavenproject1: Could not resolve dependencies for project com.mycompany:mavenproject1:jar:1.0-SNAPSHOT: Failure to find com.cerner:clara-rules:jar:0.19.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


(I'm using Netbeans 10.)

I also tried to work it out by using Version 0.18.0 (which is downloaded and works for me in clojure), but still: it won't work.

Could you help me please?


Best Regards,

Mark

Ethan Christian

unread,
Jan 24, 2019, 10:18:49 AM1/24/19
to Clara
Hey Mark,

It seems that Maven cannot find the Clara rules pom, I believe this can be solved by adding the Clojars repo:
<repositories>
  <repository>
    <id>clojars</id>
    <url>https://clojars.org/repo/</url>
    <releases>
      <enabled>true</enabled>
    </releases>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  </repository>
</repositories>

Hope this helps,
Ethan
Reply all
Reply to author
Forward
0 new messages