|
97 | 97 |
|
98 | 98 | <build> |
99 | 99 | <defaultGoal>install</defaultGoal> |
100 | | - <pluginManagement> |
101 | | - <plugins> |
102 | | - <plugin> |
103 | | - <groupId>org.apache.maven.plugins</groupId> |
104 | | - <artifactId>maven-jar-plugin</artifactId> |
105 | | - <version>2.4</version> |
106 | | - </plugin> |
107 | | - |
108 | | - <plugin> |
109 | | - <groupId>org.apache.maven.plugins</groupId> |
110 | | - <artifactId>maven-assembly-plugin</artifactId> |
111 | | - <version>2.4</version> |
112 | | - </plugin> |
113 | | - |
114 | | - <plugin> |
115 | | - <groupId>org.apache.maven.plugins</groupId> |
116 | | - <artifactId>maven-source-plugin</artifactId> |
117 | | - <version>2.2.1</version> |
118 | | - </plugin> |
119 | | - |
120 | | - <plugin> |
121 | | - <groupId>org.apache.maven.plugins</groupId> |
122 | | - <artifactId>maven-deploy-plugin</artifactId> |
123 | | - <version>2.8</version> |
124 | | - </plugin> |
125 | | - |
126 | | - <plugin> |
127 | | - <groupId>org.apache.maven.plugins</groupId> |
128 | | - <artifactId>maven-dependency-plugin</artifactId> |
129 | | - <version>2.8</version> |
130 | | - </plugin> |
131 | | - |
132 | | - <plugin> |
133 | | - <groupId>org.apache.maven.plugins</groupId> |
134 | | - <artifactId>maven-compiler-plugin</artifactId> |
135 | | - <version>3.1</version> |
136 | | - <configuration> |
137 | | - <compilerVersion>1.6</compilerVersion> |
138 | | - <source>1.6</source> |
139 | | - <target>1.6</target> |
140 | | - <compilerArgument>-Xlint:all</compilerArgument> |
141 | | - <showWarnings>true</showWarnings> |
142 | | - <showDeprecation>true</showDeprecation> |
143 | | - </configuration> |
144 | | - </plugin> |
145 | | - |
146 | | - <plugin> |
147 | | - <groupId>com.mycila.maven-license-plugin</groupId> |
148 | | - <artifactId>maven-license-plugin</artifactId> |
149 | | - <inherited>false</inherited> |
150 | | - <version>1.9.0</version> |
151 | | - <configuration> |
152 | | - <aggregate>true</aggregate> |
153 | | - <header>src/main/misc/license-header.txt</header> |
154 | | - <includes> |
155 | | - <include>**/*.java</include> |
156 | | - </includes> |
157 | | - <strictCheck>true</strictCheck> |
158 | | - <properties> |
159 | | - <year>${project.inceptionYear}</year> |
160 | | - </properties> |
161 | | - <mapping> |
162 | | - <java>SLASHSTAR_STYLE</java> |
163 | | - </mapping> |
164 | | - </configuration> |
165 | | - </plugin> |
166 | | - |
167 | | - <plugin> |
168 | | - <groupId>org.apache.maven.plugins</groupId> |
169 | | - <artifactId>maven-release-plugin</artifactId> |
170 | | - <version>2.4.1</version> |
171 | | - <configuration> |
172 | | - <tagNameFormat>v@{project.version}</tagNameFormat> |
173 | | - </configuration> |
174 | | - </plugin> |
175 | | - |
176 | | - <plugin> |
177 | | - <groupId>org.apache.maven.plugins</groupId> |
178 | | - <artifactId>maven-javadoc-plugin</artifactId> |
179 | | - <version>2.9.1</version> |
180 | | - <configuration> |
181 | | - <links> |
182 | | - <link>http://docs.guava-libraries.googlecode.com/git-history/v15.0/javadoc/</link> |
183 | | - <link>http://www.joda.org/joda-time/apidocs/</link> |
184 | | - </links> |
185 | | - <show>package</show> |
186 | | - <author>false</author> |
187 | | - <quiet>true</quiet> |
188 | | - </configuration> |
189 | | - </plugin> |
190 | | - |
191 | | - <plugin> |
192 | | - <groupId>org.apache.maven.plugins</groupId> |
193 | | - <artifactId>maven-gpg-plugin</artifactId> |
194 | | - <version>1.4</version> |
195 | | - <configuration> |
196 | | - <useAgent>true</useAgent> |
197 | | - </configuration> |
198 | | - </plugin> |
199 | | - |
200 | | - <plugin> |
201 | | - <groupId>org.codehaus.mojo</groupId> |
202 | | - <artifactId>cobertura-maven-plugin</artifactId> |
203 | | - <version>2.6</version> |
204 | | - <configuration> |
205 | | - <check> |
206 | | - <branchRate>85</branchRate> |
207 | | - <lineRate>85</lineRate> |
208 | | - <totalBranchRate>85</totalBranchRate> |
209 | | - <totalLineRate>85</totalLineRate> |
210 | | - <packageLineRate>85</packageLineRate> |
211 | | - <packageBranchRate>85</packageBranchRate> |
212 | | - <haltOnFailure>false</haltOnFailure> |
213 | | - </check> |
214 | | - </configuration> |
215 | | - </plugin> |
216 | | - |
217 | | - <plugin> |
218 | | - <groupId>org.codehaus.mojo</groupId> |
219 | | - <artifactId>findbugs-maven-plugin</artifactId> |
220 | | - <version>2.5.2</version> |
221 | | - <configuration> |
222 | | - <failOnError>true</failOnError> |
223 | | - <excludeFilterFile>src/main/misc/findbugs-excludes.xml</excludeFilterFile> |
224 | | - </configuration> |
225 | | - </plugin> |
226 | | - </plugins> |
227 | | - </pluginManagement> |
228 | | - |
229 | 100 | <plugins> |
| 101 | + <plugin> |
| 102 | + <groupId>org.apache.maven.plugins</groupId> |
| 103 | + <artifactId>maven-jar-plugin</artifactId> |
| 104 | + <version>2.4</version> |
| 105 | + </plugin> |
| 106 | + |
| 107 | + <plugin> |
| 108 | + <groupId>org.apache.maven.plugins</groupId> |
| 109 | + <artifactId>maven-resources-plugin</artifactId> |
| 110 | + <version>2.6</version> |
| 111 | + </plugin> |
| 112 | + |
| 113 | + <plugin> |
| 114 | + <groupId>org.apache.maven.plugins</groupId> |
| 115 | + <artifactId>maven-clean-plugin</artifactId> |
| 116 | + <version>2.5</version> |
| 117 | + </plugin> |
| 118 | + |
| 119 | + <plugin> |
| 120 | + <groupId>org.apache.maven.plugins</groupId> |
| 121 | + <artifactId>maven-surefire-plugin</artifactId> |
| 122 | + <version>2.16</version> |
| 123 | + </plugin> |
| 124 | + |
| 125 | + <plugin> |
| 126 | + <groupId>org.apache.maven.plugins</groupId> |
| 127 | + <artifactId>maven-install-plugin</artifactId> |
| 128 | + <version>2.5.1</version> |
| 129 | + </plugin> |
| 130 | + |
| 131 | + <plugin> |
| 132 | + <groupId>org.apache.maven.plugins</groupId> |
| 133 | + <artifactId>maven-site-plugin</artifactId> |
| 134 | + <version>3.3</version> |
| 135 | + </plugin> |
| 136 | + |
| 137 | + <plugin> |
| 138 | + <groupId>org.apache.maven.plugins</groupId> |
| 139 | + <artifactId>maven-assembly-plugin</artifactId> |
| 140 | + <version>2.4</version> |
| 141 | + </plugin> |
| 142 | + |
| 143 | + <plugin> |
| 144 | + <groupId>org.apache.maven.plugins</groupId> |
| 145 | + <artifactId>maven-source-plugin</artifactId> |
| 146 | + <version>2.2.1</version> |
| 147 | + <executions> |
| 148 | + <execution> |
| 149 | + <id>attach-sources</id> |
| 150 | + <goals> |
| 151 | + <goal>jar</goal> |
| 152 | + </goals> |
| 153 | + </execution> |
| 154 | + </executions> |
| 155 | + </plugin> |
| 156 | + |
| 157 | + <plugin> |
| 158 | + <groupId>org.apache.maven.plugins</groupId> |
| 159 | + <artifactId>maven-deploy-plugin</artifactId> |
| 160 | + <version>2.8</version> |
| 161 | + </plugin> |
| 162 | + |
| 163 | + <plugin> |
| 164 | + <groupId>org.apache.maven.plugins</groupId> |
| 165 | + <artifactId>maven-dependency-plugin</artifactId> |
| 166 | + <version>2.8</version> |
| 167 | + <executions> |
| 168 | + <execution> |
| 169 | + <id>analyze-dependencies</id> |
| 170 | + <goals> |
| 171 | + <goal>analyze-only</goal> |
| 172 | + </goals> |
| 173 | + </execution> |
| 174 | + </executions> |
| 175 | + </plugin> |
| 176 | + |
| 177 | + <plugin> |
| 178 | + <groupId>org.apache.maven.plugins</groupId> |
| 179 | + <artifactId>maven-compiler-plugin</artifactId> |
| 180 | + <version>3.1</version> |
| 181 | + <configuration> |
| 182 | + <compilerVersion>1.6</compilerVersion> |
| 183 | + <source>1.6</source> |
| 184 | + <target>1.6</target> |
| 185 | + <compilerArgument>-Xlint:all</compilerArgument> |
| 186 | + <showWarnings>true</showWarnings> |
| 187 | + <showDeprecation>true</showDeprecation> |
| 188 | + </configuration> |
| 189 | + </plugin> |
| 190 | + |
230 | 191 | <plugin> |
231 | 192 | <groupId>com.mycila.maven-license-plugin</groupId> |
232 | 193 | <artifactId>maven-license-plugin</artifactId> |
| 194 | + <inherited>false</inherited> |
| 195 | + <version>1.9.0</version> |
| 196 | + <configuration> |
| 197 | + <aggregate>true</aggregate> |
| 198 | + <header>src/main/misc/license-header.txt</header> |
| 199 | + <includes> |
| 200 | + <include>**/*.java</include> |
| 201 | + </includes> |
| 202 | + <strictCheck>true</strictCheck> |
| 203 | + <properties> |
| 204 | + <year>${project.inceptionYear}</year> |
| 205 | + </properties> |
| 206 | + <mapping> |
| 207 | + <java>SLASHSTAR_STYLE</java> |
| 208 | + </mapping> |
| 209 | + </configuration> |
233 | 210 | <executions> |
234 | 211 | <execution> |
235 | 212 | <id>format-license-headers</id> |
|
241 | 218 | </executions> |
242 | 219 | </plugin> |
243 | 220 |
|
| 221 | + <plugin> |
| 222 | + <groupId>org.apache.maven.plugins</groupId> |
| 223 | + <artifactId>maven-release-plugin</artifactId> |
| 224 | + <version>2.4.1</version> |
| 225 | + <configuration> |
| 226 | + <tagNameFormat>v@{project.version}</tagNameFormat> |
| 227 | + </configuration> |
| 228 | + </plugin> |
| 229 | + |
244 | 230 | <plugin> |
245 | 231 | <groupId>org.apache.maven.plugins</groupId> |
246 | 232 | <artifactId>maven-javadoc-plugin</artifactId> |
| 233 | + <version>2.9.1</version> |
| 234 | + <configuration> |
| 235 | + <links> |
| 236 | + <link>http://docs.guava-libraries.googlecode.com/git-history/v15.0/javadoc/</link> |
| 237 | + <link>http://www.joda.org/joda-time/apidocs/</link> |
| 238 | + </links> |
| 239 | + <show>package</show> |
| 240 | + <author>false</author> |
| 241 | + <quiet>true</quiet> |
| 242 | + </configuration> |
247 | 243 | <executions> |
248 | 244 | <execution> |
249 | 245 | <id>attach-javadoc</id> |
|
256 | 252 |
|
257 | 253 | <plugin> |
258 | 254 | <groupId>org.apache.maven.plugins</groupId> |
259 | | - <artifactId>maven-source-plugin</artifactId> |
260 | | - <executions> |
261 | | - <execution> |
262 | | - <id>attach-sources</id> |
263 | | - <goals> |
264 | | - <goal>jar</goal> |
265 | | - </goals> |
266 | | - </execution> |
267 | | - </executions> |
| 255 | + <artifactId>maven-gpg-plugin</artifactId> |
| 256 | + <version>1.4</version> |
| 257 | + <configuration> |
| 258 | + <useAgent>true</useAgent> |
| 259 | + </configuration> |
| 260 | + </plugin> |
| 261 | + |
| 262 | + <plugin> |
| 263 | + <groupId>org.codehaus.mojo</groupId> |
| 264 | + <artifactId>cobertura-maven-plugin</artifactId> |
| 265 | + <version>2.6</version> |
| 266 | + <configuration> |
| 267 | + <check> |
| 268 | + <branchRate>85</branchRate> |
| 269 | + <lineRate>85</lineRate> |
| 270 | + <totalBranchRate>85</totalBranchRate> |
| 271 | + <totalLineRate>85</totalLineRate> |
| 272 | + <packageLineRate>85</packageLineRate> |
| 273 | + <packageBranchRate>85</packageBranchRate> |
| 274 | + <haltOnFailure>false</haltOnFailure> |
| 275 | + </check> |
| 276 | + </configuration> |
| 277 | + </plugin> |
| 278 | + |
| 279 | + <plugin> |
| 280 | + <groupId>org.codehaus.mojo</groupId> |
| 281 | + <artifactId>findbugs-maven-plugin</artifactId> |
| 282 | + <version>2.5.2</version> |
| 283 | + <configuration> |
| 284 | + <failOnError>true</failOnError> |
| 285 | + <excludeFilterFile>src/main/misc/findbugs-excludes.xml</excludeFilterFile> |
| 286 | + </configuration> |
268 | 287 | </plugin> |
269 | 288 |
|
270 | 289 | <plugin> |
271 | 290 | <groupId>org.apache.maven.plugins</groupId> |
272 | | - <artifactId>maven-dependency-plugin</artifactId> |
| 291 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 292 | + <version>1.3.1</version> |
273 | 293 | <executions> |
274 | 294 | <execution> |
275 | | - <id>analyze-dependencies</id> |
276 | 295 | <goals> |
277 | | - <goal>analyze-only</goal> |
| 296 | + <goal>enforce</goal> |
278 | 297 | </goals> |
| 298 | + <configuration> |
| 299 | + <rules> |
| 300 | + <requireJavaVersion> |
| 301 | + <version>1.6</version> |
| 302 | + </requireJavaVersion> |
| 303 | + <requirePluginVersions> |
| 304 | + <message>Best Practice is to always define plugin versions!</message> |
| 305 | + <banLatest>true</banLatest> |
| 306 | + <banRelease>true</banRelease> |
| 307 | + <banSnapshots>true</banSnapshots> |
| 308 | + <phases>clean,deploy</phases> |
| 309 | + </requirePluginVersions> |
| 310 | + </rules> |
| 311 | + </configuration> |
279 | 312 | </execution> |
280 | 313 | </executions> |
281 | 314 | </plugin> |
|
0 commit comments