Custom versioning problem


For my graduation project I have to customise Nuxeo. To begin I did a plugin with my companyintern project lifecycle (It's works fine). But when I try to do a version management it does nothing, I use this xml :

<?xml version="1.0"?>
<component name="fr.société.nuxeo.versioning.contrib">
<provide interface="org.nuxeo.ecm.core.versioning.VersioningService" />
<implementation class="org.nuxeo.ecm.core.versioning.VersioningComponent" />
<extension-point name="versioningService">
<object class="org.nuxeo.ecm.core.versioning.VersioningServiceDescriptor " />
<extension-point name="versioningRules">
<initialState major="1" minor="0" />
<options lifeCycleState="*">
<none />
<minor />
<major default="true" />
<versioningRule typeName="File" enabled="true">
<initialState major="1" minor="1" />
<options lifeCycleState="*">
<none />
<minor default="true" />
<major />
<object class="org.nuxeo.ecm.core.versioning.VersioningRuleDescriptor " />
class=" org.nuxeo.ecm.core.versioning.DefaultVersioningRuleDescripto r " />

Somebody can help me, please,I don't understand how this xml don't have any consequence in Nuxeo.

Sorry for my bad english and thank you for your advice.

0 votes

1 answers



This XML redefines a service, its implementation, its available extension points. You don't want to do all that. Just do a contribution to the extension point you're interested in.

0 votes

Thank for your answer,

I try this xml:

&lt;?xml version=&quot;1.0&quot;?&gt;
   &lt;component name=&quot;;&gt;
     &lt;extension point=&quot;versioningRules&quot; target=&quot;org.nuxeo.ecm.core.versioning.VersioningService&quot;&gt;
          &lt;options lifeCycleState=&quot;*&quot;&gt;
          &lt;minor default=&quot;true&quot; /&gt;
      &lt;major /&gt;

And it work fine. But I don't understand how in the nuxeo documentation it was : "&lt;extension-point name=..." instead of : "&lt;extension point..."


The documentation you mention is about an internal Nuxeo-defined service. You're confusing defining a service versus using it.