Execute: " mvn assembly:assembly" (mvn command)
出现错误:Error: JAVA_HOME not found in your environment.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Reason: Installed 2 jdk, 1.8 and 1.7 (the last development used 1.8), this time you need to use 1.7
Solution: Advanced System Configuration--->Advanced--->Environment Variables--->System Environment (User Environment, Mainly See The Previous Configuration)
Change JAVA_HOME = D:\Program Files\Java\jdk1.8.0_161 to
JAVA_HOME=D:\Program Files\Java\jdk1.7.0_17
Restart IDE