|
12 | 12 | <jdk.version>1.7</jdk.version>
|
13 | 13 | </properties>
|
14 | 14 |
|
| 15 | + <inceptionYear>2017</inceptionYear> |
15 | 16 |
|
16 | 17 | <!-- projectName,description,url等。-->
|
17 | 18 | <name>${project.groupId}:${project.artifactId}</name>
|
18 | 19 | <description>The plug-in of Jmockdata what through random algorithm mock java data</description>
|
19 | 20 | <url>https://github.com/jsonzou/jmockdata</url>
|
20 | 21 |
|
21 |
| - |
22 | 22 | <!-- license 信息-->
|
23 | 23 | <licenses>
|
24 | 24 | <license>
|
|
27 | 27 | </license>
|
28 | 28 | </licenses>
|
29 | 29 |
|
30 |
| - |
31 | 30 | <!-- 开发者信息-->
|
32 | 31 | <developers>
|
33 | 32 | <developer>
|
|
40 | 39 |
|
41 | 40 | <!-- SCM 信息-->
|
42 | 41 | <scm>
|
43 |
| - <connection> |
44 |
| - scm:git:https://github.com/jsonzou/jmockdata.git |
45 |
| - </connection> |
46 |
| - <developerConnection> |
47 |
| - scm:git:https://github.com/jsonzou/jmockdata.git |
48 |
| - </developerConnection> |
| 42 | + <connection>scm:git:https://github.com/jsonzou/jmockdata.git</connection> |
| 43 | + <developerConnection>scm:git:https://github.com/jsonzou/jmockdata.git</developerConnection> |
49 | 44 | <url>https://github.com/jsonzou/jmockdata</url>
|
50 | 45 | <tag>jmockdata</tag>
|
51 | 46 | </scm>
|
|
64 | 59 |
|
65 | 60 |
|
66 | 61 | <dependencies>
|
67 |
| - |
68 | 62 | <dependency>
|
69 | 63 | <groupId>com.alibaba</groupId>
|
70 | 64 | <artifactId>fastjson</artifactId>
|
71 | 65 | <version>1.2.17</version>
|
72 | 66 | <scope>test</scope>
|
73 | 67 | </dependency>
|
74 |
| - |
75 |
| - |
76 | 68 | <dependency>
|
77 | 69 | <groupId>junit</groupId>
|
78 | 70 | <artifactId>junit</artifactId>
|
79 | 71 | <version>4.12</version>
|
80 | 72 | <scope>test</scope>
|
81 | 73 | </dependency>
|
82 | 74 | </dependencies>
|
| 75 | + <build> |
| 76 | + <pluginManagement> |
| 77 | + <plugins> |
| 78 | + <!--编译--> |
| 79 | + <plugin> |
| 80 | + <groupId>org.apache.maven.plugins</groupId> |
| 81 | + <artifactId>maven-compiler-plugin</artifactId> |
| 82 | + <version>3.6.1</version> |
| 83 | + <configuration> |
| 84 | + <source>1.7</source> |
| 85 | + <target>1.7</target> |
| 86 | + <testSource>1.7</testSource> |
| 87 | + <testTarget>1.7</testTarget> |
| 88 | + <encoding>UTF-8</encoding> |
| 89 | + <optimize>true</optimize> |
| 90 | + <!-- Slightly faster builds, see https://issues.apache.org/jira/browse/MCOMPILER-209 --> |
| 91 | + <useIncrementalCompilation>false</useIncrementalCompilation> |
| 92 | + </configuration> |
| 93 | + </plugin> |
| 94 | + <!--本地打包--> |
| 95 | + <plugin> |
| 96 | + <groupId>org.apache.maven.plugins</groupId> |
| 97 | + <artifactId>maven-install-plugin</artifactId> |
| 98 | + <version>2.5.2</version> |
| 99 | + </plugin> |
| 100 | + <!--发布--> |
| 101 | + <plugin> |
| 102 | + <groupId>org.apache.maven.plugins</groupId> |
| 103 | + <artifactId>maven-deploy-plugin</artifactId> |
| 104 | + <version>2.8.2</version> |
| 105 | + </plugin> |
| 106 | + <!--清除--> |
| 107 | + <plugin> |
| 108 | + <groupId>org.apache.maven.plugins</groupId> |
| 109 | + <artifactId>maven-clean-plugin</artifactId> |
| 110 | + <version>3.0.0</version> |
| 111 | + </plugin> |
| 112 | + <!--测试--> |
| 113 | + <plugin> |
| 114 | + <groupId>org.apache.maven.plugins</groupId> |
| 115 | + <artifactId>maven-surefire-plugin</artifactId> |
| 116 | + <version>2.19.1</version> |
| 117 | + <configuration> |
| 118 | + <forkMode>once</forkMode> |
| 119 | + <argLine>-Dfile.encoding=UTF-8</argLine> |
| 120 | + </configuration> |
| 121 | + </plugin> |
| 122 | + <!-- Source --> |
| 123 | + <plugin> |
| 124 | + <groupId>org.apache.maven.plugins</groupId> |
| 125 | + <artifactId>maven-source-plugin</artifactId> |
| 126 | + <version>2.2.1</version> |
| 127 | + <executions> |
| 128 | + <execution> |
| 129 | + <phase>package</phase> |
| 130 | + <goals> |
| 131 | + <goal>jar-no-fork</goal> |
| 132 | + </goals> |
| 133 | + </execution> |
| 134 | + </executions> |
| 135 | + </plugin> |
| 136 | + <!-- Javadoc --> |
| 137 | + <plugin> |
| 138 | + <groupId>org.apache.maven.plugins</groupId> |
| 139 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 140 | + <version>2.10.4</version> |
| 141 | + <configuration> |
| 142 | + <aggregate>true</aggregate> |
| 143 | + </configuration> |
| 144 | + <executions> |
| 145 | + <execution> |
| 146 | + <id>attach-javadocs</id> |
| 147 | + <goals> |
| 148 | + <goal>jar</goal> |
| 149 | + </goals> |
| 150 | + </execution> |
| 151 | + </executions> |
| 152 | + </plugin> |
| 153 | + <!-- GPG --> |
| 154 | + <plugin> |
| 155 | + <groupId>org.apache.maven.plugins</groupId> |
| 156 | + <artifactId>maven-gpg-plugin</artifactId> |
| 157 | + <version>1.6</version> |
| 158 | + <executions> |
| 159 | + <execution> |
| 160 | + <phase>verify</phase> |
| 161 | + <goals> |
| 162 | + <goal>sign</goal> |
| 163 | + </goals> |
| 164 | + </execution> |
| 165 | + </executions> |
| 166 | + </plugin> |
| 167 | + <!--license插件,用于给每个文件生成头注释 https://github.com/mycila/license-maven-plugin--> |
| 168 | + <!--mvn license:format--> |
| 169 | + <plugin> |
| 170 | + <groupId>com.mycila</groupId> |
| 171 | + <artifactId>license-maven-plugin</artifactId> |
| 172 | + <version>3.0</version> |
| 173 | + <configuration> |
| 174 | + <header>license.txt</header> |
| 175 | + <properties> |
| 176 | + <owner>jsonzou</owner> |
| 177 | + |
| 178 | + </properties> |
| 179 | + <mapping> |
| 180 | + <xml.vm>XML_STYLE</xml.vm> |
| 181 | + </mapping> |
| 182 | + <excludes> |
| 183 | + <exclude>pom.xml</exclude> |
| 184 | + <exclude>.git**</exclude> |
| 185 | + <exclude>LICENSE</exclude> |
| 186 | + <exclude>README</exclude> |
| 187 | + <exclude>src/test/resources/**</exclude> |
| 188 | + <exclude>src/main/resources/**</exclude> |
| 189 | + </excludes> |
| 190 | + </configuration> |
| 191 | + <executions> |
| 192 | + <execution> |
| 193 | + <phase>validate</phase> |
| 194 | + <goals> |
| 195 | + <goal>format</goal> |
| 196 | + </goals> |
| 197 | + </execution> |
| 198 | + </executions> |
| 199 | + <dependencies> |
| 200 | + <dependency> |
| 201 | + <groupId>com.mycila</groupId> |
| 202 | + <artifactId>license-maven-plugin-git</artifactId> |
| 203 | + <version>3.0</version> |
| 204 | + </dependency> |
| 205 | + </dependencies> |
| 206 | + </plugin> |
| 207 | + <!--覆盖率插件 https://github.com/trautonen/coveralls-maven-plugin--> |
| 208 | + <plugin> |
| 209 | + <groupId>org.eluder.coveralls</groupId> |
| 210 | + <artifactId>coveralls-maven-plugin</artifactId> |
| 211 | + <version>4.3.0</version> |
| 212 | + </plugin> |
| 213 | + </plugins> |
| 214 | + </pluginManagement> |
| 215 | + |
| 216 | + <plugins> |
| 217 | + <plugin> |
| 218 | + <groupId>com.mycila</groupId> |
| 219 | + <artifactId>license-maven-plugin</artifactId> |
| 220 | + </plugin> |
| 221 | + </plugins> |
| 222 | + </build> |
83 | 223 |
|
84 | 224 | <profiles>
|
85 | 225 | <profile>
|
|
88 | 228 | <plugins>
|
89 | 229 | <!-- jdk -->
|
90 | 230 | <plugin>
|
| 231 | + <groupId>org.apache.maven.plugins</groupId> |
91 | 232 | <artifactId>maven-compiler-plugin</artifactId>
|
92 |
| - <version>3.5.1</version> |
93 |
| - <configuration> |
94 |
| - <source>${jdk.version}</source> |
95 |
| - <target>${jdk.version}</target> |
96 |
| - <encoding>UTF-8</encoding> |
97 |
| - </configuration> |
98 | 233 | </plugin>
|
99 |
| - |
100 | 234 | <!-- Source -->
|
101 | 235 | <plugin>
|
102 | 236 | <groupId>org.apache.maven.plugins</groupId>
|
103 | 237 | <artifactId>maven-source-plugin</artifactId>
|
104 |
| - <version>2.2.1</version> |
105 |
| - <configuration> |
106 |
| - |
107 |
| - </configuration> |
108 |
| - <executions> |
109 |
| - <execution> |
110 |
| - <phase>package</phase> |
111 |
| - <goals> |
112 |
| - <goal>jar-no-fork</goal> |
113 |
| - </goals> |
114 |
| - </execution> |
115 |
| - </executions> |
116 | 238 | </plugin>
|
117 | 239 | <!-- Javadoc -->
|
118 | 240 | <plugin>
|
119 | 241 | <groupId>org.apache.maven.plugins</groupId>
|
120 | 242 | <artifactId>maven-javadoc-plugin</artifactId>
|
121 |
| - <version>2.10.2</version> |
122 |
| - <configuration> |
123 |
| - <aggregate>true</aggregate> |
124 |
| - </configuration> |
125 |
| - <executions> |
126 |
| - <execution> |
127 |
| - <id>attach-javadocs</id> |
128 |
| - <goals> |
129 |
| - <goal>jar</goal> |
130 |
| - </goals> |
131 |
| - </execution> |
132 |
| - </executions> |
133 | 243 | </plugin>
|
134 | 244 | <!-- GPG -->
|
135 | 245 | <plugin>
|
136 | 246 | <groupId>org.apache.maven.plugins</groupId>
|
137 | 247 | <artifactId>maven-gpg-plugin</artifactId>
|
138 |
| - <version>1.5</version> |
139 |
| - <executions> |
140 |
| - <execution> |
141 |
| - <phase>verify</phase> |
142 |
| - <goals> |
143 |
| - <goal>sign</goal> |
144 |
| - </goals> |
145 |
| - </execution> |
146 |
| - </executions> |
147 | 248 | </plugin>
|
148 | 249 | </plugins>
|
149 | 250 | </build>
|
|
0 commit comments