cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling bundle deployment order

Florent_Guillau
World-Class Innovator
World-Class Innovator

I have a bundle that should overwrite some .jsp and .xhtml files in Nuxeo but when starting the server I can see in the logs that Nuxeo insists on deploying my bundle before the other webapp bundles and thus I can't overwrite anything.

Is there a way to control the deployment fragment preprocessing order to make sure my bundle is processed after the standard Nuxeo ones?

1 ACCEPTED ANSWER

Florent_Guillau
World-Class Innovator
World-Class Innovator

Bundle deployment (aka preprocessing) is controlled by the deployment-fragment.xml file, and the <require> elements in it.

Therefore in order to have your bundle preprocessing executed after, for instance, org.nuxeo.ecm.webapp.ui, your deployment-fragment.xml should start with:

<?xml version="1.0"?>
<fragment version="1">
  <require>org.nuxeo.ecm.webapp.ui</require>
  ...
</fragment>

Note that it's important to specify version="1".

Note also that this is new since Nuxeo 5.4. Before that, bundle deployment order was controlled by the Require-Bundle in the MANIFEST.MF.

View answer in original post

1 REPLY 1

Florent_Guillau
World-Class Innovator
World-Class Innovator

Bundle deployment (aka preprocessing) is controlled by the deployment-fragment.xml file, and the <require> elements in it.

Therefore in order to have your bundle preprocessing executed after, for instance, org.nuxeo.ecm.webapp.ui, your deployment-fragment.xml should start with:

<?xml version="1.0"?>
<fragment version="1">
  <require>org.nuxeo.ecm.webapp.ui</require>
  ...
</fragment>

Note that it's important to specify version="1".

Note also that this is new since Nuxeo 5.4. Before that, bundle deployment order was controlled by the Require-Bundle in the MANIFEST.MF.

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.