[OnePlus 3 Guides, News, & Discussion] Gerrit507:
My build always fails at the same point. Is the source basically broken? Any suggestions?

[ 38% 16219/42486] target R.java/Manifest.java: libphotoviewer_appcompat_dynamic (/home/gerrit/android/system/out/target/common/obj/JAVA_LIBRARIES/libphotoviewer_appcompat_dynamic_intermediates/src/R.stamp)
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 38% 16220/42486] target R.java/Manifest.java: libphotoviewer_appcompat (/home/gerrit/android/system/out/target/common/obj/JAVA_LIBRARIES/libphotoviewer_appcompat_intermediates/src/R.stamp)
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 38% 16222/42486] target R.java/Manifest.java: Exchange2 (/home/gerrit/android/system/out/target/common/obj/APPS/Exchange2_intermediates/src/R.stamp)
warning: string 'notification_exchange_calendar_added' has no default translation.
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 38% 16224/42486] target R.java/Manifest.java: HTMLViewer (/home/gerrit/android/system/out/target/common/obj/APPS/HTMLViewer_intermediates/src/R.stamp)
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 38% 16225/42486] target Export Resources: ExtShared (/home/gerrit/android/system/out/target/common/obj/APPS/ExtShared_intermediates/package-export.apk)
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 38% 16226/42486] target R.java/Manifest.java: ExtShared (/home/gerrit/android/system/out/target/common/obj/APPS/ExtShared_intermediates/src/R.stamp)
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 38% 16245/42486] Download: /home/gerrit/android/system/out/target/common/obj/APPS/Gello_intermediates/org.cyanogenmod.gello-40.apk
FAILED: /bin/bash -c "(mvn -q org.apache.maven.plugins:maven-dependency-plugin:2.10:get	org.apache.maven.plugins:maven-dependency-plugin:2.10:copy	-DremoteRepositories=central::::https://maven.cyanogenmod.org/artifactory/gello_prebuilds	-Dartifact=org.cyanogenmod:gello:40:apk	-Dmdep.prependGroupId=true	-Dmdep.overWriteSnapshots=true	-Dmdep.overWriteReleases=true	-Dtransitive=false	-DoutputDirectory=/home/gerrit/android/system/out/target/common/obj/APPS/Gello_intermediates/ )"
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.10:get (default-cli) on project standalone-pom: Couldn't download artifact: Could not transfer artifact org.cyanogenmod:gello:apk:40 from/to central (https://maven.cyanogenmod.org/artifactory/gello_prebuilds): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[ERROR] org.cyanogenmod:gello:apk:40
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false),
[ERROR] central (https://maven.cyanogenmod.org/artifactory/gello_prebuilds, releases=true, snapshots=true)
[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
[ 38% 16245/42486] target Package: ExtShared (/home/gerrit/android/system/out/target/product/oneplus3/obj/APPS/ExtShared_intermediates/package.apk)
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 38% 16245/42486] target Package: HTMLViewer (/home/gerrit/android/system/out/target/product/oneplus3/obj/APPS/HTMLViewer_intermediates/package.apk)
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 38% 16245/42486] target R.java/Manifest.java: Email (/home/gerrit/android/system/out/target/common/obj/APPS/Email_intermediates/src/R.stamp)
warning: string 'account_folder_list_summary_drafts' has no default translation.
warning: string 'account_folder_list_summary_outbox' has no default translation.
warning: string 'account_folder_list_summary_starred' has no default translation.
warning: string 'done_action' has no default translation.
warning: string 'exchange_name' has no default translation.
warning: string 'next_action' has no default translation.
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
nothing matches overlay file notification_bg_normal.9.png, for flavor xxhdpi-v4
nothing matches overlay file notification_bg_normal_pressed.9.png, for flavor mdpi-v19
nothing matches overlay file notification_bg_normal_pressed.9.png, for flavor hdpi-v19
nothing matches overlay file notification_bg_normal_pressed.9.png, for flavor xhdpi-v19
nothing matches overlay file notification_bg_normal_pressed.9.png, for flavor xxhdpi-v4
nothing matches overlay file notification_bg_normal_pressed.9.png, for flavor xxhdpi-v19
[ 38% 16245/42486] Building with Jack: /home/gerrit/android/system/out/target/common/obj/APPS/Exchange2_intermediates/with-local/classes.dex
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: die Regel für Ziel „ninja_wrapper“ scheiterte
make: *** [ninja_wrapper] Fehler 1
make: Verzeichnis „/home/gerrit/android/system“ wird verlassen

#### make failed to build some targets (32:20 (mm:ss)) ####

EDIT:

Seems like it has issues with a ssl cert. I would now basically export the sites cert and add it but where the hell? There are like 10+ folders for ssl certs in the build tree....