cancel
Showing results for 
Search instead for 
Did you mean: 

Schema definition override doesn't work.

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

I want to override the group schema definition with my own attribute with the Nuxeo default one.

I create with Nuxeo IDE a "Nuxeo plugin Project".

I add this component xml file into my eclipse project into the src/main/resources/OSGI-INF/myproject-schema-contrib.xml file:

<component name="fr.mycompanyname.myproject.schema.contribution">
  <!-- to be sure to deployed after the Nuxeo default contributions>
  <require>org.nuxeo.ecm.directory.types</require>

  <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
    <schema name="group" src="directoryschema/group.xsd"/>
  </extension>
</component>

I add my specific group.xsd definition into src/main/resources/directoryschema/ directory into my eclipse project. I add this following line into the src/main/resources/META-INF/MANIFEST.MF file:

Nuxeo-Component: OSGI-INF/myproject-schema-contrib.xml

The schema group deployed is always the default one.

1 ACCEPTED ANSWER

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

Dear Me,

As explained here, you must add the override="true" parameter into your schema description.

<schema override="true" name="group" src="directoryschema/group.xsd"/>

You must have a message in your log that says your contribution is skipped as you didn't put this attribute I'm not sure but I think...

Regards

View answer in original post

1 REPLY 1

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

Dear Me,

As explained here, you must add the override="true" parameter into your schema description.

<schema override="true" name="group" src="directoryschema/group.xsd"/>

You must have a message in your log that says your contribution is skipped as you didn't put this attribute I'm not sure but I think...

Regards

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.