<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.xnx3.wangmarket.wm</groupId>
  <artifactId>parent</artifactId>
  <!-- 版本跟 wm 版本对应 -->
  <version>2.26</version>
  <packaging>pom</packaging>
  <name>parent</name>
  
  
  <!-- 定义公共资源版本 -->
  <parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>2.6.1</version>
	<relativePath>../parent/pom.xml</relativePath>
  </parent>
  
  <properties>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
	<!-- 编译时的编码 -->  
	<maven.compiler.encoding>UTF-8</maven.compiler.encoding>  
	<java.version>1.8</java.version>
  </properties>
  
  <repositories>
  	<repository>
		<id>maven-ali</id>
		<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
		<releases>
			<enabled>true</enabled>
		</releases>
		<snapshots>
			<enabled>true</enabled>
			<updatePolicy>always</updatePolicy>
			<checksumPolicy>fail</checksumPolicy>
		</snapshots>
	</repository>
	<repository>
        <id>maven-guanfang</id>
        <url>https://repo1.maven.org/maven2/</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
            <checksumPolicy>fail</checksumPolicy>
        </snapshots>
    </repository>
	<repository>
		<snapshots>
			<enabled>false</enabled>
		</snapshots>
		<id>central</id>
		<name>bintray</name>
		<url>http://jcenter.bintray.com</url>
	</repository>
	
  </repositories>
  
  <dependencies>
	
  	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-web</artifactId>
		<exclusions>
	        <exclusion>
	            <groupId>org.springframework.boot</groupId>
	            <artifactId>spring-boot-starter-logging</artifactId>
	        </exclusion>
		</exclusions>
	</dependency>
	<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-freemarker</artifactId>
        <scope>provided</scope>
	</dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
        <scope>provided</scope>
    </dependency>
  	
  	<dependency>
	    <groupId>org.springframework.boot</groupId>
	    <artifactId>spring-boot-starter-log4j2</artifactId>
	    <exclusions>
		        <exclusion>
		           <groupId>org.apache.logging.log4j</groupId>
			      <artifactId>log4j-slf4j-impl</artifactId>
		       </exclusion>
		       <exclusion>
		       	  <groupId>org.apache.logging.log4j</groupId>
			      <artifactId>log4j-core</artifactId>
		       </exclusion>
		       <exclusion>
		       		<groupId>org.apache.logging.log4j</groupId>
			      <artifactId>log4j-jul</artifactId>
		       </exclusion>
		</exclusions>
	</dependency>
	<dependency>
		<groupId>mysql</groupId>
		<artifactId>mysql-connector-java</artifactId>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-data-jpa</artifactId>
	</dependency>
  	
  	<!-- 热部署 -->
	<dependency>
	    <groupId>org.springframework.boot</groupId>
	    <artifactId>spring-boot-devtools</artifactId>
	    <optional>true</optional>
	</dependency>
  	
  	
	<dependency>
        <groupId>commons-configuration</groupId>
        <artifactId>commons-configuration</artifactId>
        <version>1.7</version>
    </dependency>
    <dependency>
        <groupId>commons-codec</groupId>
        <artifactId>commons-codec</artifactId>
    </dependency>
    <dependency>
	    <groupId>org.apache.directory.studio</groupId>
	    <artifactId>org.apache.commons.io</artifactId>
	    <version>2.4</version>
	</dependency>
  	<!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload -->
	<dependency>
	    <groupId>commons-fileupload</groupId>
	    <artifactId>commons-fileupload</artifactId>
	    <version>1.3.3</version>
	</dependency>
	
	<!-- 使用 jsp 必要依赖 -->  
	<dependency>  
        <groupId>org.apache.tomcat.embed</groupId>  
        <artifactId>tomcat-embed-jasper</artifactId>  
        <scope>provided</scope>  
    </dependency>  
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>
        <scope>provided</scope>
    </dependency>
    <dependency>  
        <groupId>javax.servlet</groupId>  
        <artifactId>jstl</artifactId>  
        <type>jar</type>  
    </dependency>  
    <dependency>
        <groupId>org.apache.tomcat</groupId>
        <artifactId>tomcat-jsp-api</artifactId>
        <scope>provided</scope>
    </dependency>
    
    <!-- https://mvnrepository.com/artifact/eu.bitwalker/UserAgentUtils -->
	<dependency>
	    <groupId>eu.bitwalker</groupId>
	    <artifactId>UserAgentUtils</artifactId>
	    <version>1.14</version>
	</dependency>
	
	<!-- Shiro -->
	<dependency>
	  <groupId>org.apache.shiro</groupId>
	  <artifactId>shiro-spring</artifactId>
	  <version>1.8.0</version>
	</dependency>
	<dependency>
	  <groupId>org.apache.shiro</groupId>
	  <artifactId>shiro-web</artifactId>
	  <version>1.8.0</version>
	</dependency>
	
	<dependency>
		<artifactId>ehcache-core</artifactId>
		<groupId>net.sf.ehcache</groupId>
		<version>2.5.0</version>
	</dependency>
	<dependency>
		<groupId>org.apache.shiro</groupId>
		<artifactId>shiro-ehcache</artifactId>
		<version>1.8.0</version>
	</dependency>
	<!-- shiro redis -->
	<dependency>
        <groupId>org.crazycake</groupId>
        <artifactId>shiro-redis</artifactId>
        <version>3.3.1</version>
        <exclusions>
			<exclusion>
				<groupId>*</groupId>
				<artifactId>*</artifactId>
			</exclusion>
		</exclusions>
    </dependency>
       
    
	<dependency>
	    <groupId>org.json</groupId>
	    <artifactId>json</artifactId>
	    <version>20180130</version>
	</dependency>
  	
  	<!-- sqlite -->
    <dependency>
		<groupId>org.xerial</groupId>
		<artifactId>sqlite-jdbc</artifactId>
	</dependency>
	
	<!-- http请求 https://mvnrepository.com/artifact/commons-httpclient/commons-httpclient -->
	<dependency>
	    <groupId>commons-httpclient</groupId>
	    <artifactId>commons-httpclient</artifactId>
	    <version>3.1</version>
	</dependency>
  	
  	<dependency>
		<groupId>com.xnx3.json</groupId>
		<artifactId>json</artifactId>
		<version>1.0</version>
	</dependency>   
       
    

 	<dependency> 
        <groupId>com.xnx3.cache</groupId>  
        <artifactId>xnx3-cache</artifactId>  
        <version>1.1.1</version>  
    </dependency>
    <dependency> 
        <groupId>com.xnx3.util</groupId>
		<artifactId>xnx3-util</artifactId>
        <version>1.13</version>  
    </dependency>
    
	<dependency>
		<groupId>com.xnx3</groupId>
		<artifactId>xnx3</artifactId>
		<version>2.8</version>
		<exclusions>
			<exclusion>
				<groupId>*</groupId>
				<artifactId>*</artifactId>
			</exclusion>
		</exclusions>
	</dependency>
	
    
	<!-- javadoc - 生成 接口文档 -->
	<dependency>
	  <groupId>com.xnx3.doc.javadoc</groupId>
	  <artifactId>javadoc</artifactId>
	  <version>1.14</version>
	  <scope>provided</scope>
		<exclusions>
			<exclusion>
				<groupId>com.xnx3.util</groupId>
				<artifactId>xnx3-util</artifactId>
			</exclusion>
		</exclusions>
	</dependency>
	<dependency>
	  <groupId>com.perfma.wrapped</groupId>
	  <artifactId>com.sun.tools</artifactId>
	  <version>1.8.0_jdk8u275-b01_linux_x64</version>
	  <scope>provided</scope>
	</dependency>
	
	<!-- autoPublish 自动发布部署 -->
	<dependency>
	  <groupId>com.xnx3.wm.autoPublish</groupId>
	  <artifactId>autoPublish</artifactId>
	  <version>1.3</version>
	  <scope>provided</scope>
		<exclusions>
			<exclusion>
				<groupId>com.xnx3.util</groupId>
				<artifactId>xnx3-util</artifactId>
			</exclusion>
		</exclusions>
	</dependency>
	<!-- sftp 支持 -->
	<dependency>
	  <groupId>com.jcraft</groupId>
	  <artifactId>jsch</artifactId>
	  <version>0.1.55</version>
	  <scope>provided</scope>
	</dependency>
	<!-- ssh 支持 -->
	<dependency>
	  <groupId>ch.ethz.ganymed</groupId>
	  <artifactId>ganymed-ssh2</artifactId>
	  <version>262</version>
	  <scope>provided</scope>
	</dependency>
	
	
	
	<!-- writecode 自动写代码 -->
	<dependency>
	  <groupId>com.xnx3.writecode</groupId>
	  <artifactId>template.wm</artifactId>
	  <version>1.1.1</version>
	  <scope>provided</scope>
		<exclusions>
			<exclusion>
				<groupId>com.xnx3.util</groupId>
				<artifactId>xnx3-util</artifactId>
			</exclusion>
		</exclusions>
	</dependency>
	
	<!-- log4j 修复核弹漏洞 -->
	<dependency>
	    <groupId>org.apache.logging.log4j</groupId>
	    <artifactId>log4j-api</artifactId>
	    <version>2.17.0</version>
	</dependency>
	<dependency>
	    <groupId>org.apache.logging.log4j</groupId>
	    <artifactId>log4j-core</artifactId>
	    <version>2.17.0</version>
	</dependency>
    
	<!-- https://github.com/xnx3/FileUpload -->
	<!-- 文件上传相关的核心支持，是必须有的 -->
	<dependency> 
		<groupId>cn.zvo.fileupload</groupId>
		<artifactId>fileupload-core</artifactId>
		<version>1.1</version>
	</dependency>
	<!-- 在 SpringBoot 框架中的快速使用。 （在不同的框架中使用，这里引入的framework.xxx也不同） -->
	<dependency> 
		<groupId>cn.zvo.fileupload</groupId>
		<artifactId>fileupload-framework-springboot</artifactId>
		<version>1.1</version>
	</dependency>
    
	<!-- 日志相关 https://github.com/xnx3/log -->
	<dependency> 
		<groupId>cn.zvo.log</groupId>
		<artifactId>log-framework-springboot</artifactId>
		<version>1.0</version>
	</dependency>
	
	<!-- Page 分页 https://gitee.com/mail_osc/page.java -->
	<dependency>
		<groupId>cn.zvo.page</groupId>
		<artifactId>page</artifactId>
		<version>1.0</version>
	</dependency>
	
	<!-- WMResponseBody 针对json接口的 ResponseBody 的json返回值拦截处理用到 -->
	<dependency>
	  <groupId>com.alibaba</groupId>
	  <artifactId>fastjson</artifactId>
	  <version>2.0.19.graal</version>
	</dependency>
	
  </dependencies>
  
  <developers>
		<developer>
		<name>leiming guan</name>
		<email>mail@xnx3.com</email>
		<organization>Sonatype</organization>
		<organizationUrl>http://www.sonatype.com</organizationUrl>
		</developer>
	</developers>
	
	<profiles>
        <profile>
	
            <id>release</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <build>
                <plugins>
                
                	<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-jar-plugin</artifactId>
						<version>2.4</version>
					</plugin>
                
                    <!-- Source -->
                    <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</goal>
								</goals>
							</execution>
                        </executions>
                    </plugin>
                    <!-- Javadoc -->
                    
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>3.0.0</version>
						<configuration>
							<doclint>none</doclint>
							<additionalparam>-Xdoclint:none</additionalparam>
							<source>${java.version}</source>
							<!--指定编码为UTF-8-->
							<!-- <encoding>UTF-8</encoding>
							<aggregate>true</aggregate>
							<charset>UTF-8</charset>
							<docencoding>UTF-8</docencoding> -->
						</configuration>
                        <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.5</version>
                        <executions>
                            <execution>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
            <distributionManagement>
                <snapshotRepository>
                    <id>ossrh</id>
                    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
                </snapshotRepository>
                <repository>
                    <id>ossrh</id>
                    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
                </repository>
            </distributionManagement>
        </profile>
    </profiles>
    
</project>