<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>com.centit.support</groupId>
  <artifactId>centit-database</artifactId>
  <version>2.1.2</version>
  <name>com.centit.support:centit-database</name>
  <description>数据库操作通用方法和函数，从以前的util包中分离出来，并且整合了部分sys-module中的函数</description>
  <url>https://github.com/ndxt/centit-database</url>

<licenses>
     <license>
       <name>The Apache License, Version 2.0</name>
       <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
     </license>
    </licenses>  
   
    <developers>
	    <developer>
	      <name>杨淮生</name>
	      <email>codefan@sina.com</email>
	      <organization>centit.com</organization>
	      <organizationUrl>http://www.centit.com</organizationUrl>
	    </developer>	    
	</developers>
	
	<scm>
	      <connection>
	         scm:git:https://github.com/ndxt/centit-database.git
	      </connection>
	      <developerConnection>
	         scm:git:https://github.com/ndxt/centit-database.git
	      </developerConnection>
	      <url>https://github.com/ndxt/centit-database</url>
	     <tag>v1.12</tag>
	  </scm>
	  
  <properties>
  	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  
  <!-- mvn deploy -DpomFile=pom.xml -->
  <!-- distributionManagement>
  	<repository> 
  		<id>centit-releases</id>
         <name>centit-release</name>
         <url>http://develop.centit.com:8080/nexus/content/repositories/centit-releases/</url>
  	</repository>
  	<snapshotRepository>
  		<id>centit-snapshots</id>
        <name>centit-snapshots</name>
        <url>http://develop.centit.com:8080/nexus/content/repositories/centit-snapshots/</url>
  	</snapshotRepository>
  </distributionManagement>  -->
  
  <!-- <distributionManagement>
	  	<repository> 
	  		<id>centit-releases</id>
	         <name>centit-release</name>
	         <url>http://develop.centit.com:8081/nexus/repository/centit-releases/</url>
	  	</repository>
	  	<snapshotRepository>
	  		<id>centit-snapshots</id>
	        <name>centit-snapshots</name>
	        <url>http://develop.centit.com:8081/nexus/repository/centit-snapshots/</url>
	  	</snapshotRepository>
	  </distributionManagement>  -->
	  
	  <distributionManagement>
		<repository>
			<id>ossrh</id>
			<name>sonatype-releases</name>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
		</repository>
		<snapshotRepository>
			<id>ossrh</id>
			<name>sonatype-snapshots</name>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

  <dependencies>
  
		<dependency>
			<groupId>com.centit.support</groupId>
			<artifactId>centit-compiler</artifactId>
			<version>2.1.2</version>
		</dependency>
		
		<dependency>
		  <groupId>org.apache.commons</groupId>
		  <artifactId>commons-dbcp2</artifactId>
		  <version>2.0.1</version>
		</dependency>
		<dependency>
		  <groupId>jaxen</groupId>
		  <artifactId>jaxen</artifactId>
		  <version>1.1.6</version>
		</dependency>
		<dependency>
			<groupId>com.oracle</groupId>
			<artifactId>ojdbc6</artifactId>
			<version>11.2.0.4</version>
			<scope>test</scope>
		</dependency>
  </dependencies>
  
 <build>
		<plugins>
			<plugin> 
				<groupId>org.apache.maven.plugins</groupId> 
				<artifactId>maven-compiler-plugin</artifactId> 
				<version>2.3.2</version> 
				<configuration> 
					<source>1.7</source> 
					<target>1.7</target> 
					<encoding>UTF-8</encoding> 
					<compilerArguments> 
						<verbose /> 
						<bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath> 
					</compilerArguments> 
				</configuration> 
			</plugin>
 
 			<!-- 打包时添加源码 -->
			<plugin>
			    <groupId>org.apache.maven.plugins</groupId>
			    <artifactId>maven-source-plugin</artifactId>
			    <version>2.4</version> 
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar-no-fork</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			
			<plugin>
		      <groupId>org.apache.maven.plugins</groupId>
		      <artifactId>maven-javadoc-plugin</artifactId>
		      <version>2.9.1</version>
		      <executions>
		        <execution>
		          <id>attach-javadocs</id>
		          <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>
		          <id>sign-artifacts</id>
		          <phase>verify</phase>
		          <goals>
		            <goal>sign</goal>
		          </goals>
		        </execution>
		      </executions>
		    </plugin> 
		    
		    
			<!-- sonatype release :
				mvn nexus-staging:release -->
		    
		    <plugin>
			  <groupId>org.sonatype.plugins</groupId>
			  <artifactId>nexus-staging-maven-plugin</artifactId>
			  <version>1.6.3</version>
			  <extensions>true</extensions>
			  <configuration>
			     <serverId>ossrh</serverId>
			     <nexusUrl>https://oss.sonatype.org/</nexusUrl>
			     <autoReleaseAfterClose>true</autoReleaseAfterClose>
			  </configuration>
			</plugin> 
			
		</plugins>
	</build>
</project>