Commit 8c9920bd authored by liaozan's avatar liaozan 🏀

chore: fix typo

parent 6664da20
......@@ -32,10 +32,10 @@ public class MavenUtils {
}
public static void install(String workDirectory) {
log.info("Prepare to install archive of : {}", workDirectory);
log.info("Prepare to install archive from : {}", workDirectory);
MavenCli mavenCli = new MavenCli();
mavenCli.doMain(getInstallArgs(getSettingsFile().getAbsolutePath()), workDirectory, System.out, System.err);
log.info("Success install archive of : {}", workDirectory);
log.info("Success install archive from : {}", workDirectory);
}
public static String generate(ArchetypeGenerateParam param) {
......@@ -89,11 +89,13 @@ public class MavenUtils {
return SETTINGS_FILE;
}
@SuppressWarnings("SpellCheckingInspection")
private static String[] getInstallArgs(String settingsFile) {
return new String[]{
"-B",
"clean",
"install",
"-Dmaven.test.skip=true",
String.format("-gs=%s", settingsFile)
};
}
......@@ -103,6 +105,7 @@ public class MavenUtils {
return new String[]{
"-B",
"archetype:generate",
"-Dmaven.test.skip=true",
"-DarchetypeGroupId=com.schbrain.kp",
"-DarchetypeArtifactId=schbrain-archetype",
"-DarchetypeVersion=1.0-SNAPSHOT",
......
......@@ -50,9 +50,9 @@ public class ArchetypePreparer implements ApplicationRunner {
.setDirectory(archetypeTemplateDirectory)
.setURI(ARCHETYPE_REPO_URL)
.call();
log.info("Success checkout archetype from {}", ARCHETYPE_REPO_URL);
log.info("Success checkout archetype source from {}", ARCHETYPE_REPO_URL);
} catch (GitAPIException e) {
throw new BaseException("Failed to checkout archetype from git repository", e);
throw new BaseException("Failed to checkout archetype source from git repository", e);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment