Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B46B17825 for ; Fri, 25 Sep 2015 03:13:05 +0000 (UTC) Received: (qmail 17548 invoked by uid 500); 25 Sep 2015 03:13:05 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 17518 invoked by uid 500); 25 Sep 2015 03:13:05 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 17507 invoked by uid 99); 25 Sep 2015 03:13:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2015 03:13:05 +0000 Date: Fri, 25 Sep 2015 03:13:04 +0000 (UTC) From: "Ajay Gupta (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-9704) Apache Cordova 5 does not support using a custom nexus repository for android builds MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ajay Gupta created CB-9704: ------------------------------ Summary: Apache Cordova 5 does not support using a custom nexus repository for android builds Key: CB-9704 URL: https://issues.apache.org/jira/browse/CB-9704 Project: Apache Cordova Issue Type: Bug Components: CLI Reporter: Ajay Gupta 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 (http://repo1.maven.org/maven2). 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 (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org