Composite project custom action

Hi,

Custom action not work on composite project.

composite_action.zip (693.6 KB)

I Create composite project with App (full) link addon
Addon provide an entity with view browse and an customAction

the plugin work fine

image

image

but CustomAction was not found and referential not have addon base package scan

image

image

Workaround i put in all my action jmix pkg

Thx,

gabriel

Hi Gabriel,

Add ActionsConfiguration bean to your add-on configuration as follows:

public class AddonConfiguration {

    // ...

    @Bean("addon_AddonUiActions")
    public ActionsConfiguration actions(ApplicationContext applicationContext,
                                        AnnotationScanMetadataReaderFactory metadataReaderFactory) {
        ActionsConfiguration actionsConfiguration = new ActionsConfiguration(applicationContext, metadataReaderFactory);
        actionsConfiguration.setBasePackages(Collections.singletonList("com.company.addon"));
        return actionsConfiguration;
    }
}

We’ll add it to the project template to avoid this problem in the future. Created issue.