title: How do I solve the Missing Artifact problem in pom.xml
body: <p>I am starting a simple aws dynamoDB test in java. of course there are imports like this</p>
  
  <p><code>import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;</code></p>
  
  <p>So to resolve this, I declare my project to be Maven nature and add a dependency which looks like this in pom.xml</p>
  
  <pre><code>`&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;DynamoDBOperations&lt;/groupId&gt;
  &lt;artifactId&gt;DynamoDBOperations&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;build&gt;
  &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
  &lt;plugins&gt;
    &lt;plugin&gt;
      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.3&lt;/version&gt;
      &lt;configuration&gt;
        &lt;source&gt;1.8&lt;/source&gt;
        &lt;target&gt;1.8&lt;/target&gt;
      &lt;/configuration&gt;
    &lt;/plugin&gt;
  &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;dependencies&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;software.amazon.awssdk&lt;/groupId&gt;
      &lt;artifactId&gt;bom&lt;/artifactId&gt;
      &lt;version&gt;2.0.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I have a local Artifactory instance running and .m2 directory settings.xml I see the endpoint <a href="http://localhost:8081/artifactory/lib-(release" rel="nofollow noreferrer">http://localhost:8081/artifactory/lib-(release</a> and snapshot) in different entries. </p>
  
  <p>The pom.xml gives error</p>
  
  <pre><code>Missing artifact software.amazon.awssdk:bom:jar: 2.0.0
  </code></pre>
  
  <p>When I try to do RunAs - Maven Install I see the following error.</p>
  
  <pre><code>Failed to execute goal on project DynamoDBOperations: Could not resolve 
  dependencies for project DynamoDBOperations:DynamoDBOperations:jar:0.0.1- 
  SNAPSHOT: Failure to find software.amazon.awssdk:bom:jar:2.0.0 in 
  http://localhost:8081/artifactory/libs-release was cached in the local 
  repository, resolution will not be reattempted until the update interval of 
  central has elapsed or updates are forced -&gt; [Help 1] 
  </code></pre>
  
  <p>I know it is trying to tell me something but I dont get it.</p>
  
  <p>There is repository folder under .m2 which has a folder structure like I would expect software/amazon/awssdk/bom/2.0.0 and under it bom-2.0.0.jar.lastupdated</p>
  
  <p>The java program has not even started yet</p>
  
  <pre><code>import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;
  import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder;
  import com.amazonaws.services.dynamodbv2.model.AttributeDefinition;
  import com.amazonaws.services.dynamodbv2.model.CreateTableRequest;
  import com.amazonaws.services.dynamodbv2.model.CreateTableResult;
  import com.amazonaws.services.dynamodbv2.model.KeySchemaElement;
  import com.amazonaws.services.dynamodbv2.model.KeyType;
  import com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput;
  import com.amazonaws.services.dynamodbv2.model.ScalarAttributeType;
  public class DynamoDBOperations {
  
  
  }
  
  </code></pre>