|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + |
| 5 | + <groupId>com.itfsw</groupId> |
| 6 | + <artifactId>mybatis-generator-plugin</artifactId> |
| 7 | + <version>1.0.0</version> |
| 8 | + <packaging>jar</packaging> |
| 9 | + |
| 10 | + <name>mybatis-generator-plugin</name> |
| 11 | + <description>Mybatis Generator Plugins</description> |
| 12 | + <url>https://github.com/itfsw/mybatis-generator-plugin</url> |
| 13 | + |
| 14 | + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ license ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 15 | + <licenses> |
| 16 | + <license> |
| 17 | + <name>The Apache License, Version 2.0</name> |
| 18 | + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 19 | + </license> |
| 20 | + </licenses> |
| 21 | + |
| 22 | + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++项目properties配置++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 23 | + <properties> |
| 24 | + <!-- java version --> |
| 25 | + <java.version>1.8</java.version> |
| 26 | + <!-- 构建编码 --> |
| 27 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 28 | + </properties> |
| 29 | + |
| 30 | + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++依赖管理++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 31 | + <dependencies> |
| 32 | + <!-- mybatis generator --> |
| 33 | + <dependency> |
| 34 | + <groupId>org.mybatis.generator</groupId> |
| 35 | + <artifactId>mybatis-generator-core</artifactId> |
| 36 | + <version>1.3.5</version> |
| 37 | + <scope>provided</scope> |
| 38 | + </dependency> |
| 39 | + <!-- 日志 --> |
| 40 | + <dependency> |
| 41 | + <groupId>org.slf4j</groupId> |
| 42 | + <artifactId>slf4j-api</artifactId> |
| 43 | + <version>1.7.22</version> |
| 44 | + </dependency> |
| 45 | + <!-- junit --> |
| 46 | + <dependency> |
| 47 | + <groupId>junit</groupId> |
| 48 | + <artifactId>junit</artifactId> |
| 49 | + <version>3.8.1</version> |
| 50 | + <scope>test</scope> |
| 51 | + </dependency> |
| 52 | + </dependencies> |
| 53 | + |
| 54 | + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++profiles++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 55 | + <profiles> |
| 56 | + <profile> |
| 57 | + <id>release</id> |
| 58 | + <build> |
| 59 | + <plugins> |
| 60 | + <plugin> |
| 61 | + <groupId>org.apache.maven.plugins</groupId> |
| 62 | + <artifactId>maven-source-plugin</artifactId> |
| 63 | + <version>3.0.1</version> |
| 64 | + <executions> |
| 65 | + <execution> |
| 66 | + <id>attach-sources</id> |
| 67 | + <goals> |
| 68 | + <goal>jar</goal> |
| 69 | + </goals> |
| 70 | + </execution> |
| 71 | + </executions> |
| 72 | + </plugin> |
| 73 | + <plugin> |
| 74 | + <groupId>org.apache.maven.plugins</groupId> |
| 75 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 76 | + <version>2.10.4</version> |
| 77 | + <configuration> |
| 78 | + <charset>${project.build.sourceEncoding}</charset> |
| 79 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 80 | + <docencoding>${project.build.sourceEncoding}</docencoding> |
| 81 | + </configuration> |
| 82 | + <executions> |
| 83 | + <execution> |
| 84 | + <id>attach-javadocs</id> |
| 85 | + <goals> |
| 86 | + <goal>jar</goal> |
| 87 | + </goals> |
| 88 | + </execution> |
| 89 | + </executions> |
| 90 | + </plugin> |
| 91 | + <!-- gpg 签名 --> |
| 92 | + <plugin> |
| 93 | + <groupId>org.apache.maven.plugins</groupId> |
| 94 | + <artifactId>maven-gpg-plugin</artifactId> |
| 95 | + <version>1.6</version> |
| 96 | + <executions> |
| 97 | + <execution> |
| 98 | + <id>sign-artifacts</id> |
| 99 | + <phase>verify</phase> |
| 100 | + <goals> |
| 101 | + <goal>sign</goal> |
| 102 | + </goals> |
| 103 | + </execution> |
| 104 | + </executions> |
| 105 | + </plugin> |
| 106 | + </plugins> |
| 107 | + </build> |
| 108 | + </profile> |
| 109 | + </profiles> |
| 110 | + |
| 111 | + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++build++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 112 | + <build> |
| 113 | + <!-- 配置java版本 不配置的话默认父类配置的是1.6--> |
| 114 | + <pluginManagement> |
| 115 | + <plugins> |
| 116 | + <!-- 由于历史原因 maven-compiler只支持编译Java 1.3 所以要自己手动配置其支持1.5 不然跑test的时候不能使用 |
| 117 | + @Test 注解!! --> |
| 118 | + <plugin> |
| 119 | + <artifactId>maven-compiler-plugin</artifactId> |
| 120 | + <configuration> |
| 121 | + <source>${java.version}</source> |
| 122 | + <target>${java.version}</target> |
| 123 | + </configuration> |
| 124 | + </plugin> |
| 125 | + </plugins> |
| 126 | + </pluginManagement> |
| 127 | + </build> |
| 128 | + |
| 129 | + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++developers++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 130 | + <developers> |
| 131 | + <developer> |
| 132 | + <name>hewei</name> |
| 133 | + <email>hewei@itfsw.com</email> |
| 134 | + <organization>itfsw</organization> |
| 135 | + <organizationUrl>http://blog.itfsw.com</organizationUrl> |
| 136 | + </developer> |
| 137 | + </developers> |
| 138 | + |
| 139 | + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++scm++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 140 | + <scm> |
| 141 | + <connection> |
| 142 | + scm:git:https://github.com/itfsw/mybatis-generator-plugin.git |
| 143 | + </connection> |
| 144 | + <developerConnection> |
| 145 | + scm:git:https://github.com/itfsw/mybatis-generator-plugin.git |
| 146 | + </developerConnection> |
| 147 | + <url>https://github.com/itfsw/mybatis-generator-plugin</url> |
| 148 | + <tag>v1.0.0</tag> |
| 149 | + </scm> |
| 150 | + |
| 151 | + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++distribution++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 152 | + <distributionManagement> |
| 153 | + <snapshotRepository> |
| 154 | + <id>sonatype</id> |
| 155 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 156 | + </snapshotRepository> |
| 157 | + <repository> |
| 158 | + <id>sonatype</id> |
| 159 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 160 | + </repository> |
| 161 | + </distributionManagement> |
| 162 | +</project> |
0 commit comments