Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions indra-mongo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,6 @@
<artifactId>maven-jar-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<indra.mongoURI>localhost:27017</indra.mongoURI>
</systemPropertyVariables>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion indra-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ This is a REST Service that interfaces with the Java Indra Client.
"t2": "car",
"t1": "engine"
}]
}' "http://localhost:8916/indra/v1/relatedness"
}' "http://localhost:8916/relatedness"
11 changes: 11 additions & 0 deletions indra-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,23 @@
<artifactId>indra-core</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.lambda3.indra</groupId>
<artifactId>indra-mongo</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</dependency>

<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
</dependency>

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,19 @@ public synchronized void stop() {
logger.info("Terminating Indra Service.");
httpServer.shutdownNow();
try {
spaceFactory.close();
if (spaceFactory != null) {
spaceFactory.close();
}
} catch (IOException e) {
logger.error("error closing the vector space factory.");
e.printStackTrace();
} finally {
try {
translatorFactory.close();
if (translatorFactory != null) {
translatorFactory.close();
}
} catch (IOException e) {
logger.error("error closing the translator factory.");
e.printStackTrace();
}
}
}


}
27 changes: 13 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
<slf4j-version>1.7.12</slf4j-version>
<lucene.version>7.1.0</lucene.version>
<license.licenseName>mit</license.licenseName>
<jackson.version>2.9.7</jackson.version>
<jaxb.version>2.3.2</jaxb.version>
</properties>

<profiles>
Expand Down Expand Up @@ -182,20 +184,6 @@
<version>2.20</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.20</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
Expand Down Expand Up @@ -249,6 +237,17 @@
<version>${lucene.version}</version>
</dependency>

<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>${jaxb.version}</version>
</dependency>

<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>${jaxb.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down