Use Cases

This section describes some use cases and the goals to reach them.

Disable Extensions

I want to disable one or more extensions in order to build my workspace without the features shipped with these extensions. The disabled extension modules shall not be part of the Maven build but the files shall not be deleted.

In this case the goal disable-extensions fulfils the described requirement. The Maven project is adjusted by disabling the extensions and by removing the extensions from your build. After that the extension-config modules will be udated in order to remove the dependencies from the affected components.

mvn com.coremedia.maven:coremedia-blueprint-maven-plugin:disable-extensions -Dcoremedia.project.extensions=<my-extension-descriptor-bom>

Remove Extensions

I want to remove extensions from my workspace. I don't want to use them, I don't want to build them every time I build my CoreMedia project in the CI and I don't want unused extension code be part of my releases.

In this case you have to call the remove-extensions goal. This goal behaves like the disable-extensions goal by disabling an extension and removing it from the build. After that the source files will be removed from the project.

mvn com.coremedia.maven:coremedia-blueprint-maven-plugin:remove-extensions -Dcoremedia.project.extensions=<my-extension-descriptor-bom>

Update Extensions

I removed an Extension Descriptor manually and want to update the extension-config dependencies now.

In this case you simply have to call the update-extensions goal as described above. This goal updates the extension-config dependencies for all extensions.

mvn com.coremedia.maven:coremedia-blueprint-maven-plugin:update-extensions