clean install
clean install tomcat7:run
clean package -P prod
clean package -Dmaven.test.skip=true
install
compiler:compile
org.apache.maven.plugins:maven-compiler-plugin:compile
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
1.[cmd]mvn compile
[eclipse]->maven->m2eclipse->pom.xml
<build>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
2.specify the jar name
<build>
<finalName>demo</finalName>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>