Re: [xwiki-users] AddUserToGroup Programmatically

2014-06-11 Thread Daniel Ebanja
Hi Jeremie, adding the member to the group works just well. The problem is that the same user or say member can be added several times to the same group. I need some means to stop this. I can't see that log. Thanks Am 11.06.2014 01:08 schrieb Jeremie BOUSQUET jeremie.bousq...@gmail.com: Hi, Le

Re: [xwiki-users] AddUserToGroup Programmatically

2014-06-11 Thread Marius Dumitru Florea
So you're saying that getXObject returns null even if there is a matching object? Can you try it outside the context of your current code? Thanks, Marius On Tue, Jun 10, 2014 at 10:06 PM, Daniel Ebanja danieleba...@googlemail.com wrote: Hi, i am adding Users to a group as shown below d want to

Re: [xwiki-users] IntelleJ Errors

2014-06-11 Thread Marius Dumitru Florea
The module that fails, xwiki-platform-test, depends on the xwiki-platform-rest-model and for some reason your IDE doesn't find this dependency. Please read (again) http://dev.xwiki.org/xwiki/bin/view/Community/Building , especially the part about configuring the XWiki custom Maven remote

Re: [xwiki-users] IntelleJ Errors

2014-06-11 Thread wafid
hello. thank you for your reply but : I can not build xwiki. is that there is an order to build the modules? - Mail original - De: Marius Dumitru Florea [via XWiki] ml-node+s475771n7590972...@n2.nabble.com À: wafid mahfoudh.atm...@telecom-bretagne.eu Envoyé: Mercredi 11 Juin 2014

Re: [xwiki-users] IntelleJ Errors

2014-06-11 Thread Paul Libbrecht
Walid, try doing it all from the command line first. Make sure you have changed your ~/.m2/settings.xml first, of course. Report command-line-build-errors here… many people are Maven experts here. UIs such as IntelliJ idea (which I love and use) are a tick more unpredictable but the maven

Re: [xwiki-users] IntelleJ Errors

2014-06-11 Thread wafid
thanks for all. changed the file: ~ / .m2/settings.xml means the code indicate in the page: http://dev.xwiki.org/xwiki/bin/view/Community/Building ? i did it. I started with 5.4.5 xwiki-platform module. I did the following : open IntelliJ open project. choose pom.xml opening. .. the same

[xwiki-users] xwiki code isn't interpreted in footer?

2014-06-11 Thread Pascal BASTIEN
Hello, Are there a way to include some page in footer? I tried without success {{include context=NEW reference=BacASable.PiedDePage/}} in and in footer.vm and  Footer:Space Copyright. Thxs. Pascal B ___ users mailing list users@xwiki.org

Re: [xwiki-users] Maven errors

2014-06-11 Thread Guillaume Louis-Marie Delhumeau
Could you tip: mvn --version and paste here the results? 2014-06-04 13:31 GMT+02:00 wafid mahfoudh.atm...@telecom-bretagne.eu: i checkout xwiki-platform-5.4.5 tag and build it without any modification. i build it with Java 8. -- View this message in context:

Re: [xwiki-users] xwiki code isn't interpreted in footer?

2014-06-11 Thread Thomas Mortagne
*.vm template files only interpret Velocity and are supposed to generate html, the wiki syntax is not supported there. You can use #includeInContext or #includeTopic there. See http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+In+Context+Macro and

Re: [xwiki-users] Maven errors

2014-06-11 Thread wafid
wafid@pc-eqi06128:~$ mvn --version Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100) Maven home: /usr/local/maven Java version: 1.7.0_60, vendor: Oracle Corporation Java home: /usr/local/java/jdk1.7.0_60/jre Default locale: fr_FR, platform encoding: UTF-8

Re: [xwiki-users] Maven errors

2014-06-11 Thread wafid
i changed the java for 1.7 - Mail original - De: Guillaume \Louis-Marie\ Delhumeau [via XWiki] ml-node+s475771n7590978...@n2.nabble.com À: wafid mahfoudh.atm...@telecom-bretagne.eu Envoyé: Mercredi 11 Juin 2014 11:38:32 Objet: Re: Maven errors Could you tip: mvn --version and paste

Re: [xwiki-users] xwiki code isn't interpreted in footer?

2014-06-11 Thread Caleb James DeLisle
.vm files are Velocity code, not XWiki syntax so if you want to include a page, you could do $xwiki.getDocument(BacASable.PiedDePage).getRenderedContent() which would output the relevant html. Thanks, Caleb On 06/11/2014 11:34 AM, Pascal BASTIEN wrote: Hello, Are there a way to include some

Re: [xwiki-users] xwiki code isn't interpreted in footer?

2014-06-11 Thread Pascal BASTIEN
Thanks both :-) De : Caleb James DeLisle c...@cjdns.fr À : XWiki Users users@xwiki.org Envoyé le : Mercredi 11 juin 2014 11h47 Objet : Re: [xwiki-users] xwiki code isn't interpreted in footer? .vm files are Velocity code, not XWiki syntax so if you want to

