| POM文件内容: |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 漏 2013 Michael Lasmanis (michael@lasmanis.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.lasmanis</groupId>
<artifactId>javapatterns</artifactId>
<version>1.1.11</version>
<packaging>jar</packaging>
<name>Design Patterns for Java</name>
<description>Design patterns and implementations for Java</description>
<inceptionYear>2013</inceptionYear>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<organization>
<name>Michael Lasmanis</name>
<url>https://github.com/michaellasmanis/</url>
</organization>
<developers>
<developer>
<id>mpl</id>
<name>Michael Lasmanis</name>
<organization>Michael Lasmanis</organization>
<organizationUrl>https://github.com/michaellasmanis/</organizationUrl>
<email>michael@lasmanis.com</email>
<url>http://lasmanis.com/</url>
</developer>
</developers>
<prerequisites>
<maven>${maven.version}</maven>
</prerequisites>
<properties>
<maven.version>3.0</maven.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<target-java.version>1.8</target-java.version>
<!-- scm & site publish -->
<repository.domain>github.com</repository.domain>
<repository.user>michaellasmanis</repository.user>
<repository.name>javapatterns</repository.name>
<scmPublish.checkoutDirectory>${project.build.directory}/scmpublish</scmPublish.checkoutDirectory> <scm-publish.scmBranch>gh-pages</scm-publish.scmBranch>
<scm-publish.pubScmUrl>scm:git:git@${repository.domain}:${repository.user}/${repository.name}.git</scm-publish.pubScmUrl>
<scm-publish.siteDocOuputDirectory>${project.reporting.outputDirectory}</scm-publish.siteDocOuputDirectory>
<!-- signing -->
<pgp.secretkey>keyring:id=michael@lasmanis.com</pgp.secretkey>
<pgp.passphrase>gpg-agent:</pgp.passphrase>
<!-- copyright -->
<copyright.owner>Michael Lasmanis</copyright.owner>
<copyright.email>michael@lasmanis.com</copyright.email>
<!-- dependencies -->
<junit.version>4.12</junit.version>
<!-- plugins/extensions -->
<build-helper-maven.version>1.12</build-helper-maven.version>
<clirr-maven.version>2.8</clirr-maven.version>
<doxia-module-markdown.version>1.7</doxia-module-markdown.version>
<exec-maven.version>1.5.0</exec-maven.version>
<jacoco-maven.version>0.7.7.201606060606</jacoco-maven.version>
<jgitflow-maven.version>1.0-m5.1</jgitflow-maven.version>
<license-maven.version>3.0</license-maven.version>
<maven-checkstyle.version>2.17</maven-checkstyle.version>
<maven-clean.version>3.0.0</maven-clean.version>
<maven-compiler.version>3.5.1</maven-compiler.version>
<maven-deploy.version>2.8.2</maven-deploy.version>
<pgp-maven.version>1.1</pgp-maven.version>
<maven-install.version>2.5.2</maven-install.version>
<maven-jar.version>3.0.2</maven-jar.version>
<maven-javadoc.version>2.10.4</maven-javadoc.version>
<maven-jxr.version>2.5</maven-jxr.version>
<maven-pmd.version>3.6</maven-pmd.version>
<maven-project-info-reports.version>2.9</maven-project-info-reports.version>
<maven-resources.version>3.0.1</maven-resources.version>
<maven-scm-publish.version>1.1</maven-scm-publish.version>
<!--<maven-shade.version>2.4.3</maven-shade.version>-->
<maven-site.version>3.5.1</maven-site.version>
<maven-source.version>3.0.1</maven-source.version>
<maven-surefire.version>2.19.1</maven-surefire.version>
<maven-s3-wagon.version>1.2.2</maven-s3-wagon.version>
<versions-maven.version>2.3</versions-maven.version>
</properties>
<url>https://${repository.domain}/${repository.user}/${repository.name}</url>
<scm>
<connection>scm:git:ssh://${repository.domain}/${repository.user}/${repository.name}.git</connection>
<url>https://${repository.domain}/${repository.user}/${repository.name}</url>
<developerConnection>scm:git:ssh://${repository.domain}/${repository.user}/${repository.name}.git</developerConnection>
<tag>HEAD</tag>
</scm>
<issueManagement>
<url>https://${repository.domain}/${repository.user}/${repository.name}/issues</url>
<system>GitHub Issues</system>
</issueManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${maven-site.version}</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-markdown</artifactId>
<version>${doxia-module-markdown.version}</version>
</dependency>
</dependencies>
<configuration>
<skipDeploy>true</skipDeploy>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>external.atlassian.jgitflow</groupId>
<artifactId>jgitflow-maven-plugin</artifactId>
<version>${jgitflow-maven.version}</version>
<configuration>
<enableSshAgent>true</enableSshAgent>
<autoVersionSubmodules>true</autoVersionSubmodules>
<pushFeatures>true</pushFeatures>
<pushReleases>true</pushReleases>
<pushHotfixes>true</pushHotfixes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven-clean.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler.version}</version>
<configuration>
<source>${target-java.version}</source>
<target>${target-java.version}</target>
<compilerArgs>
<arg>-Xlint:all</arg>
</compilerArgs>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>${maven-install.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar.version}</version>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc.version}</version>
<configuration>
<show>private</show>
<nohelp>true</nohelp>
<fixTags>author,since,param,return,throws,link</fixTags>
<doctitle>${project.name} ${project.version}</doctitle>
<windowtitle>${project.name} ${project.version}</windowtitle>
<testDoctitle>${project.name} ${project.version} Tests</testDoctitle>
<testWindowtitle>${project.name} ${project.version} Tests</testWindowtitle>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${maven-project-info-reports.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${maven-site.version}</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-markdown</artifactId>
<version>${doxia-module-markdown.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<version>${clirr-maven.version}</version>
<configuration>
<failOnWarning>true</failOnWarning>
</configuration>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${license-maven.version}</version>
<configuration>
<header>com/mycila/maven/plugin/license/templates/APACHE-2.txt</header>
<properties>
<owner>${copyright.owner}</owner>
<email>${copyright.email}</email>
</properties>
<excludes>
<exclude>nb-licenseheader.txt</exclude>
<exclude>LICENSE</exclude>
<exclude>README.markdown</exclude>
</excludes>
<mapping>
<markdown>DOUBLESLASH_STYLE</markdown>
<copyright>TEXT</copyright>
<NOTICE>TEXT</NOTICE>
</mapping>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven.version}</version>
<executions>
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>post-unit-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven.version}</version>
<configuration>
<mainClass>${project.mainClass}</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven.version}</version>
<executions>
<execution>
<id>timestamp-property</id>
<goals>
<goal>timestamp-property</goal>
</goals>
<phase>validate</phase>
<configuration>
<name>current.year</name>
<pattern>yyyy</pattern>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-maven.version}</version>
</plugin>
<!--<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>${project.mainClass}</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<version>${maven-scm-publish.version}</version>
<configuration>
<checkoutDirectory>${scmPublish.checkoutDirectory}</checkoutDirectory>
<checkinComment>Publishing Site Docs for ${project.artifactId}:${project.version}
</checkinComment>
<content>${scm-publish.siteDocOuputDirectory}</content>
<skipDeletedFiles>true</skipDeletedFiles>
<pubScmUrl>${scm-publish.pubScmUrl}</pubScmUrl>
<scmBranch>${scm-publish.scmBranch}</scmBranch>
</configuration>
<executions>
<execution>
<id>scm-publish</id>
<phase>site-deploy</phase>
<goals>
<goal>publish-scm</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>net.adamcin.org.kuali.maven.wagons</groupId>
<artifactId>maven-s3-wagon</artifactId>
<version>${maven-s3-wagon.version}</version>
</extension>
</extensions>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${maven-project-info-reports.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc.version}</version>
<configuration>
<show>protected</show>
<nohelp>false</nohelp>
<doctitle>${project.name} ${project.version}</doctitle>
<windowtitle>${project.name} ${project.version}</windowtitle>
<testDoctitle>${project.name} ${project.version} Tests</testDoctitle>
<testWindowtitle>${project.name} ${project.version} Tests</testWindowtitle>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<version>${clirr-maven.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>${maven-jxr.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${maven-pmd.version}</version>
<configuration>
<linkXref>true</linkXref>
<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
<minimumTokens>100</minimumTokens>
<targetJdk>${target-java.version}</targetJdk>
<excludeRoots>
<excludeRoot>target/generated-sources/xjc</excludeRoot>
</excludeRoots>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle.version}</version>
<configuration>
<enableRulesSummary>true</enableRulesSummary>
<suppressionsLocation>checks/checkstyle-suppressions.xml</suppressionsLocation>
<suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
</configuration>
</plugin>
</plugins>
</reporting>
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<name>Nexus Release Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<site>
<id>oss-lasmanis-website</id>
<url>s3://oss.lasmanis.com/javapatterns</url>
</site>
</distributionManagement>
<repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.kohsuke</groupId>
<artifactId>pgp-maven-plugin</artifactId>
<version>${pgp-maven.version}</version>
<configuration>
<secretkey>${pgp.secretkey}</secretkey>
<passphrase>${pgp.passphrase}</passphrase>
</configuration>
<executions>
<execution>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
|