Created
November 10, 2014 17:59
-
-
Save superalsrk/abf537f6bee0f2a5bc3a to your computer and use it in GitHub Desktop.
pom template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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>io.loli</groupId> | |
<artifactId>lolibox</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<url>https://github.com/chocotan/lolibox</url> | |
<name>io.loli.lolibox</name> | |
<developers> | |
<developer> | |
<id>choco</id> | |
<name>chocotan</name> | |
<email>[email protected]</email> | |
<url>http://loli.io</url> | |
<organization>loli.io</organization> | |
<organizationUrl>https://loli.io</organizationUrl> | |
<roles> | |
<role>developer</role> | |
</roles> | |
<timezone>+8</timezone> | |
</developer> | |
<developer> | |
<id>stackbox</id> | |
<name>stackbox</name> | |
<email>[email protected]</email> | |
<url>http://stackbox.org</url> | |
<organization>Miaozhen Systems</organization> | |
<organizationUrl>http://miaozhen.com</organizationUrl> | |
<roles> | |
<role>developer</role> | |
</roles> | |
<timezone>+8</timezone> | |
</developer> | |
</developers> | |
<licenses> | |
<license> | |
<name>The MIT License (MIT)</name> | |
<url>http://opensource.org/licenses/MIT</url> | |
<distribution>repo</distribution> | |
</license> | |
</licenses> | |
<parent> | |
<groupId>org.sonatype.oss</groupId> | |
<artifactId>oss-parent</artifactId> | |
<version>7</version> | |
</parent> | |
<scm> | |
<connection>scm:git:[email protected]:chocotan/lolibox.git</connection> | |
<url>https://github.com/chocotan/lolibox.git</url> | |
<developerConnection>scm:git:[email protected]:chocotan/lolibox.git</developerConnection> | |
<tag>HEAD</tag> | |
</scm> | |
<dependencies> | |
</dependencies> | |
<distributionManagement> | |
<!-- Repository for snapshots --> | |
<snapshotRepository> | |
<id>sonatype-nexus-snapshots</id> | |
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | |
</snapshotRepository> | |
<!-- Repository for releases --> | |
<repository> | |
<id>sonatype-nexus-releases</id> | |
<name>Nexus Release Repository</name> | |
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | |
</repository> | |
</distributionManagement> | |
<build> | |
<finalName>io.loli.lolibox</finalName> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.4</version> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.8</source> | |
<target>1.8</target> | |
<encoding>UTF-8</encoding> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.4</version> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-source-plugin</artifactId> | |
<version>2.2.1</version> | |
<executions> | |
<execution> | |
<id>attach-sources</id> | |
<goals> | |
<goal>jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<encoding>UTF-8</encoding> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-javadoc-plugin</artifactId> | |
<version>2.9.1</version> | |
<executions> | |
<execution> | |
<id>attach-javadocs</id> | |
<goals> | |
<goal>jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>release</id> | |
<distributionManagement> | |
<snapshotRepository> | |
<id>sonatype-nexus-releases</id> | |
<url>https://oss.sonatype.org/content/repositories/snapshots/</url> | |
</snapshotRepository> | |
<repository> | |
<id>sonatype-nexus-releases</id> | |
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | |
</repository> | |
</distributionManagement> | |
<build> | |
<finalName>io.loli.util</finalName> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.4</version> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.8</source> | |
<target>1.8</target> | |
<encoding>UTF-8</encoding> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-source-plugin</artifactId> | |
<version>2.2.1</version> | |
<executions> | |
<execution> | |
<id>attach-sources</id> | |
<goals> | |
<goal>jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<encoding>UTF-8</encoding> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-javadoc-plugin</artifactId> | |
<version>2.9.1</version> | |
<executions> | |
<execution> | |
<id>attach-javadocs</id> | |
<goals> | |
<goal>jar</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.sonatype.plugins</groupId> | |
<artifactId>nexus-staging-maven-plugin</artifactId> | |
<version>1.6.2</version> | |
<extensions>true</extensions> | |
<configuration> | |
<serverId>sonatype-nexus-releases</serverId> | |
<nexusUrl>https://oss.sonatype.org/</nexusUrl> | |
<autoReleaseAfterClose>true</autoReleaseAfterClose> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-release-plugin</artifactId> | |
<version>2.5</version> | |
<configuration> | |
<autoVersionSubmodules>true</autoVersionSubmodules> | |
<useReleaseProfile>false</useReleaseProfile> | |
<releaseProfiles>release</releaseProfiles> | |
<goals>deploy</goals> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-gpg-plugin</artifactId> | |
<version>1.5</version> | |
<executions> | |
<execution> | |
<id>sign-artifacts</id> | |
<phase>verify</phase> | |
<goals> | |
<goal>sign</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment