Return-Path: X-Original-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B3C97D6F for ; Thu, 14 Jul 2011 09:59:23 +0000 (UTC) Received: (qmail 41457 invoked by uid 500); 14 Jul 2011 09:59:21 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 41296 invoked by uid 500); 14 Jul 2011 09:59:14 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 40380 invoked by uid 99); 14 Jul 2011 09:59:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 09:59:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.43] (HELO mail-ww0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2011 09:59:01 +0000 Received: by wwi18 with SMTP id 18so148733wwi.0 for ; Thu, 14 Jul 2011 02:58:39 -0700 (PDT) Received: by 10.216.167.19 with SMTP id h19mr3679340wel.5.1310637519300; Thu, 14 Jul 2011 02:58:39 -0700 (PDT) Received: from bblfish.home (AAubervilliers-651-1-121-161.w86-198.abo.wanadoo.fr [86.198.36.161]) by mx.google.com with ESMTPS id fx12sm86800wbb.59.2011.07.14.02.58.37 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Jul 2011 02:58:38 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: setting a non standard mvn local repository From: Henry Story In-Reply-To: Date: Thu, 14 Jul 2011 11:58:36 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <7F25C83E-DFCA-4766-A41F-3F8CFC251AEE@bblfish.net> References: <370819C2-89A7-40AA-B3C9-EEC8BB679C1B@bblfish.net> <56DA1BF9-2FA9-4081-97E3-4C74D0283074@bblfish.net> <643DCEE2-5947-493A-A738-61DB8CBCC052@bblfish.net> To: clerezza-dev@incubator.apache.org X-Mailer: Apple Mail (2.1084) On 14 Jul 2011, at 11:41, Reto Bachmann-Gm=FCr wrote: > On Thu, Jul 14, 2011 at 11:18 AM, Henry Story = wrote: >>=20 >> On 14 Jul 2011, at 11:04, Reto Bachmann-Gm=FCr wrote: >>=20 >>> Hi, >>>=20 >>> The property for the local repository is: >>> 'org.ops4j.pax.url.mvn.localRepository' is you set this as system >>> property the launcher will pass it on to felix. >>>=20 >>> The property that can be used to set the list of (remote) = repositories >>> is 'org.ops4j.pax.url.mvn.repositories' which you cannot set as >>> argument as it is overridden by the launcher (would be easy to also >>> use an existing value), you could I think change the property at >>> runtime. >>=20 >> yep, that works. Thanks. >>=20 >> Might be worth adding that to the documentation somwhere as it was (I = felt) quite difficult to find. >=20 > It is documented here: > = http://www.ops4j.org/projects/pax/url/pax-url-mvn/apidocs/org/ops4j/pax/ur= l/mvn/internal/Connection.html >=20 > you may open an issue with pax to have it more prominently documented. The issue might be that their pom says: OPS4J Pax Url - mvn: protocol handler. Detailed information to be found at = http://wiki.ops4j.org/confluence/x/CoA6. If you try every url except www.ops4j.org you get a failure. Having the = pom point at the source repository would be good too. But their svn links are down. >=20 >=20 >> Btw, how did you get that so quickly? Does Netbeans make it easier to = browse remote maven source code? >=20 > I used a search engine available at http://google.com where it was the > first result for the query "pax-url-mvn localRepository" you mean google code? Ok. Good to know that works better than the = others. Still relying on google to help people find the doc, shows something is = not quite right. >=20 >>=20 >> While I am on documentation I found that a lot of the links off >>=20 >> http://incubator.apache.org/clerezza/ >>=20 >> were broken. Such as this one for example >>=20 >> = http://incubator.apache.org/clerezza/mvn-site/rdf.jena.sparql/index.html >>=20 > The problem might have been in wget-ing the site from > https://builds.apache.org/job/clerezza-site/site/, would be good if > you could open an issue and look into it. Sorry, but I really have some things I need to do that are higher on my = priority list. Henry >=20 > Cheers, > Reto >=20 >> Henry >>=20 >>=20 >>>=20 >>> Reto >>>=20 >>>=20 >>>=20 >>> On Wed, Jul 13, 2011 at 11:50 PM, Karl Pauls = wrote: >>>> ah sorry, I missed that you where asking for a Clerezza specific >>>> solution. I don't know whether this will work in this case or not = (as >>>> you guessed correctly, I only know that this works for running = mvn). >>>>=20 >>>> Sorry again for the noise. >>>>=20 >>>> regards, >>>>=20 >>>> Karl >>>>=20 >>>> On Wed, Jul 13, 2011 at 11:22 PM, Henry Story = wrote: >>>>>=20 >>>>> On 13 Jul 2011, at 23:00, Karl Pauls wrote: >>>>>=20 >>>>>> -Dmaven.repo.local=3D >>>>>>=20 >>>>>> e.g.: >>>>>>=20 >>>>>> -Dmaven.repo.local=3D/Users/foo/.m2/repository >>>>>> notice, its not to the .m2 folder itself but to the repository = folder >>>>>> inside of it. >>>>>=20 >>>>> yes, I was just about to try the above too. I tried it now, and I = don't think it works. >>>>> If I start zz with >>>>>=20 >>>>> $ java -Xmx512m -Xdebug = -Xrunjdwp:transport=3Ddt_socket,server=3Dy,suspend=3Dn,address=3D5005 = -XX:MaxPermSize=3D248M = -Dmaven.repo.local=3D/Users/hjs/.m2/bblfish-branch/repository = -Dfile.encoding=3Dutf-8 -jar = ../target/platform.launcher.tdb-0.5-incubating-SNAPSHOT.jar >>>>>=20 >>>>> The point of this is so that when you run a felix install >>>>>=20 >>>>> zz> :f install = mvn:org.apache.clerezza/platform.security.foafssl.ontologies/0.1-incubatin= g-SNAPSHOT >>>>>=20 >>>>> you can be sure it is going to fetch the correct jar. >>>>>=20 >>>>> If I put a few break points in = org.ops4j.pax.url.maven.commons.MavenConfigurationImpl and I then look = at the properties it does not seem to pick up the desired maven = repository. >>>>>=20 >>>>> So I think your solution works when running mvn. Just to make = sure: have you tried it when running Clerezza? If so then I may just be = looking in the wrong place. >>>>>=20 >>>>> Henry >>>>>=20 >>>>>=20 >>>>>> regards, >>>>>>=20 >>>>>> Karl >>>>>>=20 >>>>>> On Wed, Jul 13, 2011 at 10:54 PM, Henry Story = wrote: >>>>>>> Hi, >>>>>>>=20 >>>>>>> I have been spending way too much time searching how to set a = non standard local maven repository. >>>>>>> I have been walking through the org.ops4j.pax.url.maven.commons = code, which is extreemly tedious in IntelliJ because the source files = are not tied in a standard way to the class jars. So one has to hunt = around the web to find the source files, and as it happens their own = site is down. >>>>>>>=20 >>>>>>> I tried a few command line arguements including = -Dmaven.repo.local=3D/Dev/.m2/ and setting $M2_HOME but nothing seems to = work. Perhaps someone knows the magic incantation? >>>>>>>=20 >>>>>>> Henry >>>>>>>=20 >>>>>>> Social Web Architect >>>>>>> http://bblfish.net/ >>>>>>>=20 >>>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> -- >>>>>> Karl Pauls >>>>>> karlpauls@gmail.com >>>>>> http://twitter.com/karlpauls >>>>>> http://www.linkedin.com/in/karlpauls >>>>>> https://profiles.google.com/karlpauls >>>>>=20 >>>>> Social Web Architect >>>>> http://bblfish.net/ >>>>>=20 >>>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>> -- >>>> Karl Pauls >>>> karlpauls@gmail.com >>>> http://twitter.com/karlpauls >>>> http://www.linkedin.com/in/karlpauls >>>> https://profiles.google.com/karlpauls >>>>=20 >>=20 >> Social Web Architect >> http://bblfish.net/ >>=20 >>=20 Social Web Architect http://bblfish.net/