maven项目配置文件

<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>web_server</groupId>
  <artifactId>web_server</artifactId>
  <packaging>jar</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>webchat_server</name>
  <url>http://maven.apache.org</url>
  <properties>
    <org.springframework.version>3.0.7.RELEASE</org.springframework.version>
  </properties>
  <dependencies>
    <dependency>
	  <groupId>org.apache.camel</groupId>
	  <artifactId>camel-core</artifactId>
	  <version>2.10.0</version>
	</dependency>
	<dependency>
	  <groupId>org.apache.camel</groupId>
	  <artifactId>camel-rmi</artifactId>
	  <version>2.10.0</version>
	</dependency>
	<dependency>
	  <groupId>org.apache.camel</groupId>
	  <artifactId>camel-spring</artifactId>
	  <version>2.10.0</version>
	</dependency>
	<dependency>
	  <groupId>org.apache.camel</groupId>
	  <artifactId>camel-test</artifactId>
	  <version>2.10.0</version>
	</dependency>
	<dependency>
		<groupId>org.nutz</groupId>
		<artifactId>nutz</artifactId>
		<version>1.b.45</version>
	</dependency>
	<dependency>
		<groupId>platform</groupId>
		<artifactId>platform-server</artifactId>
		<version>1.0</version>
		<scope>system</scope>
		<systemPath>E:/myworkspace/maven_webchat_server/lib/platform-server.jar</systemPath>
	</dependency>
	<dependency>
		<groupId>asm</groupId>
		<artifactId>asm</artifactId>
		<version>3.3.1</version>
		<scope>system</scope>
		<systemPath>E:/myworkspace/maven_webchat_server/lib/asm-3.3.1.jar</systemPath>
	</dependency>
	<dependency>
		<groupId>cglib</groupId>
		<artifactId>cglib</artifactId>
		<version>2.2.2</version>
	</dependency>
	<dependency>
		<groupId>com.cedarsoft.commons</groupId>
		<artifactId>commons</artifactId>
		<version>5.1.3</version>
	</dependency>
	<dependency>
		<groupId>commons</groupId>
		<artifactId>commons-dbcp</artifactId>
		<version>1.4</version>
		<scope>system</scope>
		<systemPath>E:/myworkspace/maven_webchat_server/lib/commons-dbcp-1.4.jar</systemPath>
	</dependency>
	<dependency>
		<groupId>commons</groupId>
		<artifactId>commons-lang</artifactId>
		<version>2.5</version>
		<scope>system</scope>
		<systemPath>E:/myworkspace/maven_webchat_server/lib/commons-lang-2.5.jar</systemPath>
	</dependency>
	<dependency>
		<groupId>commons</groupId>
		<artifactId>commons-logging</artifactId>
		<version>1.1.1</version>
		<scope>system</scope>
		<systemPath>E:/myworkspace/maven_webchat_server/lib/commons-logging-1.1.1.jar</systemPath>
	</dependency>
	<dependency>
		<groupId>commons</groupId>
		<artifactId>commons-pool</artifactId>
		<version>1.5.4</version>
		<scope>system</scope>
		<systemPath>E:/myworkspace/maven_webchat_server/lib/commons-pool-1.5.4.jar</systemPath>
	</dependency>
	<dependency>
		<groupId>fastjson</groupId>
		<artifactId>fastjson</artifactId>
		<version>1.1.22</version>
		<scope>system</scope>
		<systemPath>E:/myworkspace/maven_webchat_server/lib/fastjson-1.1.22.jar</systemPath>
	</dependency>
	<dependency>
		<groupId>hazelcast</groupId>
		<artifactId>hazelcast</artifactId>
		<version>2.0.3</version>
		<scope>system</scope>
		<systemPath>E:/myworkspace/maven_webchat_server/lib/hazelcast-2.0.3.jar</systemPath>
	</dependency>
	<dependency>
		<groupId>hazelcast</groupId>
		<artifactId>hazelcast-client</artifactId>
		<version>2.0.3</version>
		<scope>system</scope>
		<systemPath>E:/myworkspace/maven_webchat_server/lib/hazelcast-client-2.0.3.jar</systemPath>
	</dependency>
	<dependency>
		<groupId>log4j</groupId>
		<artifactId>log4j</artifactId>
		<version>1.2.16</version>
		<scope>system</scope>
		<systemPath>E:/myworkspace/maven_webchat_server/lib/log4j-1.2.16.jar</systemPath>
	</dependency>
	<dependency>
		<groupId>mysql</groupId>
		<artifactId>mysql-connector-java</artifactId>
		<version>5.1.21</version>
	</dependency>
	<dependency>
		<groupId>slf4j</groupId>
		<artifactId>slf4j-api</artifactId>
		<version>1.6.1</version>
		<scope>system</scope>
		<systemPath>E:/myworkspace/maven_webchat_server/lib/slf4j-api-1.6.1.jar</systemPath>
	</dependency>
	<dependency>
		<groupId>slf4j</groupId>
		<artifactId>slf4j-log4j12</artifactId>
		<version>1.6.6</version>
		<scope>system</scope>
		<systemPath>E:/myworkspace/maven_webchat_server/lib/slf4j-log4j12-1.6.6.jar</systemPath>
	</dependency>
	<dependency>
	  <groupId>org.springframework</groupId>
	  <artifactId>spring-core</artifactId>
	  <version>${org.springframework.version}</version>
	</dependency>
	<dependency>
	  <groupId>org.springframework</groupId>
	  <artifactId>spring-beans</artifactId>
	  <version>${org.springframework.version}</version>
	</dependency>
	<dependency>
	  <groupId>org.springframework</groupId>
	  <artifactId>spring-aop</artifactId>
	  <version>${org.springframework.version}</version>
	</dependency>
	<dependency>
	  <groupId>org.springframework</groupId>
	  <artifactId>spring-context</artifactId>
	  <version>${org.springframework.version}</version>
	</dependency>
	<dependency>
	  <groupId>org.springframework</groupId>
	  <artifactId>spring-expression</artifactId>
	  <version>${org.springframework.version}</version>
	</dependency>
	<dependency>
	  <groupId>org.springframework</groupId>
	  <artifactId>spring-asm</artifactId>
	  <version>${org.springframework.version}</version>
	</dependency>
  </dependencies>
  <build>
     <sourceDirectory>src/main/java</sourceDirectory>  
		<resources>  
		    <resource>  
		        <directory>src/main/resources</directory>  
		    </resource>  
		</resources>  
	 <outputDirectory>target/bin</outputDirectory> 
     <plugins>
     	<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>2.3.2</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-jar-plugin</artifactId>
			<configuration>
			<archive>
			<manifest>
			<addClasspath>true</addClasspath>
			<classpathPrefix>lib/</classpathPrefix>
			<mainClass>com.guagua.server.CreatePageStart</mainClass>
			</manifest>
			</archive>
			</configuration>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-dependency-plugin</artifactId>
			<executions>
			<execution>
			<id>copy</id>
			<phase>install</phase>
			<goals>
				<goal>copy-dependencies</goal>
			</goals>
			<configuration>
			<outputDirectory>target/lib</outputDirectory>
			</configuration>
			</execution>
			</executions>
		</plugin>

     </plugins>
  </build>
</project>

 

你可能感兴趣的:(maven)