Skip to content

Commit

Permalink
Add settings to POM for deployment to Maven Central
Browse files Browse the repository at this point in the history
  • Loading branch information
asher-stern committed Aug 14, 2016
1 parent 7ddcfd4 commit b5a332a
Show file tree
Hide file tree
Showing 3 changed files with 195 additions and 102 deletions.
285 changes: 183 additions & 102 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,104 +1,185 @@
<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.github.asher-stern</groupId>
<artifactId>text_understanding</artifactId>
<version>1.0.1</version>
<packaging>jar</packaging>

<name>text_understanding</name>
<description>Analyzing natural-language text, in particular predicate-argument structure.</description>
<url>https://github.com/asher-stern/text-understanding</url>

<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>


<scm>
<connection>scm:git:git://github.com:asher-stern/text-understanding.git</connection>
<developerConnection>scm:git:ssh://github.com:asher-stern/text-understanding.git</developerConnection>
<url>https://github.com/asher-stern/text-understanding</url>
</scm>


<developers>
<developer>
<name>Asher Stern</name>
<email>[email protected]</email>
</developer>
</developers>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<dkpro.core.version>1.7.0</dkpro.core.version>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>


<dependencyManagement>
<dependencies>
<dependency>
<groupId>de.tudarmstadt.ukp.dkpro.core</groupId>
<artifactId>de.tudarmstadt.ukp.dkpro.core-asl</artifactId>
<!-- For GPL use <artifactId>de.tudarmstadt.ukp.dkpro.core-gpl</artifactId> -->
<version>${dkpro.core.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>



<dependencies>

<dependency>
<groupId>de.tudarmstadt.ukp.dkpro.core</groupId>
<artifactId>de.tudarmstadt.ukp.dkpro.core.opennlp-asl</artifactId>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>

<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>


<dependency>
<groupId>org.apache.uima</groupId>
<artifactId>uimaj-tools</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>

</dependencies>

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.github.asher-stern</groupId>
<artifactId>text_understanding</artifactId>
<version>1.0.1</version>
<packaging>jar</packaging>

<name>text_understanding</name>
<description>Analyzing natural-language text, in particular predicate-argument structure.</description>
<url>https://github.com/asher-stern/text-understanding</url>

<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>


<scm>
<connection>scm:git:git://github.com:asher-stern/text-understanding.git</connection>
<developerConnection>scm:git:ssh://github.com:asher-stern/text-understanding.git</developerConnection>
<url>https://github.com/asher-stern/text-understanding</url>
</scm>


<developers>
<developer>
<name>Asher Stern</name>
<email>[email protected]</email>
</developer>
</developers>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<dkpro.core.version>1.7.0</dkpro.core.version>
</properties>


<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</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-javadoc-plugin</artifactId>
<version>2.10.4</version>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
<!-- <failOnError>false</failOnError> -->
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>

</profile>
</profiles>



<dependencyManagement>
<dependencies>
<dependency>
<groupId>de.tudarmstadt.ukp.dkpro.core</groupId>
<artifactId>de.tudarmstadt.ukp.dkpro.core-asl</artifactId>
<!-- For GPL use <artifactId>de.tudarmstadt.ukp.dkpro.core-gpl</artifactId> -->
<version>${dkpro.core.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>



<dependencies>

<dependency>
<groupId>de.tudarmstadt.ukp.dkpro.core</groupId>
<artifactId>de.tudarmstadt.ukp.dkpro.core.opennlp-asl</artifactId>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>

<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>


<dependency>
<groupId>org.apache.uima</groupId>
<artifactId>uimaj-tools</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>

</dependencies>

</project>
6 changes: 6 additions & 0 deletions src/test/java/com/as/text_understanding/pasta/TestPasta.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import java.util.Arrays;
import java.util.List;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.uima.UIMAException;
import org.junit.Test;

Expand All @@ -25,6 +28,9 @@ public class TestPasta
@Test
public void testPasta() throws UIMAException
{
BasicConfigurator.configure();
Logger.getRootLogger().setLevel(Level.WARN);

final String sentence = "This small example shows you how to write a unit test.";
Tree tree = TestTreeBuilderFromDkpro.buildTreeFromSentence(sentence);
TreeTravelNode treeTravel = TreeTravelNode.createFromTree(tree.getRoot());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.uima.UIMAException;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.JCasFactory;
Expand All @@ -33,6 +36,9 @@ public class TestTreeBuilderFromDkpro
@Test
public void testTreeBuilder() throws UIMAException
{
BasicConfigurator.configure();
Logger.getRootLogger().setLevel(Level.WARN);

final String sentence = "This small example shows you how to write a unit test.";
Tree tree = buildTreeFromSentence(sentence);
String treeString = TreeUtilities.treeToString(tree);
Expand Down

0 comments on commit b5a332a

Please sign in to comment.