Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A62B8200CF4 for ; Sun, 3 Sep 2017 11:36:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A36E8161540; Sun, 3 Sep 2017 09:36:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E93D0161489 for ; Sun, 3 Sep 2017 11:36:52 +0200 (CEST) Received: (qmail 85997 invoked by uid 500); 3 Sep 2017 09:36:51 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 85987 invoked by uid 99); 3 Sep 2017 09:36:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Sep 2017 09:36:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 55AAD1815AB for ; Sun, 3 Sep 2017 09:36:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.001 X-Spam-Level: **** X-Spam-Status: No, score=4.001 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, KAM_LAZY_DOMAIN_SECURITY=1, RDNS_NONE=3] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id BCSZdqrsEPEc for ; Sun, 3 Sep 2017 09:36:45 +0000 (UTC) Received: from blaine.gmane.org (unknown [195.159.176.226]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 65A0860E17 for ; Sun, 3 Sep 2017 09:36:45 +0000 (UTC) Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1doRK9-0000Hn-Di for user@karaf.apache.org; Sun, 03 Sep 2017 11:36:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: user@karaf.apache.org To: user@karaf.apache.org From: Steinar Bang Subject: Re: Karaf Feature vs. OBR Date: Sun, 03 Sep 2017 11:35:36 +0200 Organization: Probably a good idea Lines: 68 Message-ID: <86r2vof7kn.fsf@dod.no> References: <03A43093-4908-433F-BEE9-945D36074F92@leangen.net> <868thzh91q.fsf@dod.no> <864lsnh0vu.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) Mail-Copies-To: never Cancel-Lock: sha1:+djTe3DtXBToNgOrMwHCTfw3aGE= archived-at: Sun, 03 Sep 2017 09:36:53 -0000 >>>>> Steinar Bang : >>>>> Guillaume Nodet : >> Fwiw, bundle:watch is very specific and only check the local repository,= so >> it won't work if you upload a new snapshot on a remote repository. > I was sort of hoping it would work for a different maven repo in the > local file system, which is what I currently have. I tried one (actually two experiments): 1. Made the repository deployed to by travis-ci karaf's local repository.=20 Using the same local repository as maven builds worked when I tried it out on my development machine (after I had made the repository writable by karaf). But it failed when using the repository deployed to by travis-ci on my production machine, because karaf was unable to recognize the deployed snapshots as snapshots in the local repository (actual repositories have a different snapshot structure to the local repository) 2. Since I was in experimentation mode I tried making the repository are both the local repository and added it as a repository, like so: config:edit org.ops4j.pax.url.mvn config:property-set org.ops4j.pax.url.mvn.localRepository /var/www-mav= en/repository config:property-append org.ops4j.pax.url.mvn.repositories ", file:///v= ar/www-maven/repository, http://maven.vaadin.com/vaadin-addons" config:update But this made karaf terribly confused: karaf@root()> feature:repo-add mvn:no.priv.bang.ukelonn/ukelonn.karaf/= LATEST/xml/featuresAdding feature url mvn:no.priv.bang.ukelonn/ukelonn.kara= f/LATEST/xml/features Error executing command: Error resolving artifact no.priv.bang.ukelonn= :ukelonn.karaf:xml:features:1.0.0-SNAPSHOT: [Could not transfer artifact no= .priv.bang.ukelonn:ukelonn.karaf:xml:features:1.0.0-SNAPSHOT from/to repo_1= 276108016 (http://artifactory.lampiris.be/remote-repos/): artifactory.lampi= ris.be, Could not find artifact no.priv.bang.ukelonn:ukelonn.karaf:xml:feat= ures:1.0.0-SNAPSHOT in apache (http://repository.apache.org/content/groups/= snapshots-group/), Could not find artifact no.priv.bang.ukelonn:ukelonn.kar= af:xml:features:1.0.0-SNAPSHOT in sonatype.snapshots.deploy (https://oss.so= natype.org/content/repositories/snapshots/), Could not find artifact no.pri= v.bang.ukelonn:ukelonn.karaf:xml:features:1.0.0-SNAPSHOT in ops4j.sonatype.= snapshots.deploy (https://oss.sonatype.org/content/repositories/ops4j-snaps= hots/), Could not find artifact no.priv.bang.ukelonn:ukelonn.karaf:xml:feat= ures:1.0.0-SNAPSHOT in spring-ebr-repository (http://repository.springsourc= e.com/maven/bundles/external/)] : mvn:no.priv.bang.ukelonn/ukelonn.karaf/LA= TEST/xml/features karaf@root()> (I didn't expect the second experiement to work. I just tried it out to see what would happen...:-) ) So now I'm back to running with the https-URL pointing to the travis-ci deployment repository added to the mvn.repositories setting: config:edit org.ops4j.pax.url.mvn config:property-append org.ops4j.pax.url.mvn.repositories ", https://maven= .bang.priv.no/repository/@snapshots, http://maven.vaadin.com/vaadin-addons" config:property-set org.ops4j.pax.url.mvn.globalUpdatePolicy always config:update So, no success yet at totally automating the deployment from a travis-ci build.=20=20 I still need to to "bundle:update" from the karaf console on each bundle I want updated after a new snapshot has been added.