Maven2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.
I have a pom.xml
file that defines the dependenc
The solution for scope='system' approach in Java:
public static void main(String[] args) {
String filepath = "/Users/Downloads/lib/";
try (Stream walk = Files.walk(Paths.get(filepath))) {
List result = walk.filter(Files::isRegularFile)
.map(x -> x.toString()).collect(Collectors.toList());
String indentation = " ";
for (String s : result) {
System.out.println(indentation + indentation + "");
System.out.println(indentation + indentation + indentation + ""
+ s.replace(filepath, "").replace(".jar", "")
+ " ");
System.out.println(indentation + indentation + indentation + ""
+ s.replace(filepath, "").replace(".jar", "")
+ " ");
System.out.println(indentation + indentation + indentation + ""
+ s.replace(filepath, "").replace(".jar", "")
+ " ");
System.out.println(indentation + indentation + indentation + "system ");
System.out.println(indentation + indentation + indentation + "" + s + " ");
System.out.println(indentation + indentation + " ");
}
} catch (IOException e) {
e.printStackTrace();
}
}