File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/main/java/fvarrui/maven/plugin/javapackager Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -828,6 +828,7 @@ private String getRequiredModules(File libsFolder) throws MojoExecutionException
828
828
modulesList = Arrays .asList (modules .split ("," ))
829
829
.stream ()
830
830
.map (module -> module .trim ())
831
+ .filter (module -> !module .isEmpty ())
831
832
.collect (Collectors .toList ());
832
833
833
834
} else if (customizedJre && JavaUtils .getJavaMajorVersion () >= 9 ) {
@@ -845,6 +846,7 @@ private String getRequiredModules(File libsFolder) throws MojoExecutionException
845
846
modulesList = Arrays .asList (modules .split ("\n " ))
846
847
.stream ()
847
848
.map (module -> module .trim ())
849
+ .filter (module -> !module .isEmpty ())
848
850
.filter (module -> !module .startsWith ("JDK removed internal" ))
849
851
.collect (Collectors .toList ());
850
852
@@ -856,6 +858,11 @@ private String getRequiredModules(File libsFolder) throws MojoExecutionException
856
858
857
859
modulesList .addAll (additionalModules );
858
860
861
+ if (modulesList .isEmpty ()) {
862
+ getLog ().warn ("It was not possible to determine the necessary modules. all modules will be included" );
863
+ modulesList .add ("ALL-MODULE-PATH" );
864
+ }
865
+
859
866
getLog ().info ("- Modules: " + modulesList );
860
867
861
868
return StringUtils .join (modulesList , "," );
You can’t perform that action at this time.
0 commit comments