`
lan13217
  • 浏览: 482289 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

mvn tomcat7:run config

 
阅读更多
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>xxx</groupId>
	<artifactId>xxx</artifactId>
	<packaging>war</packaging>
	<version>0.0.1-SNAPSHOT</version>
	<name>app Maven Webapp</name>
	<url>http://maven.apache.org</url>
	<properties>
		<!-- spring版本号 -->
		<spring.version>4.0.5.RELEASE</spring.version>
		<!-- mybatis版本号 -->
		<mybatis.version>3.2.4</mybatis.version>
		<!-- log4j日志文件管理包版本 -->
		<slf4j.version>1.6.6</slf4j.version>
		<log4j.version>1.2.9</log4j.version>
		<log4j.version>1.2.9</log4j.version>
	</properties>


	<dependencies>
		<!-- spring核心包 -->
		<!-- springframe start -->
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-core</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-web</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-oxm</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-tx</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-jdbc</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-webmvc</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-aop</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context-support</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-aop</artifactId>
			<version>${spring.version}</version>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<!-- springframe end -->

		<!-- mybatis核心包 -->
		<dependency>
			<groupId>org.mybatis</groupId>
			<artifactId>mybatis</artifactId>
			<version>${mybatis.version}</version>
		</dependency>
		<!-- mybatis/spring包 -->
		<dependency>
			<groupId>org.mybatis</groupId>
			<artifactId>mybatis-spring</artifactId>
			<version>1.2.2</version>
		</dependency>
		<!-- mysql驱动包 -->
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>5.1.29</version>
		</dependency>
		<!-- junit测试包 -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
			<scope>test</scope>
		</dependency>
		<!-- 阿里巴巴数据源包 -->
		<dependency>
			<groupId>com.alibaba</groupId>
			<artifactId>druid</artifactId>
			<version>1.0.2</version>
		</dependency>

		<!-- json数据 -->
		<dependency>
			<groupId>org.codehaus.jackson</groupId>
			<artifactId>jackson-mapper-asl</artifactId>
			<version>1.9.13</version>
		</dependency>

		<!-- 日志文件管理包 -->
		<!-- log start -->
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>${log4j.version}</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>${slf4j.version}</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<version>${slf4j.version}</version>
		</dependency>
		<!-- log end -->
		<dependency>
			<groupId>org.freemarker</groupId>
			<artifactId>freemarker</artifactId>
			<version>2.3.20</version>
		</dependency>
		<dependency>
			<groupId>opensymphony</groupId>
			<artifactId>sitemesh</artifactId>
			<version>2.4.2</version>
		</dependency>

		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>jstl</artifactId>
			<version>1.2</version>
		</dependency>

		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<version>3.0.1</version>
			<scope>provided</scope>
		</dependency>
		
		<!--
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-core</artifactId>
			<version>2.2.2</version>
		</dependency>

		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
			<version>2.2.2</version>
		</dependency>

		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-annotations</artifactId>
			<version>2.2.2</version>
		</dependency>-->
	</dependencies>
	<build>
		<finalName>ROOT</finalName>
		<plugins>
			<plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>maven-jetty-plugin</artifactId>
				<version>6.1.26</version>
				<configuration>
					<scanIntervalSeconds>10</scanIntervalSeconds>
					<webApp>
						<contextPath>/mapsource</contextPath>
					</webApp>
					<webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.tomcat.maven</groupId>
				<artifactId>tomcat7-maven-plugin</artifactId>
				<version>2.0-beta-1</version>
				<configuration>
					<uriEncoding>utf-8</uriEncoding>
					<port>80</port>
					<path>/</path>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<skipTests>true</skipTests>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<encoding>UTF-8</encoding>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>



http://tomcat.apache.org/maven-plugin-2.1/tomcat7-maven-plugin/run-mojo.html
http://maven.apache.org/surefire/maven-surefire-plugin/examples/skipping-test.html
分享到:
评论

相关推荐

    oauth-spring框架

    $ mvn tomcat7:run and visit the app in your browser at http://localhost:8080/tonr2/ to check that it works. (This is for the OAuth 2.0 sample, for the OAuth 1.0a sample just remove the "2" from the ...

    使用Maven tomcat:run命令启动web项目时修改默认端口的方法

    今天小编就为大家分享一篇使用Maven tomcat:run命令启动web项目时修改默认端口的方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧

    thymeleafexamples-springmail-3.0-master.zip

    You can deploy the application any Java servlet container or executing the application on an embedded Tomcat 7 with mvn tomcat7:run (the application will be at http://localhost:8080/springmail/).

    cxf webservice demo

    soap和rest实现常用接口, 此项目为maven项目,集成tomcat7, 运行 mvn tomcat7:run

    CVDS实验室5

    mvn tomcat7:run 解决服务器错误“在当前项目和存储库中可用的插件组[org.apache.maven.plugins,org.codehaus.mojo]中找不到前缀'tocmat7'的插件” siguiente comando: mvn clean install tomcat7:run Debemos ...

    thymeleafexamples-thvsjsp:Thymeleaf与JSP-“ Spring MVC视图层”的配套应用程序

    您可以在以下位置获得它: http://maven.apache.org干净的编译产品: mvn clean编译: mvn compile在tomcat服务器中运行: mvn tomcat7:run启动后,该应用程序应该位于以下位置: http://localhost:8080/thvsjsp

    cui-java-app

    CUI Java Web应用程序包装CUI下载的基本Web应用程序。 Maven项目具有Tomcat码头和Tomcat的servlet依赖关系和maven... mvn clean installmvn jetty:run将mvn tomcat7:run替换为mvn jetty:run以在tomcat下运行。 浏览至:

    thymeleafexamples-extrathyme:ExtraThyme-“扩展Thymeleaf”教程的伴侣应用程序,可从Thymeleaf网站上下载

    您可以在以下位置获得它: http://maven.apache.org干净的编译产品: mvn clean编译: mvn compile在tomcat服务器中运行: mvn tomcat7:run启动后,该应用程序应该位于以下位置: http://localhost:8080/extrathyme

    gtvg:ThymeLeaf虚拟杂货店

    百里香的例子:百里香的虚拟杂货 这是一个示例项目,其中包含“使用Thymeleaf”教程中使用的代码。 了解更多: ... mvn tomcat7:run 启动后,该应用程序应该位于以下位置: http://localhost:8080/gtvg

    thymeleafexamples-gtvg:Good Thymes虚拟杂货店-可在Thymeleaf网站上下载的“ Using Thymeleaf”教程配套应用程序

    百里香的例子:百里香的虚拟杂货 这是一个示例项目,其中包含“使用Thymeleaf”教程中使用的代码。 了解更多: ... mvn tomcat7:run 启动后,该应用程序应该位于以下位置: http://localhost:8080/gtvg

    thymeleafexamples-stsm:Spring Thyme Seedstarter Manager-“ Thymeleaf + Spring 3”教程的配套应用程序,可从Thymeleaf网站下载

    Thymeleaf示例:Spring Thyme Seedstarter Manager 这是一个示例项目,其中包含“ Thymeleaf + Spring”教程中使用的代码。... mvn tomcat7:run 启动后,该应用程序应该位于以下位置: http://localhost:8080/stsm

    thymeleaf-spring-rest-apache-httpclient

    Thymeleaf示例:Spring Thyme Seedstarter Manager 这是一个示例项目,其中包含“ Thymeleaf + Spring”教程中使用的代码。... mvn tomcat7:run 启动后,该应用程序应该位于以下位置: http://localhost:8080/stsm

    spring-boot-aws-showcase

    mvn tomcat7:run-war 在 aws 上运行 为了在 AWS 上运行应用程序,您需要一个帐户并调整 pom.xml 中的属性值。 您必须在 settings.xml 中设置“访问密钥 ID”和“秘密访问密钥”。 请参考的设置文档。 该演示显示...

    JAX-WS发布webservice例子

    JAX-WS发布webservice例子,基于http://blog.csdn.net/yy_love_my/article/details/44938329所说的做的一个简单且能运行的列子,基于maven工程,如果使用servlet发布方式,执行命令:mvn tomcat7:run

    inf-sso:sso服务器和shiro客户端集成

    设置hosts文件,添加两个本地映射127.0.0.1 ssoclient127.0.0.1 ssoserver进入client输入mvn tomcat7:run启动shiro cas客户端进入server输入mvn jetty:run启动cas服务端(因为tomcat不支持war包的overlay)打开...

    spring-webapp-no-xml:一个简单的 Spring webapp 项目,它使用纯 Java 配置 (no-xml) 演示 Spring 配置

    建立战争mvn package - 构建一个 war 文件,例如target/spring-webapp-no-xml.war运行示例mvn tomcat7:run - 在嵌入式 Tomcat7 中运行应用程序,如pom.xml所指定,或将target\spring-webapp-no-xml.war到正在运行的 ...

    基于SSM+Druid+Shrio+Ehcache构建CMS系统

    运行系统 ...进入Autumn-Framework目录cd Autumn-Framework ...在执行mvn tomcat7:run 最后在浏览器中访问localhost:8081,就可以看到登录界面 Tips:以上所有操作基于您的电脑已经安装了jdk8、maven3和git环

    Usermanagement2:SpringMVC

    用户管理2 SpringMVC Spring MVC 展示 通过小而简单的用户管理示例演示 Spring ... $ mvn tomcat7:run [-Dmaven.tomcat.port=] (以防8080忙] 或者 在您首选的 IDE 中,例如 SpringSource Tool Suite (STS) 或 IDEA:

    atmosphere-samples:大气样本

    您可以通过单击其名称来下载样本,或克隆工作区,构建它,然后执行 mvn jetty:run 或者 mvn tomcat7:run 推荐的入门示例是聊天,它演示了使用AtmosphereHandler或jquery-pubsub进行的所有传输的用法,它们演示

    springboot-playground

    mvn tomcat7:run -P war-packaging 要作为独立的JAR应用程序运行: mvn spring-boot:run -P jar-packaging 该应用程序将在可用。 REST API 检索所有办公室 GET /api/office/all.json 如下例所示,返回代表每个...

Global site tag (gtag.js) - Google Analytics