<
From version < 28.1 >
edited by Vincent Massol
on 2019/11/28 16:23
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

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.VincentMassol
1 +xwiki:XWiki.Admin
ExtensionCode.ExtensionClass[0]
Description
... ... @@ -29,6 +29,7 @@
29 29   </properties>
30 30  {{/code}}
31 31  
32 +
32 32  === Known invalid flavors
33 33  
34 34  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+).
... ... @@ -125,21 +125,3 @@
125 125   </build>
126 126  </project>
127 127  {{/code}}
128 -
129 -=== Testing ===
130 -
131 -To test a flavor you're developing follow these steps:
132 -* Build the flavor: ##mvn clean install##
133 -* Edit the ##META-INF/extension.xed## file inside the XWiki WAR you're testing with and add your flavor id and version to the list
134 - of known flavors. Note that this is a hack since normally the canonical way would be to deploy the flavor in a
135 - searchable XWiki Extensions Repository but that's a lot more complex and time-consuming.
136 - * Modify the `<xwiki.extension.knownFlavors>` tag to add the flavor id and version. For example if you wish to test the ##org.xwiki.contrib:flavor-demo/1.1-SNAPSHOT## flavor:(((
137 -{{code language='xml'}}
138 - <xwiki.extension.knownFlavors>
139 - org.xwiki.platform:xwiki-platform-distribution-flavor-mainwiki/11.10,
140 - org.xwiki.platform:xwiki-platform-distribution-flavor-wiki/11.10,
141 - org.xwiki.contrib:flavor-demo/1.1-SNAPSHOT</xwiki.extension.knownFlavors>
142 -{{/code}}
143 -* Add your local Maven repository as an Extension repository in the XWiki instance.
144 -* Start or restart XWiki.
145 -

Get Connected