You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dolphinscheduler.apache.org by jo...@apache.org on 2020/07/23 02:28:33 UTC

[incubator-dolphinscheduler-maven-plugin] 18/34: all file add Apache License header

This is an automated email from the ASF dual-hosted git repository.

journey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler-maven-plugin.git

commit 8a152f68e3c33468e339572ef76722277d714fdb
Author: gaojun2048 <54...@qq.com>
AuthorDate: Tue Jun 16 12:55:20 2020 +0800

    all file add Apache License header
---
 .../dolphinscheduler/maven/DolphinDescriptorGenerator.java       | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/dolphinscheduler/maven/DolphinDescriptorGenerator.java b/src/main/java/org/apache/dolphinscheduler/maven/DolphinDescriptorGenerator.java
index 2df3603..23b0dee 100644
--- a/src/main/java/org/apache/dolphinscheduler/maven/DolphinDescriptorGenerator.java
+++ b/src/main/java/org/apache/dolphinscheduler/maven/DolphinDescriptorGenerator.java
@@ -38,7 +38,7 @@ import java.util.ArrayList;
 import java.util.List;
 
 /**
- * create the spi service file
+ * create the spi services file
  */
 @Mojo(name = "generate-dolphin-service-descriptor",
         defaultPhase = LifecyclePhase.PACKAGE,
@@ -83,10 +83,11 @@ public class DolphinDescriptorGenerator extends AbstractMojo {
             pluginImplClasses = findPluginImplClasses(loader);
         }
         catch (Exception e) {
-            throw new MojoExecutionException(String.format("%n%nError scanning for classes implementing %s.", pluginClassName), e);
+            throw new MojoExecutionException(String.format("%n%nError for find the classes that implements %s.", pluginClassName), e);
         }
+
         if (pluginImplClasses.isEmpty()) {
-            throw new MojoExecutionException(String.format("%n%nYou must have at least one class that implements %s.", pluginClassName));
+            throw new MojoExecutionException(String.format("%n%nNot find classes implements %s, You must have at least one class that implements %s.", pluginClassName, pluginClassName));
         }
 
         if (pluginImplClasses.size() > 1) {
@@ -94,7 +95,7 @@ public class DolphinDescriptorGenerator extends AbstractMojo {
             for (Class<?> pluginClass : pluginImplClasses) {
                 sb.append(pluginClass.getName()).append(LS_ALIAS);
             }
-            throw new MojoExecutionException(String.format("%n%nYou have more than one class that implements %s:%n%n%s%nYou can only have one per plugin project.", pluginClassName, sb));
+            throw new MojoExecutionException(String.format("%n%nFound more than one class that implements %s:%n%n%s%nYou can only have one per plugin project.", pluginClassName, sb));
         }
 
         try {