- maven构建web项目的时候用tomcat做container的时候,我们可以在maven中配置
- “老的”插件官网:http://mojo.codehaus.org/tomcat-maven-plugin/index.html,当然这个插件被apache搞过去了,新的:http://tomcat.apache.org/maven-plugin.html。稍微看了下apache的tomcat6/7配置方法,觉得还是老的适合,够用就行了,反正只是个小插件。
-
<build> <finalName>test-mvc</finalName> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <!-- 这是因为我local resp的原因 --> <!-- <version>1.2-SNAPSHOT</version> --> <configuration> <url>http://www.mydomain.com</url> <!--<path>${project.build.finalName}</path>--> <path>/mypath</path> <port>80</port> <uriEncoding>utf-8</uriEncoding> </configuration> </plugin> </plugins> </build>
-
Since version 2.0-beta-1 tomcat mojos has been renamed to tomcat6 and tomcat7 with the same goals.
You must configure your pom to use this new groupId:
<plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat6-maven-plugin</artifactId> <version>2.2</version> <configuration> <url>http://websocket.demo.cc</url> <port>80</port> <path>/</path> <uriEncoding>utf-8</uriEncoding> </configuration> </plugin> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <url>http://websocket.demo.cc</url> <port>80</port> <path>/</path> <uriEncoding>utf-8</uriEncoding> </configuration> </plugin> </plugins>
- 插件代码贴出来没什么好说的了,一看就懂了,方便查询。其他一些什么多个容器。。什么的goals自己去查阅两个官方的文档即可
- 插件org.codehaus.mojo: http://mojo.codehaus.org/tomcat-maven-plugin/index.html
- 插件org.apache.tomcat.maven: http://tomcat.apache.org/maven-plugin.html
- 浏览: 66612 次
- 性别:
- 来自: 杭州
相关推荐
Failure to transfer org.codehaus.plexus:plexus-archiver:pom:1.0 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update ...
还是美团Cat代码下载后,出现的以来问题,遇到处理完org.unidal.* 后又发现org.codehaus.plexus.* 的问题,其中版本号可根据自身情况调整。
codehaus相关maven jar 包, 包括(jackson,jettjson等)
org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration) 网上更新eclipse插件的网址都失效了找了好久才有个离线版 ...
在apache-maven-3.5.2/conf/setting.xml中加入以下配置即可解决 alimaven aliyun maven http://maven.aliyun.com/nexus/content/repositories/central/ central junit junit Address/ ...
jettison-1.3.3.jar, 开发基于JAX-RS的RESTful的服务的首选工具.
Maven坐标:org.codehaus.janino:janino:3.0.8; 标签:codehaus、janino、jar包、java、中文文档; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码...
Maven坐标:org.codehaus.jettison:jettison:1.3.7; 标签:codehaus、jettison、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译...
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=...
Maven原版settings.xml配置文件,根据个人需要,可以打开对应注释或替换相关阿里云镜像或远程仓库地址即可使用。
apache-tomcat-8.5.78 源码 maven 版本,配置都已经搞定,开箱即用。是学习tomcat的不二之选。启动类 org.apache.catalina.startup.Bootstrap
maven3.3.39.zip
git commit id插件与https://fisheye.codehaus.org/browse/mojo/tags/buildNumber-maven-plugin-1.0-beta-4非常相似,但是作为buildNumber,在我启动这个插件时,它只支持cvs和svn,必须做些什么。
Maven坐标:org.codehaus.janino:janino:3.0.9; 标签:codehaus、janino、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档...
<groupId>org.apache.maven.plugins <artifactId>maven-shade-plugin <version>3.1.0 <phase>package <goal>shade implementation="org.apache.maven.plugins.shade.resource....
settings.xml配置
maven的set.xml配置文件
改为使用国内的阿里镜像
sdoapi,sdoutl-1.0及maven中pom.xml的配置
分享一个快的飞起的maven的settings.xml文件. 直接使用开源中国的中央仓库。