欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

pom.xml 博客分类: 打包  

程序员文章站 2024-02-26 09:13:25
...

<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>com.jrt.channel</groupId>
  <artifactId>jrtSubChannel</artifactId>
  <packaging>war</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>jrtSubChannel Maven Webapp</name>
  <url>http://maven.apache.org</url>
  

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <spring.version>3.0.5.RELEASE</spring.version>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.2</version>
    
    </dependency>
    <!-- common lib -->
    	<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.16</version>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<version>2.5</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
	    <groupId>jdom</groupId>
	    <artifactId>jdom</artifactId>
	    <version>1.1</version>
		</dependency>
		<dependency>
	    <groupId>dom4j</groupId>
	    <artifactId>dom4j</artifactId>
	    <version>1.6.1</version>
		</dependency>
		<dependency>
    <groupId>javax.xml</groupId>
    <artifactId>jaxrpc-api</artifactId>
    <version>1.1</version>
</dependency>
<dependency>
			<groupId>commons-dbcp</groupId>
			<artifactId>commons-dbcp</artifactId>
			<version>1.3</version>
		</dependency>
		
		<dependency>
    <groupId>commons-pool</groupId>
    <artifactId>commons-pool</artifactId>
    <version>1.5.5</version>
</dependency>
		<dependency>
    <groupId>asm</groupId>
    <artifactId>asm</artifactId>
    <version>3.3.1</version>
</dependency>
		
		
		<!-- webservice -->
		<dependency>
    <groupId>wsdl4j</groupId>
    <artifactId>wsdl4j</artifactId>
    <version>1.6.2</version>
</dependency>
		<dependency>
    <groupId>axis</groupId>
    <artifactId>axis</artifactId>
    <version>1.4</version>
</dependency>
			<dependency>
    <groupId>org.apache.axis</groupId>
    <artifactId>axis-jaxrpc</artifactId>
    <version>1.4</version>
</dependency>
				
		
		
		<!-- json lib -->
		<dependency>
           <groupId>net.sf.json-lib</groupId>
            <artifactId>json-lib</artifactId>
           <version>2.4</version>
           <type>jar</type>
           <classifier>jdk15</classifier> 
           <scope>compile</scope> 
        </dependency>
        <dependency>
    <groupId>commons-dbcp</groupId>
    <artifactId>commons-dbcp</artifactId>
    <version>1.4</version>
</dependency>
        <dependency>
    <groupId>c3p0</groupId>
    <artifactId>c3p0</artifactId>
    <version>0.9.1.2</version>
</dependency>
        
        <dependency>
    <groupId>javassist</groupId>
    <artifactId>javassist</artifactId>
    <version>3.12.1.GA</version>
</dependency>
        <dependency>
    <groupId>dwr</groupId>
    <artifactId>dwr</artifactId>
    <version>1.1.3</version>
</dependency>
        
		
		
		
		
		
		<!-- spring lib -->
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-core</artifactId>
			<version>${spring.version}</version>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
			<version>${spring.version}</version>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</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-aspects</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-orm</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</artifactId>
			<version>${spring.version}</version>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		
		<dependency>
    <groupId>cglib</groupId>
    <artifactId>cglib-nodep</artifactId>
    <version>2.2</version>
</dependency>
		
		<dependency>
			<groupId>ojdbc</groupId>
			<artifactId>ojdbc</artifactId>
			<version>14</version>
			<type>jar</type>
		</dependency>
		<!-- struts2 lib -->
<dependency>
    <groupId>org.apache.struts</groupId>
    <artifactId>struts2-core</artifactId>
    <version>2.2.1.1</version>
</dependency>
<dependency>
  <groupId>com.own</groupId>
  <artifactId>ibatis</artifactId>
  <version>2.3.4.726</version>
</dependency>

<dependency>
  <groupId>com.own</groupId>
  <artifactId>ibatis-dao</artifactId>
  <version>2</version>
</dependency>
<dependency>
	<groupId>c3p0</groupId>
	<artifactId>c3p0</artifactId>
	<version>0.9.1.2</version>
	<type>jar</type>
	<scope>compile</scope>
