首页 > 其他 > 详细

pom 文件插件

时间:2020-04-09 13:34:30      阅读:57      评论:0      收藏:0      [点我收藏+]
<build>
	<plugins>
		<plugin>
			<groupId>org.apache.tomcat.maven</groupId>
			<artifactId>tomcat7-maven-plugin</artifactId>
			<version>2.2</version>
			<configuration>	
				<path>/</path> <!--项目访问路径。当前配置的访问是localhost:9090/, 如果配置是/aa,则访问路径为localhost:9090/aa -->
				<port>9090</port>
				<uriEncoding>UTF-8</uriEncoding><!-- 非必需项 -->
			</configuration>
		</plugin>
	</plugins>
</build>

运行 :mvn tomcat7:run
打包:mvn package -Pdevelop -Dmaven.skip.test=true tomcat7:deploy

  

 

<build>
	<plugins>
		<plugin>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-maven-plugin</artifactId>
			<version>9.2.2.v20140723</version>
			<configuration>
			    <httpConnector>
			        <port>8080</port>
			        <host>localhost</host>
			    </httpConnector>
			    <scanIntervalSeconds>1</scanIntervalSeconds>
			</configuration>
        </plugin> 
    </plugins> 
</build>
运行: jetty:run

  

  

  

  

pom 文件插件

原文:https://www.cnblogs.com/engzhangkai/p/12666331.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!