File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
src/main/java/fvarrui/maven/plugin/javapackager Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 4747 <version >2.3.0</version >
4848 </dependency >
4949 <dependency >
50- <groupId >commons-lang </groupId >
51- <artifactId >commons-lang </artifactId >
52- <version >2.2 </version >
50+ <groupId >org.apache. commons</groupId >
51+ <artifactId >commons-lang3 </artifactId >
52+ <version >3.9 </version >
5353 </dependency >
5454 <dependency >
5555 <groupId >commons-io</groupId >
Original file line number Diff line number Diff line change 11package fvarrui .maven .plugin .javapackager ;
22
3- import org .apache .commons .lang .SystemUtils ;
3+ import org .apache .commons .lang3 .SystemUtils ;
44
55public class Main {
66
Original file line number Diff line number Diff line change 1717import java .util .List ;
1818import java .util .Map ;
1919
20- import org .apache .commons .lang .SystemUtils ;
20+ import org .apache .commons .lang3 .SystemUtils ;
2121import org .apache .maven .execution .MavenSession ;
2222import org .apache .maven .plugin .AbstractMojo ;
2323import org .apache .maven .plugin .BuildPluginManager ;
Original file line number Diff line number Diff line change 1616import java .nio .file .Files ;
1717
1818import org .apache .commons .io .IOUtils ;
19- import org .apache .commons .lang .StringUtils ;
19+ import org .apache .commons .lang3 .StringUtils ;
2020import org .apache .maven .plugin .MojoExecutionException ;
2121
2222
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ public class JavaUtils {
44
55 public static int getJavaMajorVersion () {
66 String version = System .getProperty ("java.version" );
7- return Integer .parseInt (version .substring ( 0 , version . indexOf ( " ." )) );
7+ return Integer .parseInt (version .split ( " \\ ." )[ 0 ] );
88 }
99
1010}
Original file line number Diff line number Diff line change 88import java .util .Arrays ;
99import java .util .List ;
1010
11- import org .apache .commons .lang .StringUtils ;
11+ import org .apache .commons .lang3 .StringUtils ;
1212import org .apache .maven .plugin .MojoExecutionException ;
1313import org .codehaus .plexus .util .cli .CommandLineException ;
1414import org .codehaus .plexus .util .cli .Commandline ;
You can’t perform that action at this time.
0 commit comments