Summary
Add a lint goal to the dsf-maven-plugin that validates DSF process plugin JARs as part of the Maven build lifecycle.
Motivation
Currently there is no automated way to lint process plugins during the build. The dsf-linter tool already provides this functionality via CLI, but it requires a manual step.
Changes
- Add
linter-core (v0.1.2) as a dependency to dsf-maven-plugin
- Add
LintPluginMojo implementing the lint goal (default phase: verify)
- Add
MavenLinterLogger as adapter between DSF Linter and Maven logging
- Enable the
lint goal in dsf-bpe-test-plugin-v1 and dsf-bpe-test-plugin-v2
Usage
<plugin>
<groupId>dev.dsf</groupId>
<artifactId>dsf-maven-plugin</artifactId>
<executions>
<execution>
<id>lint-plugin</id>
<goals>
<goal>lint</goal>
</goals>
</execution>
</executions>
</plugin>
Configurable parameters: dsf.lint.html, dsf.lint.json, dsf.lint.failOnErrors, dsf.lint.skip, dsf.lint.verbose, dsf.lint.reportPath
The Solution
See the following commit: f43d61e
Summary
Add a
lintgoal to thedsf-maven-pluginthat validates DSF process plugin JARs as part of the Maven build lifecycle.Motivation
Currently there is no automated way to lint process plugins during the build. The dsf-linter tool already provides this functionality via CLI, but it requires a manual step.
Changes
linter-core(v0.1.2) as a dependency todsf-maven-pluginLintPluginMojoimplementing thelintgoal (default phase:verify)MavenLinterLoggeras adapter between DSF Linter and Maven logginglintgoal indsf-bpe-test-plugin-v1anddsf-bpe-test-plugin-v2Usage
Configurable parameters:
dsf.lint.html,dsf.lint.json,dsf.lint.failOnErrors,dsf.lint.skip,dsf.lint.verbose,dsf.lint.reportPathThe Solution
See the following commit: f43d61e