From version < 27.66 >
edited by Admin
on 2019/11/13 13:01
To version < 27.67 >
edited by Admin
on 2019/11/25 15:49
< >
Change comment: Imported extension [org.xwiki.platform:xwiki-platform-flavor-api] from repository [maven-xwiki:maven:http://nexus.xwiki.org/nexus/content/groups/public]

Summary

Details

ExtensionCode.ExtensionClass[0]
Last version
... ... @@ -1,1 +1,1 @@
1 -11.9
1 +11.10
Properties
... ... @@ -1,5 +1,5 @@
1 -maven.groupid=org.xwiki.platform maven.artifactid=xwiki-platform-flavor-api maven.Model=org.xwiki.platform:xwiki-platform-flavor-api:jar:11.9 xwiki.extension.recommendedVersions.commons=org.xwiki.commons:.*/[11.9] xwiki.extension.recommendedVersions=org.xwiki.commons:.*/[11.9],
2 - org.xwiki.rendering:.*/[11.9],
3 - org.xwiki.platform:.*/[11.9] xwiki.extension.recommendedVersions.platform=org.xwiki.commons:.*/[11.9],
4 - org.xwiki.rendering:.*/[11.9],
5 - org.xwiki.platform:.*/[11.9]
1 +maven.groupid=org.xwiki.platform maven.artifactid=xwiki-platform-flavor-api maven.Model=org.xwiki.platform:xwiki-platform-flavor-api:jar:11.10 xwiki.extension.recommendedVersions.commons=org.xwiki.commons:.*/[11.10] xwiki.extension.recommendedVersions=org.xwiki.commons:.*/[11.10],
2 + org.xwiki.rendering:.*/[11.10],
3 + org.xwiki.platform:.*/[11.10] xwiki.extension.recommendedVersions.platform=org.xwiki.commons:.*/[11.10],
4 + org.xwiki.rendering:.*/[11.10],
5 + org.xwiki.platform:.*/[11.10]
ExtensionCode.ExtensionDependencyClass[296]
Dependency version constraint
... ... @@ -1,0 +1,1 @@
1 +11.10
Extension version
... ... @@ -1,0 +1,1 @@
1 +11.10
Dependency id
... ... @@ -1,0 +1,1 @@
1 +org.xwiki.commons:xwiki-commons-extension-api
Repositories
... ... @@ -1,0 +1,1 @@
1 +maven-xwiki:maven:http://nexus.xwiki.org/nexus/content/groups/public
ExtensionCode.ExtensionDependencyClass[297]
Dependency version constraint
... ... @@ -1,0 +1,1 @@
1 +11.10
Extension version
... ... @@ -1,0 +1,1 @@
1 +11.10
Dependency id
... ... @@ -1,0 +1,1 @@
1 +org.xwiki.platform:xwiki-platform-extension-script
Repositories
... ... @@ -1,0 +1,1 @@
1 +maven-xwiki:maven:http://nexus.xwiki.org/nexus/content/groups/public
ExtensionCode.ExtensionDependencyClass[298]
Dependency version constraint
... ... @@ -1,0 +1,1 @@
1 +11.10
Extension version
... ... @@ -1,0 +1,1 @@
1 +11.10
Dependency id
... ... @@ -1,0 +1,1 @@
1 +org.xwiki.platform:xwiki-platform-rest-api
Repositories
... ... @@ -1,0 +1,1 @@
1 +maven-xwiki:maven:http://nexus.xwiki.org/nexus/content/groups/public
ExtensionCode.ExtensionVersionClass[104]
Download URL
... ... @@ -1,0 +1,1 @@
1 +extension:org.xwiki.platform%3Axwiki-platform-flavor-api/11.10?rid=maven-xwiki
id
... ... @@ -1,0 +1,1 @@
1 +org.xwiki.platform:xwiki-platform-flavor-api
Repositories
... ... @@ -1,0 +1,1 @@
1 +maven-xwiki:maven:http://nexus.xwiki.org/nexus/content/groups/public
Version
... ... @@ -1,0 +1,1 @@
1 +11.10
lorryAPI to get flavors from the repositories.
TypeJAR
Developed by

XWiki Development Team

Active Installs0
Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1
Bundled With

XWiki Standard

Installable with the Extension Manager

Description

XWiki offers different Flavors. A Flavor is a collection of applications. When you install a Flavor, you get a wiki fully configured for a use-case.

This system is mostly visible since XWiki 9.5 which strongly rely on it.

Flavor picker

In some places, you will see the Flavor picker, which is designed to make you chose a Flavor between the extensions available in your repositories. Since 8.1 flavors are also searched in local repository.

flavor-picker.png

Valid flavors

Since 8.0 the Flavor picker won't display all flavors found on various repositories right away. Instead it starts a background job which validate each flavor and find the right version for your distribution. You will see a progress bar and the valid flavor will be automatically added once found.

Known flavors

Since 8.1 it's possible for a distribution to indicate known flavors, which means flavors id and version known to be valid with this distribution. Its usually flavors in sync with the distribution itself or well known like XWiki Flavor or XWiki Enterprise Flavors.

In a Maven project it must be indicated the pom.xml of the distribution package (or its parent) the following way:

 
   
   
        org.xwiki.platform:xwiki-platform-distribution-flavor/${project.version},
        org.xwiki.enterprise:xwiki-enterprise-ui-mainwiki/${project.version},
        org.xwiki.enterprise:xwiki-enterprise-ui-wiki/${project.version}
   
 

Known invalid flavors

Since 9.5 it's possible for a distribution to indicate known invalid flavors, which means flavors id known to be invalid with this distribution (a good example is XWiki Enterprise which are invalid in 9.5+).

In a Maven project it must be indicated the pom.xml of the distribution package (or its parent) the following way:

 
   
   
        org.xwiki.enterprise:xwiki-enterprise-ui-mainwiki,
        org.xwiki.enterprise:xwiki-enterprise-ui-wiki
   
 

How to create a Flavor

This part is technical and designed for technical users.

Technically, a Flavor is nothing but a simple Extension with category flavor (as in flavor in Maven), which depends on other Extensions.

Usually it's a XAR (but it does not have to) with a few Flavor specific pages like the home page and dependencies on various applications.

You might be interested by creating a project in the XWiki Contrib space.

Here is an example of a Flavor, built with Maven:


xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 4.0.0
 
   org.xwiki.commons
   xwiki-commons-pom
   7.1-milestone-2
 
 org.xwiki.contrib
 my-flavor
 My Flavor
 xar
 Description of my Flavor
 
   
   flavor
 
 
   
   
     org.xwiki.enterprise
     xwiki-enterprise-ui-wiki
     ${commons.version}
     xar
     runtime
   
   
   
     org.xwiki.contrib
     xwiki-macro-pdfviewer
     1.4
     xar
     runtime
   
   
   
     org.xwiki.contrib
     application-filemanager-ui
     2.0-rc-1
     xar
     runtime
   
 
 
   
   
     
       org.xwiki.commons
       xwiki-commons-tool-xar-handlers
       ${commons.version}
     
   
   
     
     
       org.xwiki.commons
       xwiki-commons-tool-xar-plugin
       ${commons.version}
     
   
 

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.

Dependencies

Dependencies for this extension (org.xwiki.platform:xwiki-platform-flavor-api 11.9):

Dependencies for this extension (org.xwiki.platform:xwiki-platform-flavor-api 11.10):

Get Connected