该模板适用于app及web项目
更改其中的tomcat.home=you.tomcat.home
web项目可以直接执行
mvn jetty:runmvn tomcat:run浏览器访问:
http://localhost:8080/${project.artifactId}pom.xml
4.0.0 net.dsolrcloud dsolrcloud war 1.0 SolrCloud测试项目 http://my.oschina.net/zhzhenqin 4.0.0 4.0.0 4.1.2 UTF-8 UTF-8 ZhenQin http://my.oschina.net/zhzhenqin /home/zhenqin/software/apache-tomcat-6.0.35 org.apache.lucene lucene-core ${lucene.version} org.apache.lucene lucene-highlighter ${lucene.version} org.apache.lucene lucene-memory ${lucene.version} org.apache.lucene lucene-facet ${lucene.version} org.apache.lucene lucene-analyzers-common ${lucene.version} org.apache.lucene lucene-grouping ${lucene.version} org.apache.lucene lucene-queries ${lucene.version} org.apache.lucene lucene-join ${lucene.version} org.apache.lucene lucene-misc ${lucene.version} org.apache.lucene lucene-spatial ${lucene.version} org.apache.solr solr-core ${solr.version} org.slf4j jcl-over-slf4j org.apache.solr solr-solrj ${solr.version} org.codehaus.woodstox wstx-asl org.apache.zookeeper zookeeper 3.3.6 com.google.guava guava r05 org.apache.httpcomponents httpclient ${httpclient.version} org.apache.httpcomponents httpcore ${httpclient.version} org.apache.httpcomponents httpclient-cache ${httpclient.version} org.apache.httpcomponents httpmime ${httpclient.version} org.apache.solr solr-velocity ${solr.version} org.apache.solr solr-lucene-highlighter 1.3.0 org.apache.solr solr-lucene-queries 1.3.0 org.apache.solr solr-lucene-analyzers 1.3.0 org.apache.velocity velocity 1.7 net.paoding paoding-analysis 2.0.4 commons-logging commons-logging 1.1 logkit logkit avalon-framework avalon-framework org.slf4j slf4j-api 1.6.4 org.slf4j slf4j-log4j12 1.6.4 commons-lang commons-lang 2.5 commons-io commons-io 2.1 commons-codec commons-codec 1.5 commons-beanutils commons-beanutils 1.8.0 commons-collections commons-collections 3.2 commons-fileupload commons-fileupload 1.2.1 jstl jstl 1.2 javax.servlet servlet-api 2.5 compile javax.servlet.jsp jsp-api 2.0 compile net.sf.json-lib json-lib 2.1 jdk15 net.sf.ezmorph ezmorph 1.0.6 log4j log4j 1.2.16 junit junit 4.8.2 test ${project.artifactId} org.codehaus.mojo build-helper-maven-plugin 1.1 add-source generate-sources add-source org.apache.maven.plugins maven-compiler-plugin 2.5.1 org.mortbay.jetty maven-jetty-plugin 6.1.26 10 ${project.artifactId} org.apache.maven.plugins maven-war-plugin ${project.artifactId} true true false true true true ${project.url} ${vendor.name} ${verdor.domain} org.apache.maven.plugins maven-javadoc-plugin 2.5 true zh_CN ${project.artifactId} Javadoc org.codehaus.mojo tomcat-maven-plugin 1.1 ${tomcat.home} 8080 ISO-8859-1 /${project.artifactId} ${project.build.outputDirectory} ${project.basedir}/src/main/webapp ${project.basedir}/src/main/webapp/WEB-INF/web.xml org.apache.maven.plugins maven-eclipse-plugin org.apache.maven.plugins maven-idea-plugin src/main/java **/*.xml src/main/resources