- 浏览: 30086 次
- 性别:
- 来自: 上海
文章分类
最新评论
-
tangduDream:
难道你看不懂?? jdbcType="BLOB&qu ...
关于Mybatis3对Clob,Blob的处理 -
hesai_vip:
请问这个如何解决的?
关于Mybatis3对Clob,Blob的处理 -
tangduDream:
<div class="quote_title ...
Maven 疑问 -
cfying:
这个到底是怎么解决的,能详细点吗?谢谢
Maven 疑问 -
tangduDream:
怎么不行呢? 我项目中用的好好滴
Spring2.5访问Session属性的四种策略
今天刚试了一下 maven
整个环境搭好后 然后我就将一个web项目 用maven 编译 发布后 生成了war 包
但是我发现war 包中 没有class文件 也没lib 只有空空的目录 。。
这是为什么呀。??????????????
今天清楚了 自己配置有问题呀
遇见两种错误:1 找不到符号
2 找不到软件包
解决:pom.xml 中的依赖没配置好 也就是说你的库中没有你项目要的jar
step and step...
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>MySys</groupId>
<artifactId>MySys</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>MySys</name>
<description>业余,</description>
<properties>
<!-- commons jar -->
<commons.lang.version>2.6</commons.lang.version>
<commons.beanutils.version>1.8.0</commons.beanutils.version>
<commons.codec.version>1.4</commons.codec.version>
<commons.collections.version>3.2.1</commons.collections.version>
<commons.dbcp.version>1.4</commons.dbcp.version>
<commons.email.version>20030310.165926</commons.email.version>
<commons.fileupload.version>1.2.2</commons.fileupload.version>
<commons.httpclient.version>3.0.1</commons.httpclient.version>
<commons.io.version>2.0.1</commons.io.version>
<commons.logging.version>1.1.1</commons.logging.version>
<commons.pool.version>1.5.4</commons.pool.version>
<!-- jta -->
<jta.version>1.1</jta.version>
<!-- jdbc -->
<mysql.driver.version>5.1.18</mysql.driver.version>
<oralce.driver.version>10.2.0.2.0</oralce.driver.version>
<!-- log4j -->
<log4j.version>1.2.16</log4j.version>
<org.slf4j.version>1.6.4</org.slf4j.version>
<!-- jetty -->
<!-- servlet -->
<javax.servlet.version>2.5</javax.servlet.version>
<jstl.version>1.1.2</jstl.version>
<!-- activiti -->
<activation.version>1.1</activation.version>
<activiti.version>5.8</activiti.version>
<!-- json -->
<jackson.version>1.9.2</jackson.version>
<json.lib.version>2.4</json.lib.version>
<ezmorph.version>1.0.6</ezmorph.version>
<fastJson.version>1.1.15</fastJson.version>
<!-- mybatis -->
<mybatis.version>3.0.6</mybatis.version>
<mybatis.spring.version>1.0.2</mybatis.spring.version>
<mybatis.generator.core.version>1.3.1</mybatis.generator.core.version>
<!--maven mybatis生成文件-->
<mybatis.generator.configurationFile>generatorConfig.xml</mybatis.generator.configurationFile>
<!-- spirng -->
<spring.version>3.0.6.RELEASE</spring.version>
<!-- hibernate -->
<hibernate.version>3.6.0.Final</hibernate.version>
<hibernate.jpa.version>1.0.0.Final</hibernate.jpa.version>
<hibernate.annotations.version>3.4.0.GA</hibernate.annotations.version>
<hibernate.validator.version>4.1.0.Final</hibernate.validator.version>
<javassist.version>3.14.0-GA</javassist.version>
<!-- other -->
<ant.version>1.6.5</ant.version>
<cglib.version>2.2</cglib.version>
<cglib.nodep.version>2.2</cglib.nodep.version>
<c3p0.version>0.9.0.4</c3p0.version>
<dom4j.version>1.6.1</dom4j.version>
<junit.version>4.8.1</junit.version>
<jdom.version>1.0</jdom.version>
<antlr.version>2.7.7</antlr.version>
<aopalliance.version>1.0</aopalliance.version>
<aspectjrt.version>1.6.12</aspectjrt.version>
<aspectjweaver.version>1.6.12</aspectjweaver.version>
<mail.version>1.4.4</mail.version>
<!-- cxf -->
<cxf.version>2.2.10</cxf.version>
<!-- freemarker -->
<freemarker.version>2.3.18</freemarker.version>
<!-- poi -->
<poi.version>3.8-beta4</poi.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<sourceDirectory>src</sourceDirectory>
<outputDirectory>WebContent/WEB-INF/classes</outputDirectory><!--编译后的java文件输出的文件夹位置。 -->
<resources><!-- 存放资源文件。这里的文件不需要编译,在部署打包时,直接复制这里的文件 -->
<resource>
<directory>etc</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
<plugins>
<!-- 资源插件 -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- 默认编译 -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<!-- 打包war插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
<configuration>
<warSourceDirectory>WebContent</warSourceDirectory>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
<!-- jar管理 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>copy</id>
<phase>install</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/lib
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- jetty 发布 mvn jetty:run
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.0.v20120127</version>
<configuration>
<webAppConfig>
<contextPath>/sys</contextPath>
</webAppConfig>
<webAppSourceDirectory>WebContent</webAppSourceDirectory>
</configuration>
</plugin>-->
<!-- tomcat 发布 mvn tomcat:run-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<path>/sys</path>
<warSourceDirectory>WebContent</warSourceDirectory>
</configuration>
</plugin>
<!-- maven mybatis生成文件 -->
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.1</version>
</plugin>
</plugins>
</build>
<dependencies>
<!--mysql jar -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.driver.version}</version>
</dependency>
<dependency>
<groupId>jdbc</groupId>
<artifactId>oracle</artifactId>
<version>${oralce.driver.version}</version>
</dependency>
<!-- commons -->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>${commons.lang.version}</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${commons.beanutils.version}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>${commons.codec.version}</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>${commons.collections.version}</version>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>${commons.dbcp.version}</version>
</dependency>
<dependency>
<groupId>commons-email</groupId>
<artifactId>commons-email</artifactId>
<version>${commons.email.version}</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>${commons.fileupload.version}</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>${commons.httpclient.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons.io.version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>${commons.lang.version}</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${commons.logging.version}</version>
</dependency>
<dependency>
<groupId>commons-pool</groupId>
<artifactId>commons-pool</artifactId>
<version>${commons.pool.version}</version>
</dependency>
<!-- log4j -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${org.slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${org.slf4j.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${org.slf4j.version}</version>
<scope>runtime</scope>
</dependency>
<!-- Servlet -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>${javax.servlet.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>${jstl.version}</version>
</dependency>
<!-- activiti -->
<dependency>
<groupId>activiti</groupId>
<artifactId>activation</artifactId>
<version>${activation.version}</version>
</dependency>
<dependency>
<groupId>activiti</groupId>
<artifactId>activiti-cxf</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>activiti</groupId>
<artifactId>activiti-cxf-sources</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>activiti</groupId>
<artifactId>activiti-engine</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>activiti</groupId>
<artifactId>activiti-engine-sources</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>activiti</groupId>
<artifactId>activiti-spring</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>activiti</groupId>
<artifactId>activiti-spring-sources</artifactId>
<version>${activiti.version}</version>
</dependency>
<!-- 其它 的jar -->
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>${ant.version}</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>${cglib.nodep.version}</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>${cglib.version}</version>
</dependency>
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>${c3p0.version}</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>${dom4j.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
<version>${jta.version}</version>
</dependency>
<!-- json lib
<dependency>
<groupId>net.sf.ezmorph</groupId>
<artifactId>ezmorph</artifactId>
<version>${ezmorph.version}</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>${json.lib.version}</version>
</dependency>-->
<!-- fastJson -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastJson.version}</version>
</dependency>
<!-- spring json -->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- mybatis
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>${mybatis.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>${mybatis.spring.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>${mybatis.generator.core.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>${mybatis.generator.core.version}</version>
</dependency>
-->
<!-- spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</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-asm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</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-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-instrument</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-instrument-tomcat</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-jms</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</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-webmvc-portlet</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- hibernate -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
</dependency>
<!-- <dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>${hibernate.annotations.version}</version>
</dependency> -->
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-ehcache</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>${javassist.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate.validator.version}</version>
<exclusions>
<exclusion>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- cxf
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-core</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf.version}</version>
</dependency> -->
<!-- 其它 -->
<dependency>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
<version>${jdom.version}</version>
</dependency>
<dependency>
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
<version>${antlr.version}</version>
</dependency>
<dependency>
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
<version>${aopalliance.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectjrt.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectjweaver.version}</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>${mail.version}</version>
</dependency>
<!-- freemarker-->
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>${freemarker.version}</version>
</dependency>
<!-- poi -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>${poi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>${poi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-excelant</artifactId>
<version>${poi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-scratchpad</artifactId>
<version>${poi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>${poi.version}</version>
</dependency>
<!-- report -->
</dependencies>
</project>
整个环境搭好后 然后我就将一个web项目 用maven 编译 发布后 生成了war 包
但是我发现war 包中 没有class文件 也没lib 只有空空的目录 。。
这是为什么呀。??????????????
今天清楚了 自己配置有问题呀
遇见两种错误:1 找不到符号
2 找不到软件包
解决:pom.xml 中的依赖没配置好 也就是说你的库中没有你项目要的jar
step and step...
评论
2 楼
tangduDream
2012-02-18
cfying 写道
这个到底是怎么解决的,能详细点吗?谢谢
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>MySys</groupId>
<artifactId>MySys</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>MySys</name>
<description>业余,</description>
<properties>
<!-- commons jar -->
<commons.lang.version>2.6</commons.lang.version>
<commons.beanutils.version>1.8.0</commons.beanutils.version>
<commons.codec.version>1.4</commons.codec.version>
<commons.collections.version>3.2.1</commons.collections.version>
<commons.dbcp.version>1.4</commons.dbcp.version>
<commons.email.version>20030310.165926</commons.email.version>
<commons.fileupload.version>1.2.2</commons.fileupload.version>
<commons.httpclient.version>3.0.1</commons.httpclient.version>
<commons.io.version>2.0.1</commons.io.version>
<commons.logging.version>1.1.1</commons.logging.version>
<commons.pool.version>1.5.4</commons.pool.version>
<!-- jta -->
<jta.version>1.1</jta.version>
<!-- jdbc -->
<mysql.driver.version>5.1.18</mysql.driver.version>
<oralce.driver.version>10.2.0.2.0</oralce.driver.version>
<!-- log4j -->
<log4j.version>1.2.16</log4j.version>
<org.slf4j.version>1.6.4</org.slf4j.version>
<!-- jetty -->
<!-- servlet -->
<javax.servlet.version>2.5</javax.servlet.version>
<jstl.version>1.1.2</jstl.version>
<!-- activiti -->
<activation.version>1.1</activation.version>
<activiti.version>5.8</activiti.version>
<!-- json -->
<jackson.version>1.9.2</jackson.version>
<json.lib.version>2.4</json.lib.version>
<ezmorph.version>1.0.6</ezmorph.version>
<fastJson.version>1.1.15</fastJson.version>
<!-- mybatis -->
<mybatis.version>3.0.6</mybatis.version>
<mybatis.spring.version>1.0.2</mybatis.spring.version>
<mybatis.generator.core.version>1.3.1</mybatis.generator.core.version>
<!--maven mybatis生成文件-->
<mybatis.generator.configurationFile>generatorConfig.xml</mybatis.generator.configurationFile>
<!-- spirng -->
<spring.version>3.0.6.RELEASE</spring.version>
<!-- hibernate -->
<hibernate.version>3.6.0.Final</hibernate.version>
<hibernate.jpa.version>1.0.0.Final</hibernate.jpa.version>
<hibernate.annotations.version>3.4.0.GA</hibernate.annotations.version>
<hibernate.validator.version>4.1.0.Final</hibernate.validator.version>
<javassist.version>3.14.0-GA</javassist.version>
<!-- other -->
<ant.version>1.6.5</ant.version>
<cglib.version>2.2</cglib.version>
<cglib.nodep.version>2.2</cglib.nodep.version>
<c3p0.version>0.9.0.4</c3p0.version>
<dom4j.version>1.6.1</dom4j.version>
<junit.version>4.8.1</junit.version>
<jdom.version>1.0</jdom.version>
<antlr.version>2.7.7</antlr.version>
<aopalliance.version>1.0</aopalliance.version>
<aspectjrt.version>1.6.12</aspectjrt.version>
<aspectjweaver.version>1.6.12</aspectjweaver.version>
<mail.version>1.4.4</mail.version>
<!-- cxf -->
<cxf.version>2.2.10</cxf.version>
<!-- freemarker -->
<freemarker.version>2.3.18</freemarker.version>
<!-- poi -->
<poi.version>3.8-beta4</poi.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<sourceDirectory>src</sourceDirectory>
<outputDirectory>WebContent/WEB-INF/classes</outputDirectory><!--编译后的java文件输出的文件夹位置。 -->
<resources><!-- 存放资源文件。这里的文件不需要编译,在部署打包时,直接复制这里的文件 -->
<resource>
<directory>etc</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
<plugins>
<!-- 资源插件 -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- 默认编译 -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<!-- 打包war插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
<configuration>
<warSourceDirectory>WebContent</warSourceDirectory>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
<!-- jar管理 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>copy</id>
<phase>install</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/lib
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- jetty 发布 mvn jetty:run
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.0.v20120127</version>
<configuration>
<webAppConfig>
<contextPath>/sys</contextPath>
</webAppConfig>
<webAppSourceDirectory>WebContent</webAppSourceDirectory>
</configuration>
</plugin>-->
<!-- tomcat 发布 mvn tomcat:run-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<path>/sys</path>
<warSourceDirectory>WebContent</warSourceDirectory>
</configuration>
</plugin>
<!-- maven mybatis生成文件 -->
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.1</version>
</plugin>
</plugins>
</build>
<dependencies>
<!--mysql jar -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.driver.version}</version>
</dependency>
<dependency>
<groupId>jdbc</groupId>
<artifactId>oracle</artifactId>
<version>${oralce.driver.version}</version>
</dependency>
<!-- commons -->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>${commons.lang.version}</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${commons.beanutils.version}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>${commons.codec.version}</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>${commons.collections.version}</version>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>${commons.dbcp.version}</version>
</dependency>
<dependency>
<groupId>commons-email</groupId>
<artifactId>commons-email</artifactId>
<version>${commons.email.version}</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>${commons.fileupload.version}</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>${commons.httpclient.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons.io.version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>${commons.lang.version}</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${commons.logging.version}</version>
</dependency>
<dependency>
<groupId>commons-pool</groupId>
<artifactId>commons-pool</artifactId>
<version>${commons.pool.version}</version>
</dependency>
<!-- log4j -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${org.slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${org.slf4j.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${org.slf4j.version}</version>
<scope>runtime</scope>
</dependency>
<!-- Servlet -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>${javax.servlet.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>${jstl.version}</version>
</dependency>
<!-- activiti -->
<dependency>
<groupId>activiti</groupId>
<artifactId>activation</artifactId>
<version>${activation.version}</version>
</dependency>
<dependency>
<groupId>activiti</groupId>
<artifactId>activiti-cxf</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>activiti</groupId>
<artifactId>activiti-cxf-sources</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>activiti</groupId>
<artifactId>activiti-engine</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>activiti</groupId>
<artifactId>activiti-engine-sources</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>activiti</groupId>
<artifactId>activiti-spring</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>activiti</groupId>
<artifactId>activiti-spring-sources</artifactId>
<version>${activiti.version}</version>
</dependency>
<!-- 其它 的jar -->
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>${ant.version}</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>${cglib.nodep.version}</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>${cglib.version}</version>
</dependency>
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>${c3p0.version}</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>${dom4j.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
<version>${jta.version}</version>
</dependency>
<!-- json lib
<dependency>
<groupId>net.sf.ezmorph</groupId>
<artifactId>ezmorph</artifactId>
<version>${ezmorph.version}</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>${json.lib.version}</version>
</dependency>-->
<!-- fastJson -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastJson.version}</version>
</dependency>
<!-- spring json -->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- mybatis
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>${mybatis.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>${mybatis.spring.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>${mybatis.generator.core.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>${mybatis.generator.core.version}</version>
</dependency>
-->
<!-- spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</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-asm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</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-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-instrument</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-instrument-tomcat</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-jms</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</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-webmvc-portlet</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- hibernate -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
</dependency>
<!-- <dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>${hibernate.annotations.version}</version>
</dependency> -->
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-ehcache</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>${javassist.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate.validator.version}</version>
<exclusions>
<exclusion>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- cxf
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-core</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf.version}</version>
</dependency> -->
<!-- 其它 -->
<dependency>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
<version>${jdom.version}</version>
</dependency>
<dependency>
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
<version>${antlr.version}</version>
</dependency>
<dependency>
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
<version>${aopalliance.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectjrt.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectjweaver.version}</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>${mail.version}</version>
</dependency>
<!-- freemarker-->
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>${freemarker.version}</version>
</dependency>
<!-- poi -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>${poi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>${poi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-excelant</artifactId>
<version>${poi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-scratchpad</artifactId>
<version>${poi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>${poi.version}</version>
</dependency>
<!-- report -->
</dependencies>
</project>
1 楼
cfying
2012-02-06
这个到底是怎么解决的,能详细点吗?谢谢
相关推荐
通常,Maven的`settings.xml`位于`~/.m2/`目录下,如果没有,可以从`Maven安装目录/conf/settings.xml`拷贝过来。 【IDE依赖树颜色】 在IntelliJ IDEA中,Maven依赖树中红色实线表示直接依赖,即pom.xml中直接声明...
maven是一个用于java项目管理和...项目开发中疑问 什么是maven 为什么要使用maven maven和ant的区别 maven安装 一个使用maven的例子 资源库和依赖 POM文件 maven插件 常见用法 源码目录结构 maven配置 pom文件设置例子
### Linux下Maven环境安装与配置详解 #### 一、前言 在Linux环境中搭建Maven环境对于Java开发者来说是一项基本技能。Maven是Apache软件基金会支持的一个项目管理工具...如果有任何疑问或遇到问题,欢迎随时交流探讨。
Apache Maven 是一个强大的项目管理和构建工具,主要用于Java项目。它基于项目对象模型(Project Object Model...如果你在使用过程中遇到问题或有任何疑问,都可以在开源社区中寻求帮助,分享和学习是开源精神的核心。
【标题】"dubbo demo in maven"是一个关于在Maven工程中实现Dubbo示例的项目,旨在帮助开发者理解如何在开发环境中整合并运用Dubbo框架。Dubbo是阿里巴巴开源的一...如果有任何疑问,可以直接联系项目的作者进行咨询。
在IT行业中,构建项目是开发过程中的重要环节,而Maven是Java开发中广泛使用的项目管理工具。Maven能够帮助开发者有效地管理和构建项目,通过...希望这些信息对你的学习有所帮助,如果你有任何疑问,欢迎进一步探讨。
本地环境: JDK1.8/Mysql5.7/Maven3/Tomcat8.0/Eclipse Neon. 注意事项: 1、按照以下语法建立数据库(ProjectName为你的数据库名,可以改你自己想要的名字,改完请记得...ps:按照说明来基本不会出错,有疑问直接留言。
### Maven安装与配置及IntelliJ IDEA配置Maven详解 #### 一、Maven简介 Maven是一款由Apache基金会提供的项目管理...希望本文对你有所帮助,如有任何疑问或需要进一步了解的地方,请随时查阅相关文档或寻求社区支持。
如果你对某个部分有疑问,可以通过项目的评论留言功能向作者提问,以便获取更多帮助。在实际开发中,你可以根据需求调整这个示例,如增加更多的交换机类型、队列绑定策略,或者实现更复杂的业务逻辑。
1.安装的地方:${M2_HOME}/conf/settings.xml 2.用户的目录:${user.home}/.m2/settings.xml 前者又被叫做全局配置,对操作系统的所有使用者生效;后者被称为用户配置,只对当前操作系统的...如有疑问,请给博主留言
在使用Apache Maven构建Java项目时,经常会遇到各种问题,但...对于Maven的任何疑问,都可以通过官方文档和在线资源找到答案。保持学习和探索的心态,不断优化你的Maven配置和工作流程,是成为Java开发高手的重要步骤。
Eclipse是一款广受欢迎的Java开发集成环境,而Maven则是一个强大的项目...如果你在使用过程中遇到问题,可以查阅Eclipse和Maven的官方文档,或者在线搜索解决方案,社区中的资源非常丰富,可以帮助你解决大部分疑问。
Apache NiFi NAR Maven插件Apache NiFi NAR Maven插件可帮助构建NiFi存档软件包,以支持NiFi的类加载器隔离模型。目录要求JDK 1.8或更高...获得帮助如有疑问,请联系我们的邮件列表: ()。 我们也经常在IRC中提供:
IDEA新建Maven项目没有src目录的操作方法 IDEA是一款功能强大且流行的集成开发环境(Integrated Development ...如果大家有任何疑问,请随时留言,小编会及时回复大家的。在此也非常感谢大家对我们网站的支持!
由于运行的JUnit类需要与Selenium Server交互,在运行JUnit项目之前,要确保Selenium Server已启动,之后在命令行中输入mvn test即可。 ====================== 对于此资源有疑问,可联系wuziteng2006@163.com
在开发Java项目时,IntelliJ IDEA(IDEA)与Maven的集成是开发者不可或缺的工具。...希望这些内容对你的学习和工作有所帮助,如果你有更多的疑问或需要进一步的信息,欢迎查阅相关的文章或继续向我们咨询。
新版本IntelliJ IDEA 构建Maven,并用Maven创建一个Web项目的图文教程 Maven 项目基础知识 Maven 是一个基于项目对象模型(POM)的项目管理工具,由 Apache 软件基金会维护。Maven 的主要作用是管理项目的依赖关系...
在使用IntelliJ IDEA(简称Idea)这款强大的Java开发工具时,你可能会遇到一个问题:每次新建项目,Idea都会提示你重新...如果你对Idea的其他功能或者Maven的使用有任何疑问,欢迎继续探索相关文章,以便获取更多知识。