IDEA Create Maven project or pratice small progress

 1.File->New Project ->

 

2.input the name that =>Click finish

 

 3. Put the Mouse on the Java =>New Class

 

4. input what you want 

import java.io.BufferedReader;
import java.io.InputStreamReader;

class TakeInputfromUser {
public static void main(String...s)throws Exception{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);

System.out.println("Enter a value");
String str =br.readLine();
System.out.println(str);


}
}
5. Run

 Maven Trouble shoot:

  1. add the Maven bin path to the system environment
  2.  

     

2.CMD=>mvn –version

 

 

 

 

 

 

 

Clean 报错

 

 

 

按照如下图进行

 

 

 

 

3. 出现如下按照https://blog.51cto.com/4925054/2127840

 

 

 

 

posted @ 2020-05-12 16:16  tzmok  阅读(119)  评论(0编辑  收藏  举报