MCPcopy Create free account
hub / github.com/SeanDragon/protools / install

Method install

common/src/main/java/pro/tools/system/ToolMaven.java:16–22  ·  view source on GitHub ↗
(String groupId, String artifactId, String version, String fileName)

Source from the content-addressed store, hash-verified

14 }
15
16 public static boolean install(String groupId, String artifactId, String version, String fileName) throws IOException {
17 String mvnInstallStr = "mvn install:install-java.file -DgroupId=" + groupId + " -DartifactId=" + artifactId + " " +
18 "-Dversion=" + version + " -Dfile=" + fileName + " -Dpackaging=jar -DgeneratePom=true";
19 ToolShell.ToolCommandExec toolCommandExec = new ToolShell.ToolCommandExec(true, false, mvnInstallStr);
20 ToolShell.ToolCommandResult toolCommandResult = ToolShell.execCmd(toolCommandExec);
21 return toolCommandResult.errorMsg.length() <= 1;
22 }
23
24 public static boolean jar(String filePath) throws IOException {
25 String jarStr = "mvn jar:jar";

Callers

nothing calls this directly

Calls 2

execCmdMethod · 0.95
lengthMethod · 0.80

Tested by

no test coverage detected