Tomcat7 플러그인 문제를 추가
당신은 우리 받는다는 바람둥이 플러그인 프로젝트에 추가 할 때
<plugins>
<!-- define the project compile level -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<!-- 添加tomcat插件 -->
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<path>/</path>
<port>8888</port>
</configuration>
</plugin>
</plugins>
이 솔루션은 때 플러그인을 추가,하지만 아이디어는 오른쪽 플러그인 바람둥이가 아닌 경우
라벨과 같은 수준에 새 레이블을 추가 바람둥이 pluginManagement
<pluginManagement>
<plugins>
<!-- define the project compile level -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<!-- 添加tomcat插件 -->
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<path>/</path>
<port>8888</port>
</configuration>
</plugin>
</plugins>
이 방법이 작동하지 않는 경우, 원래 Maven 프로젝트의
<plugins>
내용은 삭제 플러그인 바람둥이 추가됩니다. 원래 플러그인에서 삭제를 프로젝트의 작동에 영향을주지 않습니다!