Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-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 3190B17C82 for ; Sat, 9 Jan 2016 20:42:40 +0000 (UTC) Received: (qmail 1262 invoked by uid 500); 9 Jan 2016 20:42:40 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 1206 invoked by uid 500); 9 Jan 2016 20:42:40 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 1181 invoked by uid 99); 9 Jan 2016 20:42:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jan 2016 20:42:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DBB4A2C14F4 for ; Sat, 9 Jan 2016 20:42:39 +0000 (UTC) Date: Sat, 9 Jan 2016 20:42:39 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4222) Add a flag to add-features-to-repo and install-kar to include conditions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-4222?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1509= 0774#comment-15090774 ]=20 Jean-Baptiste Onofr=C3=A9 commented on KARAF-4222: --------------------------------------------- See: {code} private void copyBundlesConditionalToDestRepository(List artifactRefsConditional) throws MojoExecutionException { for (BundleInfo artifactRef : artifactRefsConditional) { if (ignoreDependencyFlag || (!ignoreDependencyFlag && !artifact= Ref.isDependency())) { Artifact artifact =3D resourceToArtifact(artifactRef.getLoc= ation(), skipNonMavenProtocols); // Avoid getting NPE on artifact.getFile in some cases=20 resolveArtifact(artifact, remoteRepos); if (artifact !=3D null) { copy(artifact, repository); } } } } {code} > Add a flag to add-features-to-repo and install-kar to include conditions > ------------------------------------------------------------------------ > > Key: KARAF-4222 > URL: https://issues.apache.org/jira/browse/KARAF-4222 > Project: Karaf > Issue Type: Improvement > Components: karaf-tooling > Reporter: Jean-Baptiste Onofr=C3=A9 > Assignee: Jean-Baptiste Onofr=C3=A9 > > Right now, the add-features-to-repo goal (and depending of the config, th= e install-kar one) doesn't include the conditional artifacts in the resulti= ng system folder. > It may cause issue to create an offline-ready distribution. > I will add a flag in the add-features-to-repo and install-kar goals to in= clude all conditional resources. -- This message was sent by Atlassian JIRA (v6.3.4#6332)