in src/main/java/org/apache/dolphinscheduler/maven/SpiDependencyChecker.java [129:143]
private Artifact getSpiDependency()
throws MojoExecutionException
{
for (Artifact artifact : mavenProject.getArtifacts()) {
if (!isSpiArtifact(artifact)) {
continue;
}
if (!"provided".equals(artifact.getScope())) {
throw new MojoExecutionException(String.format("DolphinScheduler plugin dependency %s must have scope 'provided'.", spiName()));
}
return artifact;
}
throw new MojoExecutionException(String.format("DolphinScheduler plugin must depend on %s.", spiName()));
}