cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Steele (JIRA)" <>
Subject [jira] [Commented] (CB-9704) Apache Cordova 5 does not support using a custom nexus repository for android builds
Date Mon, 15 Jan 2018 18:15:00 GMT


Matt Steele commented on CB-9704:

[~ajaygupta0512] I'm running into a similar issue; are you still doing this?

Newer versions of cordova-android moved away from mavenCentral() so my regex no longer works.
Before I start making it more complex I want to see if there's any better options.

I also published a question on StackOverflow:

> Apache Cordova 5 does not support using a custom nexus repository for android builds
> ------------------------------------------------------------------------------------
>                 Key: CB-9704
>                 URL:
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: Ionic
>            Reporter: Ajay Gupta
>            Priority: Major
> We are using AngularJS and Ionic for writing a mobile application supported both on IOS
and Android.  When we do "ionic build android --release", it creates a build.gradle file in
both platforms/android directory and platforms/android/CordovaLib directory.  Both of these
files point to mavenCentral() as the repository which tries to download artifacts directly
from the maven central repo (  We are trying to build our mobile
apps as part of a Jenkins build behind company proxy and would like to have gradle reach out
to our internal Maven nexus repository instead of reaching out to the central maven repository
directly.  Our internal Neux repository would then proxy everything to the maven central repository.
> We cannot hand edit the build.gradle file as it is a generated file and so any custom
changes made to it would be lost in the next build.  Cordova 5 supports adding custom extensions
using build-extras.gradle file but it does not support overriding repositories.  
> As a workaround, we have defined a pre-build Cordova hook to search replace mavenCentral()
references to our local maven repository before doing an android build.  It works but is a
unnecessary workaround and not a very clean solution.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message