https://github.com/googleapis/google-auth-library-java/pull/554/checks?check_run_id=1818423838 fails:
Error: Failed to execute goal on project google-auth-library-appengine: Could not resolve dependencies for project
com.google.auth:google-auth-library-appengine:jar:0.23.1-SNAPSHOT: Could not find artifact com.google.auth:google-auth-
library-oauth2-http:jar:tests:0.23.1-SNAPSHOT -> [Help 1]
CC: @Neenu1995
Investigation
The job failed at "Install artifacts to local Maven repository" phase. It means the Linkage Monitor has not run yet. Does the repository require special command to install? Any difference in build.sh?
In my MacBook Pro
suztomo-macbookpro44% mvn install -B -V \
-Dmaven.test.skip -DskipTests=true \
-Dclirr.skip=true \
-Denforcer.skip=true \
-Dmaven.javadoc.skip=true \
-Dgcloud.download.skip=true
...
[INFO] -----------< com.google.auth:google-auth-library-appengine >------------
[INFO] Building Google Auth Library for Java - Google App Engine 0.23.1-SNAPSHOT [4/5]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Google Auth Library for Java 0.23.1-SNAPSHOT:
[INFO]
[INFO] Google Auth Library for Java ....................... SUCCESS [ 3.459 s]
[INFO] Google Auth Library for Java - Credentials ......... SUCCESS [ 3.656 s]
[INFO] Google Auth Library for Java - OAuth2 HTTP ......... SUCCESS [ 3.608 s]
[INFO] Google Auth Library for Java - Google App Engine ... FAILURE [ 0.020 s]
[INFO] Google Auth Library for Java BOM ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.053 s
[INFO] Finished at: 2021-02-12T15:55:14-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project google-auth-library-appengine: Could not resolve dependencies for project com.google.auth:google-auth-library-appengine:jar:0.23.1-SNAPSHOT: Could not find artifact com.google.auth:google-auth-library-oauth2-http:jar:tests:0.23.1-SNAPSHOT -> [Help 1]
[ERROR]
This works:
mvn clean install -B -V \
-DskipTests=true \
-Dclirr.skip=true \
-Denforcer.skip=true \
-Dmaven.javadoc.skip=true \
-Dgcloud.download.skip=true \
-T 1C
The maven.test.skip interfering the test artifact generation. I thought the parameter would just speedup the build without compiling test Java sources.
But in java-spanner repository, passing -DskipTests=true still executes tests. The repository uses a special property "skipUTs" to control unit tests.
suztomo@suztomo:~/java-spanner$ mvn install -B -V -DskipUTs=true -DskipTests=true \
-Dclirr.skip=true -Denforcer.skip=true -Dmaven.javadoc.skip=true \
-Dgcloud.download.skip=true -T 1C
https://github.com/googleapis/google-auth-library-java/pull/554/checks?check_run_id=1818423838 fails:
CC: @Neenu1995
Investigation
The job failed at "Install artifacts to local Maven repository" phase. It means the Linkage Monitor has not run yet. Does the repository require special command to install? Any difference in build.sh?
In my MacBook Pro
This works:
The
maven.test.skipinterfering the test artifact generation. I thought the parameter would just speedup the build without compiling test Java sources.But in java-spanner repository, passing
-DskipTests=truestill executes tests. The repository uses a special property "skipUTs" to control unit tests.