Re: [xwiki-users] Syntax Guide Page doesn't work because of 'Failed to execute the [velocity] macro'

2014-06-11 Thread Clemens Klein-Robbenhaar
On 06/10/2014 05:34 PM, -bt- wrote: Hello Marius, thanks for your fast answer. I tried it but it still doesn't work. I also tried to delete some pages as the where not replaced by the import. For test I setup a new machine with a vanilla xwiki 6.0.1 and import the content from the other

Re: [xwiki-users] Syntax Guide Page doesn't work because of 'Failed to execute the [velocity] macro'

2014-06-11 Thread Marius Dumitru Florea
On Wed, Jun 11, 2014 at 1:51 PM, Clemens Klein-Robbenhaar c.robbenh...@espresto.com wrote: On 06/10/2014 05:34 PM, -bt- wrote: Hello Marius, thanks for your fast answer. I tried it but it still doesn't work. I also tried to delete some pages as the where not replaced by the import. For test

Re: [xwiki-users] Maven errors

2014-06-11 Thread Clemens Klein-Robbenhaar
On 06/11/2014 03:02 PM, Guillaume Louis-Marie Delhumeau wrote: I have looked at wafid setup: - ~/m2/settings.xml looks ok - maven looks ok - java jdk looks ok - xwiki sources look ok (git clone xwiki-platform git checkout xwiki-platform-5.4.5) The error is on xwiki-platform-core:

Re: [xwiki-users] Maven errors

2014-06-11 Thread wafid
this time another problem. Here are all the steps I did: //*** wafid@pc-eqi06128:~$ cd .m2 wafid@pc-eqi06128:~/.m2$ ls -a . .. repository settings.xml wafid@pc-eqi06128:~/.m2$ rm ~/.m2/repository -Rf wafid@pc-eqi06128:~/.m2$ ls -a . ..

Re: [xwiki-users] Syntax Guide Page doesn't work because of 'Failed to execute the [velocity] macro'

2014-06-11 Thread Marius Dumitru Florea
On Wed, Jun 11, 2014 at 2:47 PM, Marius Dumitru Florea mariusdumitru.flo...@xwiki.com wrote: On Wed, Jun 11, 2014 at 1:51 PM, Clemens Klein-Robbenhaar c.robbenh...@espresto.com wrote: On 06/10/2014 05:34 PM, -bt- wrote: Hello Marius, thanks for your fast answer. I tried it but it still

Re: [xwiki-users] Maven errors

2014-06-11 Thread wafid
here is the error in the file target/surefire-reports/TEST-com.xpn.xwiki.doc.XWikiDocumentTest.xml //* testcase name=testGetDocumentSection10

Re: [xwiki-users] Maven errors

2014-06-11 Thread Guillaume Louis-Marie Delhumeau
It seems I haven't fully released xwiki-commons and xwiki-rendering 5.4.5 on maven central. I just have done this. Don't we have them on our own Maven repository ? Anyway, Wafid, it should be fixed within the next 2 hours... Sorry for that. Guillaume 2014-06-11 16:23 GMT+02:00 wafid

Re: [xwiki-users] Maven errors

2014-06-11 Thread wafid
settings.xml //* settings profiles profile idxwiki/id repositories repository idxwiki-snapshots/id nameXWiki Nexus Snapshot Repository Proxy/name

Re: [xwiki-users] Maven errors

2014-06-11 Thread Clemens Klein-Robbenhaar
I remember I usually get that problem, too after flushing my maven repo Can you please retry to run just the mvn clean install a second time. Usually when it fails the first time it works the second time this time another problem. Here are all the steps I did:

Re: [xwiki-users] Maven errors

2014-06-11 Thread wafid
thanks Guillaume. - Mail original - De: Guillaume \Louis-Marie\ Delhumeau [via XWiki] ml-node+s475771n759099...@n2.nabble.com À: wafid mahfoudh.atm...@telecom-bretagne.eu Envoyé: Mercredi 11 Juin 2014 16:36:33 Objet: Re: Maven errors It seems I haven't fully released xwiki-commons and

Re: [xwiki-users] Maven errors

2014-06-11 Thread Jeremie BOUSQUET
2014-06-11 16:34 GMT+02:00 Guillaume Louis-Marie Delhumeau gdelhum...@xwiki.com: It seems I haven't fully released xwiki-commons and xwiki-rendering 5.4.5 on maven central. I just have done this. Don't we have them on our own Maven repository ? I see it in your nexus, with: Uploaded

Re: [xwiki-users] Maven errors

2014-06-11 Thread Guillaume Louis-Marie Delhumeau
xwiki-commons and xwiki-rendering 5.4.5 should be on maven central now. 2014-06-11 17:02 GMT+02:00 Jeremie BOUSQUET jeremie.bousq...@gmail.com: 2014-06-11 16:34 GMT+02:00 Guillaume Louis-Marie Delhumeau gdelhum...@xwiki.com: It seems I haven't fully released xwiki-commons and