Skip to content

Instantly share code, notes, and snippets.

@ov7a
Created Oct 23, 2021
Embed
What would you like to do?
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