标签:path 密码 apache 没有 maven his apach nap pass
1.springboot打包
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
需要增加spring-boot-maven-plugin将依赖的jar包都打进来,成为一个可执行的jar包。
否则报错
D:\2.workspace\miaoshaStable\target>java -jar miaosha-1.0-SNAPSHOT.jar
miaosha-1.0-SNAPSHOT.jar中没有主清单属性
3.命令行mvn打包的时候报错:No compiler is provided in this environment. Perhaps you are running on a JRE
安装jdk8时自动在PATH增加了java的路径,就没有设置JAVA_HOME,应该是缺少JAVA_HOME
D:\2.workspace\miaoshaStable>set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_231 D:\2.workspace\miaoshaStable>echo %JAVA_HOME% C:\Program Files\Java\jdk1.8.0_231
D:\2.workspace\miaoshaStable>mvn clean package
java -jar miaosha-1.0-SNAPSHOT.jar ---执行工程
4.mysql修改root密码
格式:mysqladmin -u用户名 -p旧密码 password 新密码
例子:mysqladmin -uroot -p123456 password 123
标签:path 密码 apache 没有 maven his apach nap pass
原文地址:https://www.cnblogs.com/t96fxi/p/11944189.html