I don't see why we should discuss on this list how pax poms could be improved. Open an issue there, you may also commit the patch to subversion or if the project has already been migrated make a pull-request on github.
For Clerezza documentation is very important, so help there is of very high value, even if just opening the issue. Reto On Thu, Jul 14, 2011 at 11:58 AM, Henry Story <[email protected]> wrote: > > On 14 Jul 2011, at 11:41, Reto Bachmann-Gmür wrote: > >> On Thu, Jul 14, 2011 at 11:18 AM, Henry Story <[email protected]> >> wrote: >>> >>> On 14 Jul 2011, at 11:04, Reto Bachmann-Gmür wrote: >>> >>>> Hi, >>>> >>>> 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. >>>> >>>> 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. >>> >>> yep, that works. Thanks. >>> >>> Might be worth adding that to the documentation somwhere as it was (I felt) >>> quite difficult to find. >> >> It is documented here: >> http://www.ops4j.org/projects/pax/url/pax-url-mvn/apidocs/org/ops4j/pax/url/mvn/internal/Connection.html >> >> you may open an issue with pax to have it more prominently documented. > > The issue might be that their pom says: > > <description> > OPS4J Pax Url - mvn: protocol handler. > Detailed information to be found at > http://wiki.ops4j.org/confluence/x/CoA6. > </description> > > 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. > >> >> >>> Btw, how did you get that so quickly? Does Netbeans make it easier to >>> browse remote maven source code? >> >> 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. > >> >>> >>> While I am on documentation I found that a lot of the links off >>> >>> http://incubator.apache.org/clerezza/ >>> >>> were broken. Such as this one for example >>> >>> http://incubator.apache.org/clerezza/mvn-site/rdf.jena.sparql/index.html >>> >> 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 > >> >> Cheers, >> Reto >> >>> Henry >>> >>> >>>> >>>> Reto >>>> >>>> >>>> >>>> On Wed, Jul 13, 2011 at 11:50 PM, Karl Pauls <[email protected]> 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). >>>>> >>>>> Sorry again for the noise. >>>>> >>>>> regards, >>>>> >>>>> Karl >>>>> >>>>> On Wed, Jul 13, 2011 at 11:22 PM, Henry Story <[email protected]> >>>>> wrote: >>>>>> >>>>>> On 13 Jul 2011, at 23:00, Karl Pauls wrote: >>>>>> >>>>>>> -Dmaven.repo.local=<absolut-path-to-repository folder> >>>>>>> >>>>>>> e.g.: >>>>>>> >>>>>>> -Dmaven.repo.local=/Users/foo/.m2/repository >>>>>>> notice, its not to the .m2 folder itself but to the repository folder >>>>>>> inside of it. >>>>>> >>>>>> 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 >>>>>> >>>>>> $ java -Xmx512m -Xdebug >>>>>> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 >>>>>> -XX:MaxPermSize=248M >>>>>> -Dmaven.repo.local=/Users/hjs/.m2/bblfish-branch/repository >>>>>> -Dfile.encoding=utf-8 -jar >>>>>> ../target/platform.launcher.tdb-0.5-incubating-SNAPSHOT.jar >>>>>> >>>>>> The point of this is so that when you run a felix install >>>>>> >>>>>> zz> :f install >>>>>> mvn:org.apache.clerezza/platform.security.foafssl.ontologies/0.1-incubating-SNAPSHOT >>>>>> >>>>>> you can be sure it is going to fetch the correct jar. >>>>>> >>>>>> 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. >>>>>> >>>>>> 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. >>>>>> >>>>>> Henry >>>>>> >>>>>> >>>>>>> regards, >>>>>>> >>>>>>> Karl >>>>>>> >>>>>>> On Wed, Jul 13, 2011 at 10:54 PM, Henry Story <[email protected]> >>>>>>> wrote: >>>>>>>> Hi, >>>>>>>> >>>>>>>> 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. >>>>>>>> >>>>>>>> I tried a few command line arguements including >>>>>>>> -Dmaven.repo.local=/Dev/.m2/ and setting $M2_HOME but nothing seems to >>>>>>>> work. Perhaps someone knows the magic incantation? >>>>>>>> >>>>>>>> Henry >>>>>>>> >>>>>>>> Social Web Architect >>>>>>>> http://bblfish.net/ >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Karl Pauls >>>>>>> [email protected] >>>>>>> http://twitter.com/karlpauls >>>>>>> http://www.linkedin.com/in/karlpauls >>>>>>> https://profiles.google.com/karlpauls >>>>>> >>>>>> Social Web Architect >>>>>> http://bblfish.net/ >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Karl Pauls >>>>> [email protected] >>>>> http://twitter.com/karlpauls >>>>> http://www.linkedin.com/in/karlpauls >>>>> https://profiles.google.com/karlpauls >>>>> >>> >>> Social Web Architect >>> http://bblfish.net/ >>> >>> > > Social Web Architect > http://bblfish.net/ > >
