Skip to content

Instantly share code, notes, and snippets.

@yuu-nkjm
Created May 12, 2016 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuu-nkjm/cbcde11393e3201a03a30949e2d09b77 to your computer and use it in GitHub Desktop.
Save yuu-nkjm/cbcde11393e3201a03a30949e2d09b77 to your computer and use it in GitHub Desktop.
sample of pom.xml
<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>org.nkjmlab.twitter</groupId>
<version>0.0.4-SNAPSHOT</version>
<packaging>jar</packaging>
<name>TweetAnalyzerCore</name>
<url>http://www.nakajimalab.is.sci.toho-u.ac.jp/</url>
<repositories>
<repository>
<id>nkjmlab-3rd-party</id>
<url>http://maven.nkjmlab.org/nexus/content/repositories/thirdparty</url>
</repository>
<repository>
<id>Atilika Open Source repository</id>
<url>http://www.atilika.org/nexus/content/repositories/atilika</url>
</repository>
</repositories>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.javadoc.skip>true</maven.javadoc.skip>
<additionalparam>-Xdoclint:none</additionalparam>
</properties>
<dependencies>
<dependency>
<groupId>net.sf</groupId>
<artifactId>persist</artifactId>
<version>20110501-with-src</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.190</version>
</dependency>
<dependency>
<groupId>net.arnx</groupId>
<artifactId>jsonic</artifactId>
<version>1.3.9</version>
</dependency>
<dependency>
<groupId>org.twitter4j</groupId>
<artifactId>twitter4j-core</artifactId>
<version>4.0.4</version>
</dependency>
</dependencies>
<!-- ********** for Remote Deploy START ******* -->
<scm>
<connection>scm:git:https://github.com/nkjmlab/TweetAnalyzerCore.git</connection>
<developerConnection>scm:git:https://github.com/nkjmlab/TweetAnalyzerCore.git</developerConnection>
<url>https://github.com/nkjmlab/TweetAnalyzerCore</url>
<tag>HEAD</tag>
</scm>
<distributionManagement>
<repository>
<id>nkjmlab-releases</id>
<url>http://maven.nkjmlab.org/nexus/content/repositories/nkjmlab-releases/</url>
</repository>
<snapshotRepository>
<id>nkjmlab-snapshots</id>
<url>http://maven.nkjmlab.org/nexus/content/repositories/nkjmlab-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<!-- ********** for Remote Deploy END ******* -->
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<downloadSources>true</downloadSources>
</configuration>
</plugin>
<!-- ********** for Remote Deploy START ******* -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<goals>deploy</goals>
<pushChanges>false</pushChanges>
<localCheckout>true</localCheckout>
</configuration>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>nexus</serverId>
<nexusUrl>http://maven.nkjmlab.org/nexus/</nexusUrl>
<skipStaging>true</skipStaging>
</configuration>
</plugin>
<!-- ********** for Remote Deploy END ******* -->
</plugins>
</build>
<artifactId>org.nkjmlab.twitter</artifactId>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment