Re: [xwiki-devs] help for building
thanks Cristian, had forgotten about profiles (which also seem to be about applications...). In any case... now I see my mvn build throws a lot of exceptions (not fatal errors) because it could not connect to the DB which, indeed, I had not configured. Is that needed or ignoreable ? And if yes, where ? (ideally somewhere in ~/build.properties or so?). Should that DB be the "production DB" (I guess not!). Just a build-scratch? Something in the middle? thanks again paul Le 2 janv. 08 à 01:07, Cristian Vrabie a écrit :
Try using maven profiles: run "mvn clean install -Pmysql" in the root folder (xwiki-product-curriki). This should compile all the subprojects (including web,plugins,gtw, etc) and make a snapshot in the /web/target/XXX-SNAPSHOT, wich is ready to be deployed in the webbaps folder of you server.
Paul Libbrecht wrote:
Hello XWikiers,
I am bit in doubt with building XWiki and particularly Curriki which is my goal.
On the one hand there seems to be DB-oriented sub-folders for which mvn install seems to only install... a pom in the repo!
On the other hand, the default build seems to build only for a special DB, hypersonic... This indeed what I got doing the following a few days ago: - svn co of trunks - cd-ed to xwiki-product-curriki - mvn install, failed - cd-ed to xwiki-platform-web, mvn install success - cd-ed to xwiki-platform-pom, mvn install success - cd-ed to xwiki-product-curriki, mvn install success
What is the normal way to get the "normal build" (mvn install in xwiki-product-curriki) to build for a specific DB?
Thus far I am still hoping to build curriki for Postgres if possible. In any case it should work for MySQL since that's where curriki.org runs.
Hi Paul, For all questions on building XWiki please check the following page which answers your 2 questions from below: http://dev.xwiki.org/xwiki/bin/view/Community/Building In short: * For the build, you need to configure the xwiki remote repo in your settings.xml if you don't intend to rebuild the whole source tree * For the MySQL profile, you need to configure a MySQL db. Again see: http://dev.xwiki.org/xwiki/bin/view/Community/Building#HBuildingforaspecific... Thanks -Vincent On Jan 2, 2008, at 2:09 AM, Paul Libbrecht wrote:
thanks Cristian,
had forgotten about profiles (which also seem to be about applications...). In any case... now I see my mvn build throws a lot of exceptions (not fatal errors) because it could not connect to the DB which, indeed, I had not configured.
Is that needed or ignoreable ? And if yes, where ? (ideally somewhere in ~/build.properties or so?). Should that DB be the "production DB" (I guess not!). Just a build-scratch? Something in the middle?
thanks again
paul
Le 2 janv. 08 à 01:07, Cristian Vrabie a écrit :
Try using maven profiles: run "mvn clean install -Pmysql" in the root folder (xwiki-product-curriki). This should compile all the subprojects (including web,plugins,gtw, etc) and make a snapshot in the /web/target/XXX-SNAPSHOT, wich is ready to be deployed in the webbaps folder of you server.
Paul Libbrecht wrote:
Hello XWikiers,
I am bit in doubt with building XWiki and particularly Curriki which is my goal.
On the one hand there seems to be DB-oriented sub-folders for which mvn install seems to only install... a pom in the repo!
On the other hand, the default build seems to build only for a special DB, hypersonic... This indeed what I got doing the following a few days ago: - svn co of trunks - cd-ed to xwiki-product-curriki - mvn install, failed - cd-ed to xwiki-platform-web, mvn install success - cd-ed to xwiki-platform-pom, mvn install success - cd-ed to xwiki-product-curriki, mvn install success
What is the normal way to get the "normal build" (mvn install in xwiki-product-curriki) to build for a specific DB?
Thus far I am still hoping to build curriki for Postgres if possible. In any case it should work for MySQL since that's where curriki.org runs.
Hi xwikiers. I have tried to install Stable: xwiki-web-standard-1.1.2.war <https://forge.objectweb.org/project/download.php?group_id=170&file_id=9423> . But i have an error : javax.servlet.ServletException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: Could not create a DBCP pool My database is xwiki, my user is xwiki@localhost and his pass is xwiki. and my hibernate.cfg.xml have been uncommented, so i have: <property name="connection.url">jdbc:mysql://localhost/xwiki?useServerPrepStmts=false</property> <property name="connection.username">xwiki</property> <property name="connection.password">xwiki</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property> <property name="connection.pool_size">2</property> <property name="statement_cache.size">2</property> <mapping resource="xwiki.hbm.xml"/> <mapping resource="feeds.hbm.xml"/> Last point, i have add mysql-connector-java-5.0.4-bin.jar in WEB-INF/lib. What should i do? Happy new year. -- Antoine SEILLES Doctorant (phd student) Pikko software Cap Omega - Rond Point Benjamin Franklin CS 39521 34960 Montpellier Cedex 2 FRANCE LIRMM CNRS UMR 5506 - 161 rue Ada 34392 Montpellier Cedex 5 FRANCE Tel: +33 (0)6 10 192 055 http://www.pikko-software.com http://www.lirmm.fr
Well i have found my mistake. It was not the good version of mysql-connector i had. Now i have compiled the xwiki-core and i've got a xwiki-core-1.3-SNAPSHOT.jar file. How can i use it? Thank for your time. antoine SEILLES a écrit :
Hi xwikiers.
I have tried to install Stable: xwiki-web-standard-1.1.2.war <https://forge.objectweb.org/project/download.php?group_id=170&file_id=9423> . But i have an error :
javax.servlet.ServletException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: Could not create a DBCP pool
My database is xwiki, my user is xwiki@localhost and his pass is xwiki.
and my hibernate.cfg.xml have been uncommented, so i have: <property name="connection.url">jdbc:mysql://localhost/xwiki?useServerPrepStmts=false</property>
<property name="connection.username">xwiki</property> <property name="connection.password">xwiki</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">2</property> <property name="statement_cache.size">2</property> <mapping resource="xwiki.hbm.xml"/> <mapping resource="feeds.hbm.xml"/>
Last point, i have add mysql-connector-java-5.0.4-bin.jar in WEB-INF/lib.
What should i do?
Happy new year.
-- Antoine SEILLES Doctorant (phd student) Pikko software Cap Omega - Rond Point Benjamin Franklin CS 39521 34960 Montpellier Cedex 2 FRANCE LIRMM CNRS UMR 5506 - 161 rue Ada 34392 Montpellier Cedex 5 FRANCE Tel: +33 (0)6 10 192 055 http://www.pikko-software.com http://www.lirmm.fr
Le 2 janv. 08 à 09:52, Vincent Massol a écrit :
In short: * For the build, you need to configure the xwiki remote repo in your settings.xml if you don't intend to rebuild the whole source tree
that's documented and works (I was missing a dependency... easy to fix).
* For the MySQL profile, you need to configure a MySQL db. Again see: http://dev.xwiki.org/xwiki/bin/view/Community/ Building#HBuildingforaspecificdatabase
That is exactly where things are completely fuzzy to my taste: - it is not clear at all what is the purpose of this database access ([INFO] [xwiki-packager:import] ??? part of a build?). This would be really really needed in order for me to name the database slightly intelligently (and maybe use it?? ;-)). - that page writes what's below... and it refers to a settings section of pom.xml. The word settings is wrong, it should be properties (I suppose, still need to set it up). After understanding, confirming (and testing), I suppose I'll be able to change the documentation page. paul
Hypersonic and Derby are embedded database so you won't need anything setup to execute the build for them. However for MySQL and PostGreSQL you'll need to have the database installed, set up and running before you can run the build with their profiles. More specifically check the configuration required by looking at the corresponding profiles section in the top level pom.xml file.
Le 7 janv. 08 à 17:47, Paul Libbrecht a écrit :
Le 2 janv. 08 à 09:52, Vincent Massol a écrit :
In short: * For the build, you need to configure the xwiki remote repo in your settings.xml if you don't intend to rebuild the whole source tree
I have now adapted the documentation bit so as to suggest to put the properties within the settings.xml's profile... which I seem to find appropriate. I hope it is correct. At least build 6666 (!) built curriki fine with such a setting (mvn - Ppgsql clean install)! paul
Hi Paul, On Jan 8, 2008, at 5:13 PM, Paul Libbrecht wrote:
Le 7 janv. 08 à 17:47, Paul Libbrecht a écrit :
Le 2 janv. 08 à 09:52, Vincent Massol a écrit :
In short: * For the build, you need to configure the xwiki remote repo in your settings.xml if you don't intend to rebuild the whole source tree
I have now adapted the documentation bit so as to suggest to put the properties within the settings.xml's profile... which I seem to find appropriate.
I hope it is correct. At least build 6666 (!) built curriki fine with such a setting (mvn - Ppgsql clean install)!
Thanks but see my other email to you where I said I had to revert your change. Thanks -Vincent
Le 8 janv. 08 à 17:16, Vincent Massol a écrit :
I have now adapted the documentation bit so as to suggest to put the properties within the settings.xml's profile... which I seem to find appropriate.
Thanks but see my other email to you where I said I had to revert your change
I tried again... hey... did I not ask whether it's possible to restrict to non-visual editing ! ;-) !!! The thing is... I was promoted to visual editor because I used section editing... maybe my preferences are still visual but in all cases, it should stick to the last editing mode it was made with. Tell me if it works for you, just in case! paul
On Jan 8, 2008, at 5:27 PM, Paul Libbrecht wrote:
Le 8 janv. 08 à 17:16, Vincent Massol a écrit :
I have now adapted the documentation bit so as to suggest to put the properties within the settings.xml's profile... which I seem to find appropriate.
Thanks but see my other email to you where I said I had to revert your change
I tried again... hey... did I not ask whether it's possible to restrict to non-visual editing ! ;-) !!!
I know, I know...
The thing is... I was promoted to visual editor because I used section editing... maybe my preferences are still visual but in all cases, it should stick to the last editing mode it was made with.
Tell me if it works for you, just in case!
Sounds good to me. Thanks -Vincent
participants (3)
-
antoine SEILLES -
Paul Libbrecht -
Vincent Massol