I'm getting the majorminor 51.0 error when running Xwiki v 6.3 on a Mac
with Java 8. From what I have been reading from support pages Xwiki 6.3
should work with Java 7 and later. I don't care to install Java 7 but
maybe I have to?
Jason
Hello,
To clean and Pull Request my patch I need to launch "mvn xar:format" command but I didn't managed to use it and didn't found a simple documentation about it (notice, I didn't eat a maven book either)
I don't want rebuild Xwiki package but I want only check/clean xml file (from XAR) before to pull request it on github.
Here my manipulation on my debian testing:- I installed current maven package (3.0.4 version)
- I create the conf file ~/.m2/settings.xml provided here: http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven
(I'm behind a http proxy, then I add http://dev.xwiki.org/xwiki/bin/view/Community/Building#HBuildingbehindaproxy parameter in ~/.m2/settings.xm)
I download Xwiki source with theses commands:#Only first time
cd /home/git-wiki/
git clone https://github.com/XXXX/xwiki-platform.git
cd xwiki-platform/
git remote add upstream https://github.com/xwiki/xwiki-platform.git
git remote -v
# synchro before modify
cd /home/git-wiki/xwiki-platform/
git fetch upstream
git checkout master
git merge upstream/master
#branch creation and modif of files
git checkout -B XWIKI-MaBranche
vi /home/git-wiki/xwiki-platform/xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-ui/src/main/resources/XWiki/TagCloud.xm
Here my problems, I want to check TagCloud.xm with mvn xar:format:cd /home/git-wiki/xwiki-platform/xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-ui mvn -e xar:formatI obtain the insanity that I paste at the end of this mail!
To resume, howto check my tiny improvment with mvn xar:format?In the same time, I want to avoid maven download the entire world each time I launch it :-))
Thxs for yor help.
Pascal B
*****************************
root@buttle:/home/git-wiki/xwiki-platform/xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-ui# mvn -e xar:format
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building XWiki Platform - Tag - UI 6.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.962s
[INFO] Finished at: Fri Jan 09 10:24:42 CET 2015
[INFO] Final Memory: 19M/228M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project xwiki-platform-tag-ui: Could not resolve dependencies for project org.xwiki.platform:xwiki-platform-tag-ui:xar:6.4-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project xwiki-platform-tag-ui: Could not resolve dependencies for project org.xwiki.platform:xwiki-platform-tag-ui:xar:6.4-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.xwiki.platform:xwiki-platform-tag-ui:xar:6.4-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:256)
... 26 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionExcept…
*******************If I launch mvn -e xar:format from a directory without pom.xml file:
[ERROR] No plugin found for prefix 'xar' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), xwiki-plugins-snapshots (http://nexus.xwiki.org/nexus/content/groups/public-snapshots), xwiki-plugins-releases (http://nexus.xwiki.org/nexus/content/groups/public), central (http://repo.maven.apache.org/maven2)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'xar' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), xwiki-plugins-snapshots (http://nexus.xwiki.org/nexus/content/groups/public-snapshots), xwiki-plugins-releases (http://nexus.xwiki.org/nexus/content/groups/public), central (http://repo.maven.apache.org/maven2)]
Many thanks - the first option works fine for me.
----- Reply message -----
From: "Clemens Klein-Robbenhaar" <c.robbenhaar(a)espresto.com>
To: <users(a)xwiki.org>
Subject: Re: [xwiki-users] Manipulate presentation of LiveTable column data
Date: Thu, Jan 8, 2015 21:23
On 01/08/2015 03:15 AM, Bryn Jeffries wrote:
> I have a custom groovy script at DemoSpace.StudiesJSON that generates JSON of the form:
> {
> "totalrows": 5,
> "matchingtags": {},
> "tags" : [],
> "offset": 1,
> "reqNo": 0,
> "returnedrows": 1,
> "rows": [{"doc_viewable":true,"study_id":3,"study_name":"My Study","description":"A test study"}]
> }
>
> This is then called from a LiveTable macro as
> {{velocity}}
> #set($columns = ["study_name", "description", "study_id"])
> #set($options = {
> "resultPage":"DemoSpace.StudiesJSON"
> })
> #set($columnsProperties = {
> "study_name" : { "type" : "text", "displayName": "Study Name", "filterable": false },
> "description" : { "type" : "text", "displayName": "Description", "filterable": false },
> "study_id" : { "type" : "text", "displayName": "Study ID", "filterable": false }
> })
> #livetable("studyTable" $columns $columnsProperties $options)
> {{/velocity}}
>
> What I'd really like is to put links into each row, for instance replacing each entry in the first ("Study Name") column with a link of the form [[${study_name}>>StudyDetails?study_id=${study_id}]]. Is there a way to do this? I've tried generating a link in the JSON but the query strings seem to get corrupted and the link is lost in any case within the actual LiveTable.
>
I think you can do the following here:
- change the JSON script generating the results so that "study_name" contains the HTML you want, like:
> "rows": [{"doc_viewable":true,"study_id":3,"study_name":"<a href=\"/xwiki/bin/view/StudySpace/StudyDetails?study_id=3\">My Study</a>","description":"A test study"}]
- then set the columnsProperty for study_name to html:
> #set($columnsProperties = {
> "study_name" : { "type" : "html", ...
For a list of accepted options see here:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro#HParam…
Alternatively you could add your own "LiveTableRow renderer" in JavaScript, as explained in the "All Attachments" example on the same page:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro#HAllAt…
However this is a "all or nothing" solution - you will need to render all columns in the JavaScript, not only the ones you want to customize.
I would only use this solution if the first option is not sufficient for some reason.
Cheers
Clemens
> Thanks,
>
> Bryn
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
I have a custom groovy script at DemoSpace.StudiesJSON that generates JSON of the form:
{
"totalrows": 5,
"matchingtags": {},
"tags" : [],
"offset": 1,
"reqNo": 0,
"returnedrows": 1,
"rows": [{"doc_viewable":true,"study_id":3,"study_name":"My Study","description":"A test study"}]
}
This is then called from a LiveTable macro as
{{velocity}}
#set($columns = ["study_name", "description", "study_id"])
#set($options = {
"resultPage":"DemoSpace.StudiesJSON"
})
#set($columnsProperties = {
"study_name" : { "type" : "text", "displayName": "Study Name", "filterable": false },
"description" : { "type" : "text", "displayName": "Description", "filterable": false },
"study_id" : { "type" : "text", "displayName": "Study ID", "filterable": false }
})
#livetable("studyTable" $columns $columnsProperties $options)
{{/velocity}}
What I'd really like is to put links into each row, for instance replacing each entry in the first ("Study Name") column with a link of the form [[${study_name}>>StudyDetails?study_id=${study_id}]]. Is there a way to do this? I've tried generating a link in the JSON but the query strings seem to get corrupted and the link is lost in any case within the actual LiveTable.
Thanks,
Bryn
Hi,
I've started working with XWiki for a short time and I'm facing a probem
with the rights management.
I configured XWiki so every registered users have read permission as
default.
Then I created some private spaces with read access for a specific group
of users. Let's say group A has read permission on space A.
Other groups don't have access to this space A. So it is fine.
But I need sometimes to allow some specific groups or users to access
some specific pages in this space. For example, group B should have read
access on page 1 of space A.
I modified the access rights of the page accordingly. The problem is: it
doesn't work when the page is a subpage. It is working fine if the page
is at the root of the space.
Is it a normal behaviour? What shall I do to make this work?
Thanks.
Yvan Arnaud
Having installed the SVN Application from the extension manager and copying the attached jars into /usr/lib/xwiki/WEB-INF/lib/ I think I've almost got the tool running. However, I still get the following error when I try to list pages to be committed:
org.tmatesoft.svn.core.SVNException: svn: Cannot create directory '/usr/share/tomcat7/.subversion/auth/svn.simple'
Is there a configuration step that I've missed?
Thanks,
Bryn
I've recycled some code from the tutorials and snippets in my own code, and in particular I've used the following in some velocity scripts:
#set($offset = $util.parseInt($request.get('offset')))
which yields the following warning in the log:
WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of method [com.xpn.xwiki.api.Util.parseInt] in 40:xwiki:DemoSpace.DemoPage@4,29
I notice in http://www.xwiki.org/xwiki/bin/view/FAQ/WhyDoIHaveDeprecatedUsageOfMethodXX… that a very similar warning is mentioned, but in the answer the recomendation is to switch from $xwiki.parseInt to $util.parseInt. But it looks like this has also been deprecated. So what should we be using instead?
Hello,
Is it possible to include a link to a page in edit mode WITH inline editor rather than view mode without using the full URL?
I applied this answer XWiki- Users - Link to page in edit mode without using full url?
but unfortunaly it doesn't work for inline editor :-((xpage=edit&editor=inline)
Thxs
Pascal B