Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 1 | <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 Diewald | 97b6638 | 2014-02-11 00:32:23 +0000 | [diff] [blame] | 4 | |
| 5 | <!-- |
Nils Diewald | 7c50e2d | 2013-11-18 19:20:22 +0000 | [diff] [blame] | 6 | <parent> |
| 7 | <groupId>KorAP-modules</groupId> |
| 8 | <artifactId>KorAP-core-modules</artifactId> |
Nils Diewald | 345bdc0 | 2014-01-21 21:48:57 +0000 | [diff] [blame] | 9 | <version>LATEST</version> |
Nils Diewald | 7c50e2d | 2013-11-18 19:20:22 +0000 | [diff] [blame] | 10 | </parent> |
Nils Diewald | 97b6638 | 2014-02-11 00:32:23 +0000 | [diff] [blame] | 11 | --> |
Nils Diewald | 7c50e2d | 2013-11-18 19:20:22 +0000 | [diff] [blame] | 12 | <groupId>KorAP-modules</groupId> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 13 | <artifactId>KorAP-lucene-index</artifactId> |
Nils Diewald | 7cf8c6d | 2014-05-28 18:37:38 +0000 | [diff] [blame] | 14 | <version>0.31.2</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 15 | <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 | |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame^] | 59 | <!-- solr dependency --> |
| 60 | <dependency> |
| 61 | <artifactId>solr-core</artifactId> |
| 62 | <groupId>org.apache.solr</groupId> |
| 63 | <version>4.3.1</version> |
| 64 | <type>jar</type> |
| 65 | <scope>compile</scope> |
| 66 | </dependency> |
| 67 | |
| 68 | <dependency> |
| 69 | <artifactId>solr-test-framework</artifactId> |
| 70 | <groupId>org.apache.solr</groupId> |
| 71 | <version>4.3.1</version> |
| 72 | </dependency> |
| 73 | |
| 74 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 75 | <!-- Lucene core dependency --> |
| 76 | <dependency> |
| 77 | <artifactId>lucene-core</artifactId> |
| 78 | <groupId>org.apache.lucene</groupId> |
| 79 | <type>jar</type> |
Nils Diewald | bfe554b | 2014-01-09 19:35:05 +0000 | [diff] [blame] | 80 | <version>4.3.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 81 | </dependency> |
| 82 | |
| 83 | <!-- Lucene queryparser dependency --> |
| 84 | <dependency> |
| 85 | <artifactId>lucene-queryparser</artifactId> |
| 86 | <groupId>org.apache.lucene</groupId> |
| 87 | <type>jar</type> |
Nils Diewald | bfe554b | 2014-01-09 19:35:05 +0000 | [diff] [blame] | 88 | <version>4.3.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 89 | </dependency> |
| 90 | |
| 91 | <!-- Lucene analyzers dependency --> |
| 92 | <dependency> |
| 93 | <artifactId>lucene-analyzers-common</artifactId> |
| 94 | <groupId>org.apache.lucene</groupId> |
| 95 | <type>jar</type> |
Nils Diewald | bfe554b | 2014-01-09 19:35:05 +0000 | [diff] [blame] | 96 | <version>4.3.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 97 | </dependency> |
| 98 | |
Nils Diewald | 8a1fc01 | 2014-02-19 15:23:33 +0000 | [diff] [blame] | 99 | <dependency> |
| 100 | <groupId>org.hamcrest</groupId> |
| 101 | <artifactId>hamcrest-core</artifactId> |
| 102 | <version>1.3</version> |
| 103 | </dependency> |
| 104 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 105 | <!-- JCache --> |
| 106 | <dependency> |
| 107 | <groupId>net.sf.jsr107cache</groupId> |
| 108 | <artifactId>jsr107cache</artifactId> |
| 109 | <version>1.0</version> |
| 110 | </dependency> |
| 111 | |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame^] | 112 | <!-- servlet dependency --> |
| 113 | <dependency> |
| 114 | <artifactId>servlet-api</artifactId> |
| 115 | <groupId>javax.servlet</groupId> |
| 116 | <version>2.5</version> |
| 117 | </dependency> |
| 118 | |
Nils Diewald | 2cd1c3d | 2014-01-08 22:53:08 +0000 | [diff] [blame] | 119 | <!-- among others Base4 support --> |
| 120 | <!-- |
| 121 | <dependency> |
| 122 | <groupId>commons-codec</groupId> |
| 123 | <artifactId>commons-codec</artifactId> |
| 124 | <version>1.4</version> |
| 125 | </dependency> |
| 126 | --> |
| 127 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 128 | <!-- Jackson --> |
| 129 | <!-- see https://github.com/FasterXML/jackson-core --> |
| 130 | <!-- https://github.com/FasterXML/jackson-databind --> |
| 131 | <dependency> |
| 132 | <groupId>com.fasterxml.jackson.core</groupId> |
| 133 | <artifactId>jackson-databind</artifactId> |
| 134 | <version>2.2.2</version> |
| 135 | </dependency> |
| 136 | <dependency> |
| 137 | <groupId>com.fasterxml.jackson.core</groupId> |
| 138 | <artifactId>jackson-annotations</artifactId> |
| 139 | <version>2.2.2</version> |
| 140 | </dependency> |
| 141 | <dependency> |
| 142 | <groupId>com.fasterxml.jackson.core</groupId> |
| 143 | <artifactId>jackson-core</artifactId> |
| 144 | <version>2.2.2</version> |
| 145 | </dependency> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 146 | </dependencies> |
| 147 | |
| 148 | <build> |
| 149 | <sourceDirectory>${basedir}/src/main/java</sourceDirectory> |
| 150 | <outputDirectory>${basedir}/bin</outputDirectory> |
| 151 | <plugins> |
| 152 | <plugin> |
| 153 | <artifactId>maven-compiler-plugin</artifactId> |
| 154 | <version>2.3.2</version> |
| 155 | <configuration> |
| 156 | <source>1.7</source> |
| 157 | <target>1.7</target> |
| 158 | </configuration> |
| 159 | </plugin> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 160 | |
| 161 | <!-- |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 162 | install the indexer and the performancetests |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 163 | $ mvn clean compile assembly:single |
| 164 | Then run e.g. |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 165 | $ java -jar target/KorAP-lucene-index-0.30.2-jar-with-dependencies.jar src/main/resources/korap.conf /data/hdd/lucene-new/WPD/ |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 166 | --> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 167 | |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 168 | <plugin> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 169 | <groupId>org.apache.maven.plugins</groupId> |
| 170 | <artifactId>maven-assembly-plugin</artifactId> |
| 171 | <version>2.2-beta-5</version> |
| 172 | <configuration> |
| 173 | <!-- |
| 174 | <finalName>KorapTools</finalName> |
| 175 | --> |
Eliza Margaretha | d28469f | 2014-03-10 12:42:21 +0000 | [diff] [blame] | 176 | |
| 177 | <archive> |
| 178 | <manifest> |
| 179 | <addClasspath>true</addClasspath> |
| 180 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 181 | </manifest> |
| 182 | </archive> |
| 183 | |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 184 | <appendAssemblyId>false</appendAssemblyId> |
| 185 | <descriptorRefs> |
| 186 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 187 | </descriptorRefs> |
| 188 | </configuration> |
| 189 | <executions> |
| 190 | |
| 191 | <execution> |
| 192 | <id>KorapIndexer</id> |
| 193 | <phase>package</phase> |
| 194 | <goals> |
| 195 | <goal>single</goal> |
| 196 | </goals> |
| 197 | <configuration> |
| 198 | <finalName>KorapIndexer</finalName> |
| 199 | <archive> |
| 200 | <manifest> |
| 201 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 202 | </manifest> |
| 203 | </archive> |
| 204 | </configuration> |
| 205 | </execution> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 206 | </executions> |
| 207 | </plugin> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 208 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 209 | <plugin> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 210 | <groupId>org.apache.maven.plugins</groupId> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 211 | <artifactId>maven-surefire-plugin</artifactId> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 212 | <version>2.16</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 213 | <configuration> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 214 | <excludes> |
| 215 | <exclude>**/TestRealIndex.java</exclude> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 216 | <exclude>**/benchmark/*</exclude> |
Eliza Margaretha | 78d2cd1 | 2014-03-10 12:44:40 +0000 | [diff] [blame] | 217 | <exclude>**/TestWPDIndex.java</exclude> |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame^] | 218 | <exclude>**/TestKorapSolr.java</exclude> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 219 | </excludes> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 220 | </configuration> |
| 221 | </plugin> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 222 | </plugins> |
Nils Diewald | cdd465b | 2014-02-24 18:47:38 +0000 | [diff] [blame] | 223 | |
| 224 | <resources> |
| 225 | <resource> |
| 226 | <directory>src/main/resources</directory> |
| 227 | <filtering>true</filtering> |
| 228 | <includes> |
| 229 | <include>index.properties</include> |
| 230 | </includes> |
| 231 | </resource> |
| 232 | <resource> |
| 233 | <directory>src/main/resources</directory> |
| 234 | <filtering>false</filtering> |
| 235 | <excludes> |
| 236 | <exclude>index.properties</exclude> |
| 237 | </excludes> |
| 238 | </resource> |
| 239 | </resources> |
| 240 | |
| 241 | <testResources> |
| 242 | <testResource> |
| 243 | <directory>src/test/resources</directory> |
| 244 | <filtering>true</filtering> |
| 245 | <includes> |
| 246 | <include>index.properties</include> |
| 247 | </includes> |
| 248 | </testResource> |
| 249 | <testResource> |
| 250 | <directory>src/test/resources</directory> |
| 251 | <filtering>false</filtering> |
| 252 | <excludes> |
| 253 | <exclude>index.properties</exclude> |
| 254 | </excludes> |
| 255 | </testResource> |
| 256 | </testResources> |
| 257 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 258 | </build> |
| 259 | </project> |