为什么我没有找到com.google.zxing:core:jar:2.2-SNAPSHOT错误当我运行mvn -DskipTests -Dgpg.skip = true install以及如何解决它?

时间:2013-09-04 12:44:24

标签: maven zxing

当我尝试运行时

 mvn -DskipTests -Dgpg.skip=true install

然后我得到以下错误:

 [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] -> [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

我去了https://oss.sonatype.org/content/repositories/snapshots但未找到com.google.zxing:core:jar:2.2-SNAPSHOT

我知道如何解决这个问题?提前谢谢。

1 个答案:

答案 0 :(得分:2)

没有2.2-SNAPSHOT。 2.2已经发布。你要么意味着2.2,要么是2.3-SNAPSHOT。