Hi list,
I am trying to build and run the current git master version of BaseX. Unfortunately I could not find proper documentation on that process, just a bunch of docs saying how to use git etc. I should add that I did not use maven before.
So I just went ahead, cloned both the basex and the basex-api repos, and called "mvn compile" in both of them (after an sudo apt-get install maven2, I am using Debian testing). That was guesswork, after noticing that "maven build" does not work and asking google ;-) In the basex folder, this compiled a lot of stuff, but all I could find is a bunch of class files - I had expected to find the jar file with all the data I need somewhere. By pure accident I then found a remark in the "integration" wiki page saying mvn has a "package" target, which at least gave me the jar file I looked for (maybe that could be added to the readme file, and the development section could clarify that "integrate into IDE" also contains the "how to build basex on command-line" doc). Now I wonder, can I re-use the etc and lib folder from 6.7.1, or do I need different versions? In basex-api, all I got was an error that maven could not find the artefact "org.basex:basex:jar:6.8-SNAPSHOT" - whatever that exactly means, I assume I have to tell it somehow where it can find the basex core jar file?
I am quite a loss here, maybe someone can shed some light on the build process.
Kind regards, Ralf
Hi again,
okay, I got this working. I had to to "mvn install" in the basex folder, then the jar file was placed somewhere for basex-api to find it. I will create a pull request and/or update the wiki page to more clearly document this.
Kind regards, Ralf
On Wednesday 21 September 2011 18:49:03 Ralf Jung wrote:
Hi list,
I am trying to build and run the current git master version of BaseX. Unfortunately I could not find proper documentation on that process, just a bunch of docs saying how to use git etc. I should add that I did not use maven before.
So I just went ahead, cloned both the basex and the basex-api repos, and called "mvn compile" in both of them (after an sudo apt-get install maven2, I am using Debian testing). That was guesswork, after noticing that "maven build" does not work and asking google ;-) In the basex folder, this compiled a lot of stuff, but all I could find is a bunch of class files - I had expected to find the jar file with all the data I need somewhere. By pure accident I then found a remark in the "integration" wiki page saying mvn has a "package" target, which at least gave me the jar file I looked for (maybe that could be added to the readme file, and the development section could clarify that "integrate into IDE" also contains the "how to build basex on command-line" doc). Now I wonder, can I re-use the etc and lib folder from 6.7.1, or do I need different versions? In basex-api, all I got was an error that maven could not find the artefact "org.basex:basex:jar:6.8-SNAPSHOT" - whatever that exactly means, I assume I have to tell it somehow where it can find the basex core jar file?
I am quite a loss here, maybe someone can shed some light on the build process.
Kind regards, Ralf _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Thanks Ralf,
this night, we've polished numerous pages in our Wiki, and also revised the Maven page..
http://docs.basex.org/wiki/Maven
but you've probably found your own way. Even better than that.
Contributions to our Wiki (not matter how minor or major they are) are always welcome, by the way! It's easy to request a new account [1] and directly update our pages.
Looking forward, Christian
[1] http://docs.basex.org/wiki/Special:RequestAccount ___________________________
On Thu, Sep 22, 2011 at 12:33 PM, Ralf Jung ralfjung-e@gmx.de wrote:
Hi again,
okay, I got this working. I had to to "mvn install" in the basex folder, then the jar file was placed somewhere for basex-api to find it. I will create a pull request and/or update the wiki page to more clearly document this.
Kind regards, Ralf
On Wednesday 21 September 2011 18:49:03 Ralf Jung wrote:
Hi list,
I am trying to build and run the current git master version of BaseX. Unfortunately I could not find proper documentation on that process, just a bunch of docs saying how to use git etc. I should add that I did not use maven before.
So I just went ahead, cloned both the basex and the basex-api repos, and called "mvn compile" in both of them (after an sudo apt-get install maven2, I am using Debian testing). That was guesswork, after noticing that "maven build" does not work and asking google ;-) In the basex folder, this compiled a lot of stuff, but all I could find is a bunch of class files - I had expected to find the jar file with all the data I need somewhere. By pure accident I then found a remark in the "integration" wiki page saying mvn has a "package" target, which at least gave me the jar file I looked for (maybe that could be added to the readme file, and the development section could clarify that "integrate into IDE" also contains the "how to build basex on command-line" doc). Now I wonder, can I re-use the etc and lib folder from 6.7.1, or do I need different versions? In basex-api, all I got was an error that maven could not find the artefact "org.basex:basex:jar:6.8-SNAPSHOT" - whatever that exactly means, I assume I have to tell it somehow where it can find the basex core jar file?
I am quite a loss here, maybe someone can shed some light on the build process.
Kind regards, Ralf _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de