Skip to content

Instantly share code, notes, and snippets.

@ov7a
Created October 23, 2021 10:57
Show Gist options
  • Save ov7a/49bdc723f24e08a308aa70009476f860 to your computer and use it in GitHub Desktop.
Save ov7a/49bdc723f24e08a308aa70009476f860 to your computer and use it in GitHub Desktop.
Integrating bpmnlint with maven
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.12.0</version>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<phase>generate-test-sources</phase>
</execution>
<execution>
<id>npm install bmpnlint</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-test-sources</phase>
<configuration>
<arguments>install bpmnlint --prefix ./target/bpmnlint -g</arguments>
</configuration>
</execution>
<execution>
<id>bmpnlint check</id>
<goals>
<goal>npx</goal>
</goals>
<phase>test</phase>
<configuration>
<arguments>bpmnlint --config
${project.build.testResources[0].directory}/bpmn/linter/.bpmnlintrc
${project.build.resources[0].directory}/bpmn/*.bpmn
</arguments>
</configuration>
</execution>
</executions>
<configuration>
<nodeVersion>v14.18.1</nodeVersion>
<installDirectory>target</installDirectory>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment