maven配置tomcat并设置参数

<build>
  <plugins>
  <plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>tomcat-maven-plugin</artifactId>
  <version>1.1</version>
  <configuration>
  <argLine>-Xms512m -Xmx512m</argLine>
  <port>8080</port>
  </configuration>
  </plugin>
  <plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-war-plugin</artifactId>
  <version>2.1.1</version>
  </plugin>
  </plugins>
  </build>

你可能感兴趣的:(tomcat)