blob: 979b146e16fb03997270355ae78a808746bbc403 [file] [log] [blame]
Nils Diewaldf399a672013-11-18 17:55:22 +00001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
Nils Diewald7c50e2d2013-11-18 19:20:22 +00004 <parent>
5 <groupId>KorAP-modules</groupId>
6 <artifactId>KorAP-core-modules</artifactId>
7 <version>1.0</version>
8 </parent>
Nils Diewaldf399a672013-11-18 17:55:22 +00009
Nils Diewald7c50e2d2013-11-18 19:20:22 +000010 <groupId>KorAP-modules</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +000011 <artifactId>KorAP-lucene-index</artifactId>
Nils Diewaldcde69082014-01-16 15:46:48 +000012 <version>0.26</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000013 <packaging>jar</packaging>
14
15 <name>KorAP-lucene-index</name>
16 <url>http://www.ids-mannheim.de/</url>
17
18 <organization>
19 <name>IDS Mannheim</name>
20 <url>http://www.ids-mannheim.de/</url>
21 </organization>
22
23 <developers>
24 <developer>
25 <name>Nils Diewald</name>
26 <email>diewald@ids-mannheim.de</email>
27 <url>http://nils-diewald.de</url>
28 </developer>
29 </developers>
30
31 <properties>
32 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33 </properties>
34
35 <dependencies>
36
37 <!-- junit dependency -->
38 <dependency>
39 <groupId>junit</groupId>
40 <artifactId>junit</artifactId>
41 <version>4.11</version>
42 <scope>test</scope>
43 </dependency>
44
45 <!-- log4j dependency -->
46 <dependency>
47 <groupId>log4j</groupId>
48 <artifactId>log4j</artifactId>
49 <version>1.2.17</version>
50 </dependency>
51 <dependency>
52 <groupId>org.slf4j</groupId>
53 <artifactId>slf4j-log4j12</artifactId>
54 <version>1.7.5</version>
55 </dependency>
56
57 <!-- Lucene core dependency -->
58 <dependency>
59 <artifactId>lucene-core</artifactId>
60 <groupId>org.apache.lucene</groupId>
61 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +000062 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000063 </dependency>
64
65 <!-- Lucene queryparser dependency -->
66 <dependency>
67 <artifactId>lucene-queryparser</artifactId>
68 <groupId>org.apache.lucene</groupId>
69 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +000070 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000071 </dependency>
72
73 <!-- Lucene analyzers dependency -->
74 <dependency>
75 <artifactId>lucene-analyzers-common</artifactId>
76 <groupId>org.apache.lucene</groupId>
77 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +000078 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000079 </dependency>
80
81 <!-- JCache -->
82 <dependency>
83 <groupId>net.sf.jsr107cache</groupId>
84 <artifactId>jsr107cache</artifactId>
85 <version>1.0</version>
86 </dependency>
87
Nils Diewald2cd1c3d2014-01-08 22:53:08 +000088 <!-- among others Base4 support -->
89 <!--
90 <dependency>
91 <groupId>commons-codec</groupId>
92 <artifactId>commons-codec</artifactId>
93 <version>1.4</version>
94 </dependency>
95 -->
96
Nils Diewaldf399a672013-11-18 17:55:22 +000097 <!-- Jackson -->
98 <!-- see https://github.com/FasterXML/jackson-core -->
99 <!-- https://github.com/FasterXML/jackson-databind -->
100 <dependency>
101 <groupId>com.fasterxml.jackson.core</groupId>
102 <artifactId>jackson-databind</artifactId>
103 <version>2.2.2</version>
104 </dependency>
105 <dependency>
106 <groupId>com.fasterxml.jackson.core</groupId>
107 <artifactId>jackson-annotations</artifactId>
108 <version>2.2.2</version>
109 </dependency>
110 <dependency>
111 <groupId>com.fasterxml.jackson.core</groupId>
112 <artifactId>jackson-core</artifactId>
113 <version>2.2.2</version>
114 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000115 </dependencies>
116
117 <build>
118 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
119 <outputDirectory>${basedir}/bin</outputDirectory>
120 <plugins>
121 <plugin>
122 <artifactId>maven-compiler-plugin</artifactId>
123 <version>2.3.2</version>
124 <configuration>
125 <source>1.7</source>
126 <target>1.7</target>
127 </configuration>
128 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000129
130 <!--
131 install the indexer
132 $ mvn clean compile assembly:single
133 Then run e.g.
Nils Diewald22efd2d2013-11-29 22:54:24 +0000134 $ java -jar target/KorAP-lucene-index-X.XX-jar-with-dependencies.jar src/test/resources/wiki/
135 or
136 $ java -jar target/KorAP-lucene-index-X.XX-jar-with-dependencies.jar /home/ndiewald/Repositories/korap/KorAP-modules/KorAP-lucene-index/sandbox/toindex/A00
Nils Diewaldda080362013-11-30 17:31:43 +0000137 $ java -jar target/KorAP-lucene-index-0.21-jar-with-dependencies.jar /home/ndiewald/Repositories/KorAP/KorAP-modules/KorAP-lucene-index/sandbox/toindex/A00
Nils Diewaldaee45452013-11-27 22:35:55 +0000138
139 -->
140 <plugin>
141 <artifactId>maven-assembly-plugin</artifactId>
142 <configuration>
143 <archive>
144 <manifest>
145 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
146 </manifest>
147 </archive>
148 <descriptorRefs>
149 <descriptorRef>jar-with-dependencies</descriptorRef>
150 </descriptorRefs>
151 </configuration>
152 <executions>
153 <execution>
154 <id>make-assembly</id>
155 <phase>package</phase>
156 <goals>
157 <goal>single</goal>
158 </goals>
159 </execution>
160 </executions>
161 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000162 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000163 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000164 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000165 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000166 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000167 <excludes>
168 <exclude>**/TestRealIndex.java</exclude>
169 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000170 </configuration>
171 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000172 </plugins>
173 </build>
174</project>