# Configure
Add the following to your `pom.xml`
```xml
nu.zoom.dsl
endgen-maven-plugin
1.2-SNAPSHOT
endgen
${project.basedir}/src/main/endpoint-templates
${project.basedir}/src/main/endgen/test01.endpoints
```
Replace the `` with the latest published version of the endgen plugin.
* `templates` should point to the template directory to use.
* `dsl` should be the file to generate code from.
* `output` can be used to specify the directory where the generated files are written. Default is `${project.build.directory}/generated-sources/endgen`.
* `parser` can be used to force the use of either the `Endpoints` or the `States` parser. Default is to determined by looking at the file ending of the dsl-file.
If you have several DSL-files that you wish to generate from you can repeat the `` block with other configurations.