|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <groupId>com.example</groupId> |
| 7 | + <artifactId>SpringBootGenerator</artifactId> |
| 8 | + <version>0.0.1-SNAPSHOT</version> |
| 9 | + <packaging>jar</packaging> |
| 10 | + |
| 11 | + <name>SpringBootGenerator</name> |
| 12 | + <description>Demo project for Spring Boot</description> |
| 13 | + |
| 14 | + <parent> |
| 15 | + <groupId>org.springframework.boot</groupId> |
| 16 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 17 | + <version>1.5.16.RELEASE</version> |
| 18 | + <relativePath/> <!-- lookup parent from repository --> |
| 19 | + </parent> |
| 20 | + |
| 21 | + <properties> |
| 22 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 23 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 24 | + <java.version>1.8</java.version> |
| 25 | + <mybatis.version>1.3.2</mybatis.version> |
| 26 | + <druid.version>1.1.10</druid.version> |
| 27 | + <pagehelper.version>1.2.3</pagehelper.version> |
| 28 | + <mapper.version>1.2.3</mapper.version> |
| 29 | + <fastjson.version>1.2.47</fastjson.version> |
| 30 | + <freemarker.version>2.3.23</freemarker.version> |
| 31 | + <generator.version>1.3.6</generator.version> |
| 32 | + <guava.version>23.0</guava.version> |
| 33 | + <commons-lang3.version>3.7</commons-lang3.version> |
| 34 | + </properties> |
| 35 | + |
| 36 | + <dependencies> |
| 37 | + <dependency> |
| 38 | + <groupId>org.springframework.boot</groupId> |
| 39 | + <artifactId>spring-boot-starter</artifactId> |
| 40 | + </dependency> |
| 41 | + |
| 42 | + <dependency> |
| 43 | + <groupId>org.springframework.boot</groupId> |
| 44 | + <artifactId>spring-boot-starter-test</artifactId> |
| 45 | + <scope>test</scope> |
| 46 | + </dependency> |
| 47 | + |
| 48 | + <dependency> |
| 49 | + <groupId>org.springframework.boot</groupId> |
| 50 | + <artifactId>spring-boot-devtools</artifactId> |
| 51 | + <optional>true</optional> |
| 52 | + </dependency> |
| 53 | + |
| 54 | + <!-- Web --> |
| 55 | + <dependency> |
| 56 | + <groupId>org.springframework.boot</groupId> |
| 57 | + <artifactId>spring-boot-starter-web</artifactId> |
| 58 | + </dependency> |
| 59 | + |
| 60 | + <!-- Mysql-Connector --> |
| 61 | + <dependency> |
| 62 | + <groupId>mysql</groupId> |
| 63 | + <artifactId>mysql-connector-java</artifactId> |
| 64 | + </dependency> |
| 65 | + |
| 66 | + <!-- Mybatis --> |
| 67 | + <dependency> |
| 68 | + <groupId>org.mybatis.spring.boot</groupId> |
| 69 | + <artifactId>mybatis-spring-boot-starter</artifactId> |
| 70 | + <version>${mybatis.version}</version> |
| 71 | + </dependency> |
| 72 | + |
| 73 | + <!-- Druid --> |
| 74 | + <dependency> |
| 75 | + <groupId>com.alibaba</groupId> |
| 76 | + <artifactId>druid-spring-boot-starter</artifactId> |
| 77 | + <version>${druid.version}</version> |
| 78 | + </dependency> |
| 79 | + |
| 80 | + <!-- Pagehelper --> |
| 81 | + <dependency> |
| 82 | + <groupId>com.github.pagehelper</groupId> |
| 83 | + <artifactId>pagehelper-spring-boot-starter</artifactId> |
| 84 | + <version>${pagehelper.version}</version> |
| 85 | + </dependency> |
| 86 | + |
| 87 | + <!-- 通用Mapper --> |
| 88 | + <dependency> |
| 89 | + <groupId>tk.mybatis</groupId> |
| 90 | + <artifactId>mapper-spring-boot-starter</artifactId> |
| 91 | + <version>${mapper.version}</version> |
| 92 | + </dependency> |
| 93 | + |
| 94 | + <!-- Fastjson --> |
| 95 | + <dependency> |
| 96 | + <groupId>com.alibaba</groupId> |
| 97 | + <artifactId>fastjson</artifactId> |
| 98 | + <version>${fastjson.version}</version> |
| 99 | + </dependency> |
| 100 | + |
| 101 | + <!-- Generator --> |
| 102 | + <dependency> |
| 103 | + <groupId>org.freemarker</groupId> |
| 104 | + <artifactId>freemarker</artifactId> |
| 105 | + <version>${freemarker.version}</version> |
| 106 | + <scope>test</scope> |
| 107 | + </dependency> |
| 108 | + |
| 109 | + <dependency> |
| 110 | + <groupId>org.mybatis.generator</groupId> |
| 111 | + <artifactId>mybatis-generator-maven-plugin</artifactId> |
| 112 | + <version>${generator.version}</version> |
| 113 | + <scope>test</scope> |
| 114 | + </dependency> |
| 115 | + |
| 116 | + <!-- Guava --> |
| 117 | + <dependency> |
| 118 | + <groupId>com.google.guava</groupId> |
| 119 | + <artifactId>guava</artifactId> |
| 120 | + <version>${guava.version}</version> |
| 121 | + </dependency> |
| 122 | + |
| 123 | + <!-- Commons-Lang3 --> |
| 124 | + <dependency> |
| 125 | + <groupId>org.apache.commons</groupId> |
| 126 | + <artifactId>commons-lang3</artifactId> |
| 127 | + <version>${commons-lang3.version}</version> |
| 128 | + </dependency> |
| 129 | + </dependencies> |
| 130 | + |
| 131 | + <build> |
| 132 | + <plugins> |
| 133 | + <!-- SrpingBoot打包工具 --> |
| 134 | + <plugin> |
| 135 | + <groupId>org.springframework.boot</groupId> |
| 136 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 137 | + </plugin> |
| 138 | + <!-- 指定JDK编译版本 --> |
| 139 | + <plugin> |
| 140 | + <groupId>org.apache.maven.plugins</groupId> |
| 141 | + <artifactId>maven-compiler-plugin</artifactId> |
| 142 | + <configuration> |
| 143 | + <source>${java.version}</source> |
| 144 | + <target>${java.version}</target> |
| 145 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 146 | + </configuration> |
| 147 | + </plugin> |
| 148 | + </plugins> |
| 149 | + </build> |
| 150 | + |
| 151 | +</project> |
0 commit comments