maven clean install guava-gwt error
gujiwork opened this issue · comments
往事随风 commented
java version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
maven version
maven-3.8.6
maven packaging command
.mvn clean install -Dmaven.test.skip=true -Dmaven.compile.fork=true
[INFO] Reactor Summary for Guava Maven Parent HEAD-jre-SNAPSHOT:
[INFO]
[INFO] Guava Maven Parent ................................. SUCCESS [ 0.901 s]
[INFO] Guava: Google Core Libraries for Java .............. SUCCESS [ 47.657 s]
[INFO] Guava BOM .......................................... SUCCESS [ 0.049 s]
[INFO] Guava Testing Library .............................. SUCCESS [ 15.981 s]
[INFO] Guava Unit Tests ................................... SUCCESS [ 0.510 s]
[INFO] Guava GWT compatible libs .......................... FAILURE [ 0.136 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:05 min
[INFO] Finished at: 2022-12-05T16:03:20+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project guava-gwt: Could not resolve dependencies for project com.google.guava:guava-gwt:jar:HEAD-jre-SNAPSHOT: com.google.guava:guava-tests:jar:tests:HEAD-jre-SNAPSHOT was not found in https://oss.sonatype.org/content/repositories/google-snapshots/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of sonatype-google-snapshots has elapsed or updates are forced -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :guava-gwt
往事随风 commented
When I comment out guava-gwt/pom.xml , maven build succeeds
<!--
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-tests</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
-->
Chris Povirk commented
Sorry, we need to provide better instructions for this: #2193.
If you replace -Dmaven.test.skip=true
with -DskipTests
, it will work. Or you can skip guava-gwt
, as you've observed.