title: Why am i getting failure to find com.google.zxing:core:jar:2.2-SNAPSHOT error when i run mvn -DskipTests -Dgpg.skip=true install and how to solve it?
body: <p>When i try to run </p>
  
  <pre><code> mvn -DskipTests -Dgpg.skip=true install
  </code></pre>
  
  <p>then i get following error:</p>
  
  <pre><code> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.7:copy (copy-android) on project core: Unable to find artifact. Failure to find com.google.zxing:core:jar:2.2-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced
   [ERROR] 
   [ERROR] Try downloading the file manually from the project website.
   [ERROR] 
   [ERROR] Then, install it using the command:
   [ERROR] mvn install:install-file -DgroupId=com.google.zxing -DartifactId=core -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
   [ERROR] 
   [ERROR] Alternatively, if you host your own repository you can deploy the file there:
   [ERROR] mvn deploy:deploy-file -DgroupId=com.google.zxing -DartifactId=core -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
   [ERROR] 
   [ERROR] 
   [ERROR] com.google.zxing:core:jar:2.2-SNAPSHOT
   [ERROR] 
   [ERROR] from the specified remote repositories:
   [ERROR] sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots, releases=false, snapshots=true),
   [ERROR] central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
   [ERROR] -&gt; [Help 1]
   [ERROR] 
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR] 
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>
  
  <p>I went to <a href="https://oss.sonatype.org/content/repositories/snapshots" rel="nofollow">https://oss.sonatype.org/content/repositories/snapshots</a> but didn't find <code>com.google.zxing:core:jar:2.2-SNAPSHOT</code>.</p>
  
  <p>Any idea how can i solve this problem? Thanks in advance.</p>