:toc: toc::[] = Maven Build Integration For maven integration of CobiGen you can include the following build plugin into your build: .Build integration of CobiGen ```xml com.devonfw.cobigen cobigen-maven-plugin VERSION-YOU-LIKE cobigen-generate generate-resources generate ``` **Available goals** * `generate`: Generates contents configured by the standard non-compiled configuration folder. Thus generation can be controlled/configured due to an location URI of the configuration and template or increment ids to be generated for a set of inputs. **Available phases** are all phases, which already provide compiled sources such that CobiGen can perform reflection on it. Thus possible phases are for example package, site. == Provide Template Set For generation using the CobiGen maven plug-in, the CobiGen configuration can be provided in two different styles: . By a `configurationFolder`, which should be available on the file system whenever you are running the generation. The value of `configurationFolder` should correspond to the maven file path syntax. + .Provide CobiGen configuration by configuration folder (file) ```xml ... cobigen-templates ... ``` . By maven dependency, whereas the maven dependency should stick on the same conventions as the configuration folder. This explicitly means that it should contain non-compiled resources as well as the `context.xml` on top-level. + .Provide CobiGen configuration by maven dependency (jar) ```xml ... com.devonfw.cobigen templates-XYZ VERSION-YOU-LIKE ... ``` + We currently provide a generic deployed version of the templates on the devonfw-nexus for Register Factory (`cobigen-templates-rf`) and for the devonfw itself (`cobigen-templates-devonfw`). == Build Configuration Using the following configuration you will be able to customize your generation as follows: * `` specifies the root directory the relative `destinationPath` of link:cobigen-core_configuration#Templates-configuration[CobiGen templates configuration] should depend on. Default `${basedir}` * `` declares a package name to be used as input for batch generation. This refers directly to the CobiGen Java Plug-in link:cobigen-javaplugin#`ContainerMatcher`-types[container matchers of type package] configuration. * `` declares a file to be used as input. The CobiGen maven plug-in will try to parse this file to get an appropriate input to be interpreted by any CobiGen plug-in. * `` specifies an link:cobigen-core_configuration#increment-node[increment] ID to be generated. You can specify one single increment with content `ALL` to generate all increments matching the input(s). * `