<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<groupId>cn.samehope</groupId>
	<artifactId>jcart-core</artifactId>
	<version>1.2.2</version>
	<name>jcart-core</name>
	<packaging>jar</packaging>
	<url>http://gitee.samehope.cn/</url>
	<description>jcart-core is a development kit.</description>
  
  	<licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>
    <developers>
        <developer>
            <name>liudan</name>
            <email>654442366@qq.com</email>
        </developer>
    </developers>
    
    <scm>
        <connection>scm:git:git@gitee.com:samehope/jcart-core.git</connection>
        <developerConnection>scm:git:git@gitee.com:samehope/jcart-core.git</developerConnection>
        <url>git@gitee.com:samehope/jcart-core.git</url>
    </scm>
    
	<properties>
		<jdk.version>1.7</jdk.version>
		<junit.version>3.8.1</junit.version>
		<javax.servlet.version>2.5</javax.servlet.version>
		<jfinal.version>3.2</jfinal.version>

		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  </properties>
  
	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
			<version>${junit.version}</version>
		</dependency>
		
		<dependency>
		     <groupId>javax.servlet</groupId>
		     <artifactId>servlet-api</artifactId>
		     <version>${javax.servlet.version}</version>
		     <scope>provided</scope>
		   </dependency>
		
		<dependency>
			<groupId>com.jfinal</groupId>
			<artifactId>jfinal</artifactId>
			<version>${jfinal.version}</version>
		</dependency>	
	</dependencies>
	
	<!-- 
	<build>
		<finalName>jcart-core</finalName>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>2.3.1</version>
				<configuration>
					<archive>
						<manifest>
							<addClasspath>true</addClasspath>
						</manifest>
						<manifestEntries>
							<Route-Class>
								com.xzq.test.PreAgent
							</Route-Class>
							<Route-Method>
								/fdas/fdsa
							</Route-Method>
						</manifestEntries>
					</archive>
				</configuration>
			</plugin>
		</plugins>
	</build>
	-->
	
	
	
	<profiles>
        <profile>
            <id>release</id>
            <build>
            	<defaultGoal>compile</defaultGoal>
            	<finalName>jcart-core</finalName>
                <plugins>
                	<plugin>
		                <groupId>org.apache.maven.plugins</groupId>
		                <artifactId>maven-compiler-plugin</artifactId>
		                <version>3.3</version>
		                <configuration>
		                    <source>1.7</source>
		                    <target>1.7</target>
		                </configuration>
		            </plugin>
                    <!-- Source -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>2.2.1</version>
                        <executions>
                            <execution>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- Javadoc -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>2.9.1</version>
                        <executions>
                            <execution>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- GPG -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.6</version>
                        <executions>
                            <execution>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
            <distributionManagement>
                <snapshotRepository>
                    <id>Releases</id>
                    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
                </snapshotRepository>
                <repository>
                    <id>Releases</id>
                    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
                </repository>
            </distributionManagement>
        </profile>
        
        <profile> 
			<id>jdk-1.7</id> 
			<activation> 
				<activeByDefault>true</activeByDefault> 
				<jdk>1.7</jdk> 
			</activation> 
			<properties> 
				<maven.compiler.source>1.7</maven.compiler.source>
				<maven.compiler.target>1.7</maven.compiler.target> 
				<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion> 
			</properties> 
		</profile>
    </profiles>
</project>
