title: Failed to execute goal on project X: Could not resolve dependencies for project X:jar:0.0.1-SNAPSHOT: Could not find artifact XX:jar:0.0.1-SNAPSHOT
body: <p>so i imported 2 maven projects ! rh and common ! the problem is when building the rg project i get this probleme : <code>
  [ERROR] Failed to execute goal on project param: Could not resolve dependencies for project com.talan.byblos:param:jar:0.0.1-SNAPSHOT: Could not find artifact com.talan.byblos:commonByblos:jar:0.0.1-SNAPSHOT -&gt;
  </code>
  what i get is that the rh project is relying on common dependencies </p>
  
  <p>so here is the common project pom file</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;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"&gt;
   &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
   &lt;groupId&gt;com.talan.byblos&lt;/groupId&gt;
   &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
   &lt;packaging&gt;jar&lt;/packaging&gt;
  
   &lt;artifactId&gt;commonByblos&lt;/artifactId&gt;
  
   &lt;description&gt;C'est un module qui contient la liste des dto communs des projets&lt;/description&gt;
  
   &lt;name&gt;commonByblos&lt;/name&gt;
  
   &lt;parent&gt;
    &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
    &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
    &lt;version&gt;1.5.8.RELEASE&lt;/version&gt;
    &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&gt;
   &lt;/parent&gt;
  
   &lt;properties&gt;
    &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
    &lt;java.version&gt;1.8&lt;/java.version&gt;
   &lt;/properties&gt;
  
   &lt;dependencies&gt;
    &lt;dependency&gt;
     &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
     &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
    &lt;/dependency&gt;
  
    &lt;!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security --&gt;
   &lt;!--  &lt;dependency&gt;
     &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
     &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt;
    &lt;/dependency&gt; --&gt;
    &lt;!-- Add JPA support --&gt;
    &lt;dependency&gt;
     &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
     &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
     &lt;groupId&gt;commons-lang&lt;/groupId&gt;
     &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
     &lt;version&gt;2.3&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;!-- https://mvnrepository.com/artifact/commons-logging/commons-logging --&gt;
    &lt;dependency&gt;
     &lt;groupId&gt;commons-logging&lt;/groupId&gt;
     &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
     &lt;version&gt;1.1.1&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
     &lt;groupId&gt;org.apache.axis&lt;/groupId&gt;
     &lt;artifactId&gt;axis&lt;/artifactId&gt;
     &lt;version&gt;1.4&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;!-- Parseur XML --&gt;
    &lt;dependency&gt;
     &lt;groupId&gt;com.thoughtworks.xstream&lt;/groupId&gt;
     &lt;artifactId&gt;xstream&lt;/artifactId&gt;
     &lt;version&gt;1.4.9&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
     &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
     &lt;artifactId&gt;poi-ooxml&lt;/artifactId&gt;
     &lt;version&gt;3.9&lt;/version&gt;
     &lt;exclusions&gt;
      &lt;exclusion&gt;
       &lt;groupId&gt;dom4j&lt;/groupId&gt;
       &lt;artifactId&gt;dom4j&lt;/artifactId&gt;
      &lt;/exclusion&gt;
      &lt;exclusion&gt;
       &lt;groupId&gt;xml-apis&lt;/groupId&gt;
       &lt;artifactId&gt;xml-apis&lt;/artifactId&gt;
      &lt;/exclusion&gt;
     &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
     &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
     &lt;artifactId&gt;poi-ooxml-schemas&lt;/artifactId&gt;
     &lt;version&gt;3.9&lt;/version&gt;
     &lt;exclusions&gt;
      &lt;exclusion&gt;
       &lt;groupId&gt;org.apache.xmlbeans&lt;/groupId&gt;
       &lt;artifactId&gt;xmlbeans&lt;/artifactId&gt;
      &lt;/exclusion&gt;
     &lt;/exclusions&gt;
    &lt;/dependency&gt;
  
    &lt;dependency&gt;
     &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
     &lt;artifactId&gt;poi-scratchpad&lt;/artifactId&gt;
     &lt;version&gt;3.9&lt;/version&gt;
     &lt;exclusions&gt;
      &lt;exclusion&gt;
       &lt;groupId&gt;commons-logging&lt;/groupId&gt;
       &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
      &lt;/exclusion&gt;
     &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
     &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
     &lt;artifactId&gt;spring-boot-starter-validation&lt;/artifactId&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
     &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
     &lt;artifactId&gt;spring-security-core&lt;/artifactId&gt;
    &lt;/dependency&gt;
   
    &lt;dependency&gt;
     &lt;groupId&gt;io.jsonwebtoken&lt;/groupId&gt;
     &lt;artifactId&gt;jjwt&lt;/artifactId&gt;
     &lt;version&gt;0.9.0&lt;/version&gt;
    &lt;/dependency&gt;
   &lt;/dependencies&gt;
  
   &lt;build&gt;
    &lt;plugins&gt;
     &lt;plugin&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
     &lt;/plugin&gt;
    &lt;/plugins&gt;
   &lt;/build&gt;
  
  &lt;/project&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>and this is the rh pom </p>
  
  <pre><code>    &lt;groupId&gt;com.talan.byblos&lt;/groupId&gt;
      &lt;artifactId&gt;rh&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;name&gt;rh&lt;/name&gt;
      &lt;description&gt;RH Microservice&lt;/description&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;1.4.3.RELEASE&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;!-- Common project --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.talan.byblos&lt;/groupId&gt;
              &lt;artifactId&gt;commonByblos&lt;/artifactId&gt;
              &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- Spring Netflix Eureka for service discovery explicitly --&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-starter-eureka&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;!-- &lt;dependency&gt; &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt; 
              &lt;/dependency&gt; --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
              &lt;optional&gt;true&lt;/optional&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-starter-config&lt;/artifactId&gt;
          &lt;/dependency&gt;
           &lt;dependency&gt;
          &lt;groupId&gt;com.h2database&lt;/groupId&gt;
          &lt;artifactId&gt;h2&lt;/artifactId&gt;
      &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-aop&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;!-- Exclude teh default Tomcat connection pool --&gt;
    &lt;dependency&gt;
          &lt;groupId&gt;commons-dbcp&lt;/groupId&gt;
          &lt;artifactId&gt;commons-dbcp&lt;/artifactId&gt;
      &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpcore&lt;/artifactId&gt;
              &lt;version&gt;4.4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.thymeleaf&lt;/groupId&gt;
              &lt;artifactId&gt;thymeleaf-spring3&lt;/artifactId&gt;
              &lt;version&gt;3.0.6.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/com.zaxxer/HikariCP --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.zaxxer&lt;/groupId&gt;
              &lt;artifactId&gt;HikariCP&lt;/artifactId&gt;
              &lt;version&gt;2.6.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.ldap&lt;/groupId&gt;
              &lt;artifactId&gt;spring-ldap&lt;/artifactId&gt;
              &lt;version&gt;1.3.0.RELEASE&lt;/version&gt;
              &lt;classifier&gt;all&lt;/classifier&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.dataformat&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-dataformat-xml&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.postgresql/postgresql --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
              &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
              &lt;version&gt;42.1.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
              &lt;version&gt;3.5&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>any help please ? 
  i ve seen some solutions like add repositories to your settings file and so 
  but none worked </p>