Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
up
  • Loading branch information
hvthinh committed Mar 24, 2021
0 parents commit 03ae631
Show file tree
Hide file tree
Showing 44 changed files with 2,532,908 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.sh
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
mvn clean compile
131 changes: 131 additions & 0 deletions pom.xml
@@ -0,0 +1,131 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>de.mpii</groupId>
<artifactId>headword</artifactId>
<version>1.0-SNAPSHOT</version>
<!-- to build WAR, change below to 'war' and remove maven-shade-plugin,
as it does not work with WAR, basically because it copies shaded classes to ROOT,
instead of WEB-INF/classes. So, relocation does not work for WAR // TODO -->

<!-- to deploy as WAR file, uncomment <scope>provided</scope> in dependencies for jetty -->
<packaging>jar</packaging>

<properties>
<maven.compiler.source>1.9</maven.compiler.source>
<maven.compiler.target>1.9</maven.compiler.target>
</properties>
<build>
<!-- <resources>-->
<!-- <resource>-->
<!-- <directory>./resources/</directory>-->
<!-- </resource>-->
<!-- </resources>-->
<sourceDirectory>./src/</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<warSourceDirectory>./web/</warSourceDirectory>
<!-- <failOnMissingWebXml>false</failOnMissingWebXml>-->
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<includeProjectDependencies>true</includeProjectDependencies>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<!-- remove security signature -->
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<!-- relocate classes for solving conflicts -->
<relocations>
<relocation>
<pattern>org.json</pattern>
<shadedPattern>shaded.org.json</shadedPattern>
<!-- <excludes>-->
<!-- <exclude></exclude>-->
<!-- </excludes>-->
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>cogcomp</id>
<name>Cogcomp repository</name>
<url>http://cogcomp.org/m2repo/</url>
</repository>
<repository>
<id>clojars</id>
<name>Clojars repository</name>
<url>http://clojars.org/repo/</url>
</repository>
</repositories>

<dependencies>
<!-- https://mvnrepository.com/artifact/clojusc/jwi -->
<dependency>
<groupId>clojusc</groupId>
<artifactId>jwi</artifactId>
<version>2.4.0</version>
</dependency>
<!-- Stanford CoreNLP-->
<dependency>
<groupId>edu.stanford.nlp</groupId>
<artifactId>stanford-corenlp</artifactId>
<version>3.9.2</version>
</dependency>
<dependency>
<groupId>edu.stanford.nlp</groupId>
<artifactId>stanford-corenlp</artifactId>
<version>3.9.2</version>
<classifier>models</classifier>
</dependency>
<!-- Morpha stemmer-->
<dependency>
<groupId>edu.washington.cs.knowitall</groupId>
<artifactId>morpha-stemmer</artifactId>
<version>1.0.5</version>
</dependency>
</dependencies>
</project>

0 comments on commit 03ae631

Please sign in to comment.