blob: cb77ece38266634112a2fb124032192a018ff036 [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 Diewald97b66382014-02-11 00:32:23 +00004
5<!--
Nils Diewald7c50e2d2013-11-18 19:20:22 +00006 <parent>
7 <groupId>KorAP-modules</groupId>
8 <artifactId>KorAP-core-modules</artifactId>
Nils Diewald345bdc02014-01-21 21:48:57 +00009 <version>LATEST</version>
Nils Diewald7c50e2d2013-11-18 19:20:22 +000010 </parent>
Nils Diewald97b66382014-02-11 00:32:23 +000011-->
Nils Diewald7c50e2d2013-11-18 19:20:22 +000012 <groupId>KorAP-modules</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +000013 <artifactId>KorAP-lucene-index</artifactId>
Nils Diewaldbadb4f12014-02-13 17:26:12 +000014 <version>0.30</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000015 <packaging>jar</packaging>
16
17 <name>KorAP-lucene-index</name>
18 <url>http://www.ids-mannheim.de/</url>
19
20 <organization>
21 <name>IDS Mannheim</name>
22 <url>http://www.ids-mannheim.de/</url>
23 </organization>
24
25 <developers>
26 <developer>
27 <name>Nils Diewald</name>
28 <email>diewald@ids-mannheim.de</email>
29 <url>http://nils-diewald.de</url>
30 </developer>
31 </developers>
32
33 <properties>
34 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35 </properties>
36
37 <dependencies>
38
39 <!-- junit dependency -->
40 <dependency>
41 <groupId>junit</groupId>
42 <artifactId>junit</artifactId>
43 <version>4.11</version>
44 <scope>test</scope>
45 </dependency>
46
47 <!-- log4j dependency -->
48 <dependency>
49 <groupId>log4j</groupId>
50 <artifactId>log4j</artifactId>
51 <version>1.2.17</version>
52 </dependency>
53 <dependency>
54 <groupId>org.slf4j</groupId>
55 <artifactId>slf4j-log4j12</artifactId>
56 <version>1.7.5</version>
57 </dependency>
58
59 <!-- Lucene core dependency -->
60 <dependency>
61 <artifactId>lucene-core</artifactId>
62 <groupId>org.apache.lucene</groupId>
63 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +000064 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000065 </dependency>
66
67 <!-- Lucene queryparser dependency -->
68 <dependency>
69 <artifactId>lucene-queryparser</artifactId>
70 <groupId>org.apache.lucene</groupId>
71 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +000072 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000073 </dependency>
74
75 <!-- Lucene analyzers dependency -->
76 <dependency>
77 <artifactId>lucene-analyzers-common</artifactId>
78 <groupId>org.apache.lucene</groupId>
79 <type>jar</type>
Nils Diewaldbfe554b2014-01-09 19:35:05 +000080 <version>4.3.1</version>
Nils Diewaldf399a672013-11-18 17:55:22 +000081 </dependency>
82
83 <!-- JCache -->
84 <dependency>
85 <groupId>net.sf.jsr107cache</groupId>
86 <artifactId>jsr107cache</artifactId>
87 <version>1.0</version>
88 </dependency>
89
Nils Diewald2cd1c3d2014-01-08 22:53:08 +000090 <!-- among others Base4 support -->
91 <!--
92 <dependency>
93 <groupId>commons-codec</groupId>
94 <artifactId>commons-codec</artifactId>
95 <version>1.4</version>
96 </dependency>
97 -->
98
Nils Diewaldf399a672013-11-18 17:55:22 +000099 <!-- Jackson -->
100 <!-- see https://github.com/FasterXML/jackson-core -->
101 <!-- https://github.com/FasterXML/jackson-databind -->
102 <dependency>
103 <groupId>com.fasterxml.jackson.core</groupId>
104 <artifactId>jackson-databind</artifactId>
105 <version>2.2.2</version>
106 </dependency>
107 <dependency>
108 <groupId>com.fasterxml.jackson.core</groupId>
109 <artifactId>jackson-annotations</artifactId>
110 <version>2.2.2</version>
111 </dependency>
112 <dependency>
113 <groupId>com.fasterxml.jackson.core</groupId>
114 <artifactId>jackson-core</artifactId>
115 <version>2.2.2</version>
116 </dependency>
Nils Diewaldf399a672013-11-18 17:55:22 +0000117 </dependencies>
118
119 <build>
120 <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
121 <outputDirectory>${basedir}/bin</outputDirectory>
122 <plugins>
123 <plugin>
124 <artifactId>maven-compiler-plugin</artifactId>
125 <version>2.3.2</version>
126 <configuration>
127 <source>1.7</source>
128 <target>1.7</target>
129 </configuration>
130 </plugin>
Nils Diewaldaee45452013-11-27 22:35:55 +0000131
132 <!--
133 install the indexer
134 $ mvn clean compile assembly:single
135 Then run e.g.
Nils Diewald22efd2d2013-11-29 22:54:24 +0000136 $ java -jar target/KorAP-lucene-index-X.XX-jar-with-dependencies.jar src/test/resources/wiki/
137 or
138 $ 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 +0000139 $ 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 +0000140
141 -->
142 <plugin>
143 <artifactId>maven-assembly-plugin</artifactId>
144 <configuration>
145 <archive>
146 <manifest>
147 <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass>
148 </manifest>
149 </archive>
150 <descriptorRefs>
151 <descriptorRef>jar-with-dependencies</descriptorRef>
152 </descriptorRefs>
153 </configuration>
154 <executions>
155 <execution>
156 <id>make-assembly</id>
157 <phase>package</phase>
158 <goals>
159 <goal>single</goal>
160 </goals>
161 </execution>
162 </executions>
163 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000164 <plugin>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000165 <groupId>org.apache.maven.plugins</groupId>
Nils Diewaldf399a672013-11-18 17:55:22 +0000166 <artifactId>maven-surefire-plugin</artifactId>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000167 <version>2.16</version>
Nils Diewaldf399a672013-11-18 17:55:22 +0000168 <configuration>
Nils Diewald22efd2d2013-11-29 22:54:24 +0000169 <excludes>
170 <exclude>**/TestRealIndex.java</exclude>
171 </excludes>
Nils Diewaldf399a672013-11-18 17:55:22 +0000172 </configuration>
173 </plugin>
Nils Diewaldf399a672013-11-18 17:55:22 +0000174 </plugins>
175 </build>
176</project>