Maven 为什么我在运行mvn-DskipTests-Dgpg.skip=true安装时找不到com.google.zxing:core:jar:2.2-SNAPSHOT错误,以及如何解决它?
当我试着跑的时候Maven 为什么我在运行mvn-DskipTests-Dgpg.skip=true安装时找不到com.google.zxing:core:jar:2.2-SNAPSHOT错误,以及如何解决它?,maven,zxing,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
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
我去了,但没有找到com.google.zxing:core:jar:2.2-SNAPSHOT
你知道我该怎么解决这个问题吗?提前感谢。没有2.2快照。2.2已发布。您指的是2.2或2.3-SNAPSHOT。查看相关错误日志。上面写着2.2-SNAPSHOT。不管怎样,我该怎么做才能解决它?没错。您的pom.xml引用了它,但它在repo中不存在。依赖于版本2.2。那么我应该怎么做?更改pom.xml?或者别的什么?你知道我该换哪一行吗?我是zxing的新手,所以请写下我应该编辑的行。谢谢,您是否在文件中搜索字符串“2.2-SNAPSHOT”?这真是再简单不过了!