Build dubbo distributed platform-maven build ant-framework framework pom.xml file configuration

Keywords: Spring Shiro Mybatis Apache

Today's focus is on the process of building an ant-framework trusted project.

ant-framework is the basic core framework of ant distributed framework, including CRUD, MVC and a series of base classes and templates. In addition, spring, mybatis, wink and other low-level framework extension projects are defined, including:

1. annotation related annotations: data signature annotations, whether users go to sso login annotations, etc.

2. Bean certification;

3. filter filter filter: paging, sso single sign-on, etc.

4. Object transformation encapsulation, such as: json;

5. Encapsulation of basic controller, dao, service, basebean and xml;

6. Encapsulation of security permissions;

7. Encapsulation of basic CRUD;

8. Encapsulation of basic servlet s;

9. Universal management encapsulation, such as users, roles, permissions, data dictionaries, menus, days, departmental institutions, etc.

Tip: At present, only a small part of the core is listed. In the following chapters, all the contents will be explained one by one and the relevant code will be attached.

The previous article I wrote a little too much at a time, some scholars may be unacceptable at a time. In the following chapters, I will make a detailed analysis of each knowledge point. I hope you can build the framework according to the examples.

Today we only do simple project creation, create ant-framework project, and inherit ant-parent project, where the pom.xml configuration file is as follows:

<?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>
	<parent>
		<groupId>com.sml.sz</groupId>
		<artifactId>ant-project</artifactId>
		<version>1.0.0</version>
	</parent>
	<artifactId>ant-framework</artifactId>
	<name>ant-framework</name>
	<url>http://maven.apache.org</url>
	<description>This project defines ant Code framework, including CRUD,MVC Wait for a series of base classes and templates. Also defined spring,mybatis,wink Equal Bottom Framework Extension</description>
 
	<dependencies>
		<!-- spring begin -->
		<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-beans</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context-support</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-aop</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-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-jdbc</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>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-oxm</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<!-- spring end -->
		
		<!-- shiro begin -->
		<dependency>
			<groupId>org.apache.shiro</groupId>
			<artifactId>shiro-core</artifactId>
			<version>${shiro.version}</version>
			<exclusions>
				<exclusion>
					<groupId>org.slf4j</groupId>
		  			<artifactId>slf4j-api</artifactId>
		  		</exclusion>
		  	</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.shiro</groupId>
			<artifactId>shiro-spring</artifactId>
			<version>${shiro.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.shiro</groupId>
			<artifactId>shiro-web</artifactId>
			<version>${shiro.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.shiro</groupId>
			<artifactId>shiro-ehcache</artifactId>
			<version>${shiro.version}</version>
			<exclusions>
				<exclusion>
					<groupId>org.slf4j</groupId>
		  			<artifactId>slf4j-api</artifactId>
		  		</exclusion>
		  	</exclusions>
		</dependency>
		<!-- shiro end -->
		
		<!-- mybatis begin -->
		<dependency>
			<groupId>org.mybatis</groupId>
			<artifactId>mybatis</artifactId>
			<version>${mybatis.version}</version>
		</dependency>
		<dependency>
			<groupId>org.mybatis</groupId>
			<artifactId>mybatis-spring</artifactId>
			<version>${mybatis-spring.version}</version>
		</dependency>
		<!-- mybatis end -->
		
		<!-- hibernate validate begin -->
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-validator</artifactId>
			<version>${validator.version}</version>
		</dependency>
		<!-- hibernate validate end -->
		
		<!-- Framework tools jar package  -->
		<dependency>
			<groupId>com.sml.sz</groupId>
			<artifactId>ant-utils</artifactId>
			<exclusions>
				<exclusion>
					<artifactId>slf4j-log4j12</artifactId>
					<groupId>org.slf4j</groupId>
				</exclusion>
			</exclusions>
		</dependency>
	</dependencies>
</project>

Special reminder:

Welcome to consult 2042849237 for source code of complete project

Because ant-utils project is a common tool jar package for the whole distributed architecture, ant-utils project is configured in the pom file of ant-framework, that is to say, all future projects must rely on ant-framework.

Posted by MARIOPARTY53 on Thu, 27 Dec 2018 11:45:06 -0800