|
| 1 | +<!-- |
| 2 | +
|
| 3 | + Copyright (C) 2012 John Casey (jdcasey@commonjava.org) |
| 4 | +
|
| 5 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + you may not use this file except in compliance with the License. |
| 7 | + You may obtain a copy of the License at |
| 8 | +
|
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | + Unless required by applicable law or agreed to in writing, software |
| 12 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + See the License for the specific language governing permissions and |
| 15 | + limitations under the License. |
| 16 | +
|
| 17 | +--> |
1 | 18 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
2 | 19 | <modelVersion>4.0.0</modelVersion> |
3 | 20 |
|
|
11 | 28 | <url>http://github.com/jdcasey/commonjava</url> |
12 | 29 |
|
13 | 30 | <description>CommonJava top-level parent POM.</description> |
| 31 | + <inceptionYear>2012</inceptionYear> |
14 | 32 |
|
15 | 33 | <licenses> |
16 | 34 | <license> |
17 | | - <name>GPLv3.0</name> |
| 35 | + <name>Apache License, Version 2.0</name> |
| 36 | + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
18 | 37 | <distribution>repo</distribution> |
19 | 38 | </license> |
20 | 39 | </licenses> |
|
35 | 54 | </scm> |
36 | 55 |
|
37 | 56 | <properties> |
| 57 | + <projectOwner>John Casey</projectOwner> |
38 | 58 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
39 | 59 | <version.plugin.compiler>3.1</version.plugin.compiler> |
40 | 60 | <version.plugin.plugin>3.2</version.plugin.plugin> |
|
219 | 239 | <artifactId>maven-jar-plugin</artifactId> |
220 | 240 | <version>${version.plugin.jar}</version> |
221 | 241 | </plugin> |
| 242 | + <plugin> |
| 243 | + <groupId>com.mycila</groupId> |
| 244 | + <artifactId>license-maven-plugin</artifactId> |
| 245 | + <version>2.10</version> |
| 246 | + </plugin> |
222 | 247 |
|
223 | 248 | <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> |
224 | 249 | <plugin> |
|
255 | 280 | </build> |
256 | 281 |
|
257 | 282 | <profiles> |
| 283 | + <profile> |
| 284 | + <id>formatting</id> |
| 285 | + <build> |
| 286 | + <plugins> |
| 287 | + <plugin> |
| 288 | + <groupId>com.mycila</groupId> |
| 289 | + <artifactId>license-maven-plugin</artifactId> |
| 290 | + <configuration> |
| 291 | + <header>com/mycila/maven/plugin/license/templates/APACHE-2.txt</header> |
| 292 | + <properties> |
| 293 | + <owner>${projectOwner}</owner> |
| 294 | + <email>jdcasey@commonjava.org</email> |
| 295 | + </properties> |
| 296 | + <excludes> |
| 297 | + <exclude>**/README</exclude> |
| 298 | + <exclude>src/test/resources/**</exclude> |
| 299 | + <exclude>src/main/resources/**</exclude> |
| 300 | + </excludes> |
| 301 | + </configuration> |
| 302 | + <executions> |
| 303 | + <execution> |
| 304 | + <phase>process-sources</phase> |
| 305 | + <goals> |
| 306 | + <goal>format</goal> |
| 307 | + </goals> |
| 308 | + </execution> |
| 309 | + </executions> |
| 310 | + </plugin> |
| 311 | + </plugins> |
| 312 | + </build> |
| 313 | + </profile> |
258 | 314 | <profile> |
259 | 315 | <id>release</id> |
260 | 316 | <build> |
|
0 commit comments