Skip to content

Commit 9307969

Browse files
committed
U fixed bug determining modules from libs
1 parent 6f0cbba commit 9307969

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
2-
#Wed Jan 15 13:21:32 WET 2020
2+
#Wed Jan 15 13:24:23 WET 2020
33
javapackager-0.8.8.jar>=
44
javapackager-0.8.8.pom>=
-18 Bytes
Binary file not shown.

releases/fvarrui/maven/javapackager/maven-metadata-local.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
<version>0.8.7</version>
2020
<version>0.8.8</version>
2121
</versions>
22-
<lastUpdated>20200115132132</lastUpdated>
22+
<lastUpdated>20200115132423</lastUpdated>
2323
</versioning>
2424
</metadata>

src/main/java/fvarrui/maven/plugin/javapackager/PackageMojo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ private String getRequiredModules(File libsFolder) throws MojoExecutionException
775775

776776
String modules =
777777
ProcessUtils.execute(
778-
jdeps,
778+
jdeps.getAbsolutePath(),
779779
"-q",
780780
"--ignore-missing-deps",
781781
"--print-module-deps",
@@ -793,7 +793,7 @@ private String getRequiredModules(File libsFolder) throws MojoExecutionException
793793

794794
String modules =
795795
ProcessUtils.execute(
796-
jdeps,
796+
jdeps.getAbsolutePath(),
797797
"-q",
798798
"--list-deps",
799799
"--multi-release", JavaUtils.getJavaMajorVersion(),

src/main/java/fvarrui/maven/plugin/javapackager/utils/ProcessUtils.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static String execute(File workingDirectory, String executable, Object ..
5050
command.setExecutable(executable);
5151
createArguments(command, arguments);
5252

53-
Logger.info("Executing command: " + command.getCommandline());
53+
Logger.info("Executing command: " + StringUtils.join(command.getCommandline(), " "));
5454

5555
Process process = command.execute();
5656

@@ -76,8 +76,4 @@ public static String execute(String executable, Object... arguments) throws Mojo
7676
return execute(new File("."), executable, arguments);
7777
}
7878

79-
public static String execute(File executable, Object... arguments) throws MojoExecutionException {
80-
return execute(new File("."), executable.getAbsolutePath(), arguments);
81-
}
82-
8379
}

0 commit comments

Comments
 (0)