The issue with google zxing and ANDROID_HOME seems to only happen when
building on Windows. I couldn't find a solid answer as to the impact on the
final build or any workarounds. I ended up moving my build environment to
linux to get building working much more smoothly and without errors.
On Thursday, September 27, 2018 at 12:22:15 PM UTC-4, Yan Zhou wrote:
>
> Hello,
>
> I followed the build process on CAS page, doing the build on Windows.
>
> This is my command, running from cas-server directory: gradlew build
> install --parallel -x test -x javadoc -x check -offline
>
> Here is the error.
>
> > Task :webapp:cas-server-webapp-eureka-server:compileJava
> Errors occurred while build effective model from
> C:\Users\zhou_y\.m3\repository\com\google\zxing\core\3.3.2\core-3.3.2.pom:
> 'dependencyManagement.dependencies.dependency.systemPath' for
> com.google.android:android:jar must specify an absolute path but is
> /${env.ANDROID_HOME}/platf
> orms/android-22/android.jar in com.google.zxing:core:3.3.2
>
> > Task :webapp:cas-server-webapp-bootadmin-server:war FAILED
> > Task :webapp:cas-server-webapp-eureka-server:compileJava UP-TO-DATE
>
> > Task :api:cas-server-core-api-configuration-model:compileJava
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Could not resolve all files for configuration
> ':webapp:cas-server-webapp-bootadmin-server:runtimeClasspath'.
> > Could not resolve com.google.code.findbugs:annotations:2.0.0.
> Required by:
> project :webapp:cas-server-webapp-bootadmin-server >
> com.netflix.zuul:zuul-core:1.3.0 > com.netflix.archaius:archaius-core:0.6.0
> project :webapp:cas-server-webapp-bootadmin-server >
> com.netflix.zuul:zuul-core:1.3.0 > com.netflix.servo:servo-core:0.7.2
> > No cached version of com.google.code.findbugs:annotations:2.0.0
> available for offline mode.
> > No cached version of com.google.code.findbugs:annotations:2.0.0
> available for offline mode.
> > No cached version of com.google.code.findbugs:annotations:2.0.0
> available for offline mode.
> > No cached version of com.google.code.findbugs:annotations:2.0.0
> available for offline mode.
> > No cached version of com.google.code.findbugs:annotations:2.0.0
> available for offline mode.
> > No cached version of com.google.code.findbugs:annotations:2.0.0
> available for offline mode.
> > No cached version of com.google.code.findbugs:annotations:2.0.0
> available for offline mode.
> > No cached version of com.google.code.findbugs:annotations:2.0.0
> available for offline mode.
> > No cached version of com.google.code.findbugs:annotations:2.0.0
> available for offline mode.
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output. Run with --scan to get full insights.
>
> * Get more help at https://help.gradle.org
>
> BUILD FAILED in 3m 30s
> 1040 actionable tasks: 12 executed, 1028 up-to-date
>
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/2a30e80f-8ef7-461d-b476-d977c523126c%40apereo.org.