Skip to content

Commit

Permalink
Trim dependencies. Refs opencog#103.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceefour committed Jul 14, 2014
1 parent 0b5cbe8 commit d4beb60
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 116 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ Building
--------
After the above are installed, the relex java code can be built.
The build system uses `ant`, and the ant build specifications
are in `build.xml`. Simply saying `ant` at the command line
are in `build.xml`. When running `ant` for the first time it will download the
[Aether antlib](https://www.eclipse.org/aether/). Afterwards, simply saying `ant` at the command line
should be enough to build. Saying `ant run` will run a basic
demo of the system. The `ant test` command will run several tests
verifying both regular parsing, and the Stanford-parser compatibility
Expand Down
3 changes: 2 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
</not>
</condition>
</fail>
<artifact:pom file="pom.xml" />
<artifact:settings file="java5.settings.xml"/>
<artifact:pom file="pom.xml"/>
<artifact:resolve>
<path refid="cp.compile" classpath="compile"/>
<path refid="cp.test" classpath="test" />
Expand Down
7 changes: 7 additions & 0 deletions java5.settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings 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/settings-1.0.0.xsd">
<activeProfiles>
<activeProfile>java5</activeProfile>
</activeProfiles>
</settings>
258 changes: 144 additions & 114 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,120 +165,9 @@
<dependencies>

<dependency>
<groupId>org.apache.odftoolkit</groupId>
<artifactId>odfdom-java</artifactId>
<version>0.8.9-incubating</version>
</dependency>
<dependency>
<groupId>org.apache.odftoolkit</groupId>
<artifactId>simple-odf</artifactId>
<version>0.8-incubating</version>
</dependency>
<!-- xerces 2.11.0 required, ODF Toolkit won't work with older xerces,
nor one bundled by Tomcat -->
<!-- MUST used xml-apis 1.4.01, can't work with Tomcat bundled xml-apis
nor 1.3.x nor 2.0.2 (which is older) -->
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>org.apache.clerezza</groupId>
<artifactId>utils</artifactId>
<version>0.1-incubating</version>
<exclusions>
<exclusion>
<artifactId>commons-logging-api</artifactId>
<groupId>commons-logging</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.rootdev</groupId>
<artifactId>java-rdfa</artifactId>
<version>0.4.2</version>
<exclusions>
<exclusion>
<artifactId>slf4j-log4j12</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<!-- No idea why ODF Toolkit requires RDFNode! but there it is... -->
<groupId>org.apache.jena</groupId>
<artifactId>jena-arq</artifactId>
<version>2.11.2</version>
<exclusions>
<exclusion>
<artifactId>slf4j-log4j12</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>1.4.0</version>
<exclusions>
<exclusion>
<artifactId>commons-logging</artifactId>
<groupId>commons-logging</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>3.2</version>
</dependency>

<dependency>
<groupId>net.sf.jwordnet</groupId>
<artifactId>jwnl</artifactId>
<version>1.4_rc3</version>
<exclusions>
<exclusion>
<artifactId>commons-logging</artifactId>
<groupId>commons-logging</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.linkgrammar</groupId>
<artifactId>linkgrammar</artifactId>
<version>5.0.8</version>
</dependency>
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-tools</artifactId>
<version>1.5.3</version>
</dependency>
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-apibinding</artifactId>
<version>3.5.0</version>
<exclusions>
<exclusion>
<artifactId>org.osgi.core</artifactId>
<groupId>org.apache.felix</groupId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-jdk5</artifactId>
<version>17.0</version>
<groupId>net.sf.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>2.3</version>
</dependency>

<!-- Logging -->
Expand Down Expand Up @@ -343,4 +232,145 @@
</snapshots>
</repository>
</repositories>
<profiles>
<profile>
<id>java7</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>org.apache.odftoolkit</groupId>
<artifactId>odfdom-java</artifactId>
<version>0.8.9-incubating</version>
</dependency>
<dependency>
<groupId>org.apache.odftoolkit</groupId>
<artifactId>simple-odf</artifactId>
<version>0.8-incubating</version>
</dependency>
<!-- xerces 2.11.0 required, ODF Toolkit won't work with older xerces,
nor one bundled by Tomcat -->
<!-- MUST used xml-apis 1.4.01, can't work with Tomcat bundled xml-apis
nor 1.3.x nor 2.0.2 (which is older) -->
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>org.apache.clerezza</groupId>
<artifactId>utils</artifactId>
<version>0.1-incubating</version>
<exclusions>
<exclusion>
<artifactId>commons-logging-api</artifactId>
<groupId>commons-logging</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.rootdev</groupId>
<artifactId>java-rdfa</artifactId>
<version>0.4.2</version>
<exclusions>
<exclusion>
<artifactId>slf4j-log4j12</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<!-- No idea why ODF Toolkit requires RDFNode! but there it is... -->
<groupId>org.apache.jena</groupId>
<artifactId>jena-arq</artifactId>
<version>2.11.2</version>
<exclusions>
<exclusion>
<artifactId>slf4j-log4j12</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>1.4.0</version>
<exclusions>
<exclusion>
<artifactId>commons-logging</artifactId>
<groupId>commons-logging</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>3.2</version>
</dependency>

<dependency>
<groupId>net.sf.jwordnet</groupId>
<artifactId>jwnl</artifactId>
<version>1.4_rc3</version>
<exclusions>
<exclusion>
<artifactId>commons-logging</artifactId>
<groupId>commons-logging</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.linkgrammar</groupId>
<artifactId>linkgrammar</artifactId>
<version>5.0.8</version>
</dependency>
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-tools</artifactId>
<version>1.5.3</version>
</dependency>
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-apibinding</artifactId>
<version>3.5.0</version>
<exclusions>
<exclusion>
<artifactId>org.osgi.core</artifactId>
<groupId>org.apache.felix</groupId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-jdk5</artifactId>
<version>17.0</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>java5</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
1 change: 1 addition & 0 deletions src/java_test/relex/test/TestStanford.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public static void main(String[] args)
{
setUpClass();
TestStanford ts = new TestStanford();
ts.runTests();
}

@Test
Expand Down

0 comments on commit d4beb60

Please sign in to comment.