</dependency>
<dependency>
	<groupId>c3p0</groupId>
	<artifactId>c3p0-oracle-thin-extras</artifactId>
	<version>0.9.0.2</version>
	<type>jar</type>
	<scope>compile</scope>
</dependency>
<dependency>
	<groupId>org.apache.ibatis</groupId>
	<artifactId>ibatis-core</artifactId>
	<version>3.0</version>
	<type>jar</type>
	<scope>compile</scope>
</dependency>
<dependency>
	<groupId>com.ibatis</groupId>
	<artifactId>ibatis-common</artifactId>
	<version>2.1.0.565</version>
	<scope>compile</scope>
</dependency>
<dependency>
	<groupId>com.google.sitebricks</groupId>
	<artifactId>slf4j</artifactId>
	<version>0.8.3</version>
	<type>jar</type>
	<scope>compile</scope>
</dependency>
<dependency>
	<groupId>org.slf4j</groupId>
	<artifactId>slf4j-api</artifactId>
	<version>1.6.4</version>
	<type>jar</type>
	<scope>compile</scope>
</dependency>
<dependency>
	<groupId>commons-logging</groupId>
	<artifactId>commons-logging</artifactId>
	<version>1.1.1</version>
	<type>jar</type>
	<scope>compile</scope>
</dependency>
  </dependencies>
  
  <repositories>
  		<repository>
			<id>snapshots</id>
			<name>snapshots</name>
			<url>http://192.168.0.39:8080/nexus/content/repositories/snapshots/</url>
		</repository>
		<repository>
			<id>ruyicai</id>
			<name>Ruyicai Repository</name>
			<url>http://192.168.0.39:8080/nexus/content/repositories/public/</url>
		</repository>
			
  </repositories>
  <distributionManagement>
  <snapshotRepository>
    <id>thirdparty</id>
    <url>http://192.168.0.39:8080/nexus/content/repositories/thirdparty</url>
  </snapshotRepository>
</distributionManagement>
  <profiles>
    <profile>
    
			<id>70test</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
		     	<database.url>jdbc:oracle:thin:@219.148.162.70:1537:jrtdbtest</database.url>
				<database.url>jdbc:oracle:thin:@219.148.162.70:1537:jrtdbtest</database.url>
				<database.driverClassName>oracle.jdbc.OracleDriver</database.driverClassName>
				<database.username>jrtsch</database.username>
				<database.password>jrt2010</database.password>

			</properties>
		</profile>
  
  
  </profiles>
    <!-- plug   -->
    <build>
    <finalName>jrtSubChannel</finalName>
    	<resources>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>true</filtering>
			</resource>
                          <!--打包配置文件,如:com.common 中的xml文件等 -->
			<resource>
			<directory>src/main/java</directory>
			<excludes>
			<exclude>**/*.java</exclude>
			<exclude>**/.svn/*</exclude>
			</excludes>
			</resource>
		</resources>
    <plugins>
   		<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<version>2.1-beta-1</version>
	            
			</plugin>
		
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.1</version>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<encoding>UTF-8</encoding>
				</configuration>
			</plugin>
    
    			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-idea-plugin</artifactId>
				<version>2.2</version>
				<configuration>
					<downloadSources>true</downloadSources>
					<dependenciesAsLibraries>true</dependenciesAsLibraries>
				</configuration>
			</plugin>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-resources-plugin</artifactId>
    				<version>2.4.3</version>
    			</plugin>
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>tomcat-maven-plugin</artifactId>
    				<version>1.1</version>
    		<configuration>
					<url>http://192.168.0.39:8888/manager</url>
					<username>tomcat</username>
					<password>tomcat</password>
					
					<path>/jrtSubChannel</path>
					<port>8888</port>
					<update>true</update>
					
			   <sources>
                <source>src/resource/java</source>
                <source>src/main/java/com/jrt/channel/model/sql</source>
               
                </sources>
                
               
                
				    </configuration>
				    
    			</plugin>
    </plugins>

    </build>
</project>