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 | |
Nils Diewald | f6b351c | 2014-09-04 21:34:05 +0000 | [diff] [blame] | 5 | <!-- |
| 6 | ** Indexer |
| 7 | install the indexer and the performancetests |
| 8 | $ mvn clean compile assembly:single |
| 9 | Then run e.g. |
Nils Diewald | 32912a6 | 2014-11-11 01:57:45 +0000 | [diff] [blame] | 10 | $ java -jar target/KorAP-lucene-index-X.XX.jar src/main/resources/korap.conf /data/hdd/lucene-new/WPD/ |
Nils Diewald | f6b351c | 2014-09-04 21:34:05 +0000 | [diff] [blame] | 11 | |
| 12 | ** Server |
| 13 | Start the server with |
| 14 | $mvn clean compile exec:java |
| 15 | --> |
| 16 | |
Nils Diewald | 7c50e2d | 2013-11-18 19:20:22 +0000 | [diff] [blame] | 17 | <groupId>KorAP-modules</groupId> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 18 | <artifactId>KorAP-lucene-index</artifactId> |
Nils Diewald | c471b18 | 2014-11-19 22:51:15 +0000 | [diff] [blame] | 19 | <version>0.49.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 20 | <packaging>jar</packaging> |
| 21 | |
| 22 | <name>KorAP-lucene-index</name> |
| 23 | <url>http://www.ids-mannheim.de/</url> |
| 24 | |
| 25 | <organization> |
| 26 | <name>IDS Mannheim</name> |
| 27 | <url>http://www.ids-mannheim.de/</url> |
| 28 | </organization> |
| 29 | |
| 30 | <developers> |
| 31 | <developer> |
| 32 | <name>Nils Diewald</name> |
| 33 | <email>diewald@ids-mannheim.de</email> |
| 34 | <url>http://nils-diewald.de</url> |
| 35 | </developer> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 36 | <developer> |
| 37 | <name>Eliza Margaretha</name> |
| 38 | <email>margaretha@ids-mannheim.de</email> |
| 39 | </developer> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 40 | </developers> |
| 41 | |
| 42 | <properties> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 43 | <jersey.version>2.4.1</jersey.version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 44 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 45 | </properties> |
| 46 | |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 47 | <dependencyManagement> |
| 48 | <dependencies> |
| 49 | <dependency> |
| 50 | <groupId>org.glassfish.jersey</groupId> |
| 51 | <artifactId>jersey-bom</artifactId> |
| 52 | <version>${jersey.version}</version> |
| 53 | <type>pom</type> |
| 54 | <scope>import</scope> |
| 55 | </dependency> |
| 56 | </dependencies> |
| 57 | </dependencyManagement> |
| 58 | |
Eliza Margaretha | a929f27 | 2014-11-28 14:10:05 +0000 | [diff] [blame^] | 59 | <dependencies> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 60 | <!-- junit dependency --> |
| 61 | <dependency> |
| 62 | <groupId>junit</groupId> |
| 63 | <artifactId>junit</artifactId> |
| 64 | <version>4.11</version> |
| 65 | <scope>test</scope> |
| 66 | </dependency> |
| 67 | |
| 68 | <!-- log4j dependency --> |
| 69 | <dependency> |
| 70 | <groupId>log4j</groupId> |
| 71 | <artifactId>log4j</artifactId> |
| 72 | <version>1.2.17</version> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>org.slf4j</groupId> |
| 76 | <artifactId>slf4j-log4j12</artifactId> |
| 77 | <version>1.7.5</version> |
| 78 | </dependency> |
| 79 | |
Nils Diewald | 6aa929e | 2014-09-17 13:30:34 +0000 | [diff] [blame] | 80 | <!-- SQLite for database connection tests --> |
| 81 | <dependency> |
| 82 | <groupId>org.xerial</groupId> |
| 83 | <artifactId>sqlite-jdbc</artifactId> |
| 84 | <version>3.7.2</version> |
| 85 | </dependency> |
| 86 | |
| 87 | <!-- Database Connection Pool Manager --> |
| 88 | <dependency> |
| 89 | <groupId>c3p0</groupId> |
| 90 | <artifactId>c3p0</artifactId> |
| 91 | <version>0.9.1.2</version> |
| 92 | </dependency> |
Nils Diewald | e26f03f | 2014-06-04 17:48:53 +0000 | [diff] [blame] | 93 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 94 | <!-- Lucene core dependency --> |
| 95 | <dependency> |
| 96 | <artifactId>lucene-core</artifactId> |
| 97 | <groupId>org.apache.lucene</groupId> |
| 98 | <type>jar</type> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 99 | <version>4.5.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 100 | </dependency> |
| 101 | |
| 102 | <!-- Lucene queryparser dependency --> |
| 103 | <dependency> |
| 104 | <artifactId>lucene-queryparser</artifactId> |
| 105 | <groupId>org.apache.lucene</groupId> |
| 106 | <type>jar</type> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 107 | <version>4.5.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 108 | </dependency> |
| 109 | |
| 110 | <!-- Lucene analyzers dependency --> |
| 111 | <dependency> |
| 112 | <artifactId>lucene-analyzers-common</artifactId> |
| 113 | <groupId>org.apache.lucene</groupId> |
| 114 | <type>jar</type> |
Nils Diewald | bfe554b | 2014-01-09 19:35:05 +0000 | [diff] [blame] | 115 | <version>4.3.1</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 116 | </dependency> |
| 117 | |
Nils Diewald | 8a1fc01 | 2014-02-19 15:23:33 +0000 | [diff] [blame] | 118 | <dependency> |
| 119 | <groupId>org.hamcrest</groupId> |
| 120 | <artifactId>hamcrest-core</artifactId> |
| 121 | <version>1.3</version> |
| 122 | </dependency> |
| 123 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 124 | <!-- JCache --> |
| 125 | <dependency> |
| 126 | <groupId>net.sf.jsr107cache</groupId> |
| 127 | <artifactId>jsr107cache</artifactId> |
| 128 | <version>1.0</version> |
| 129 | </dependency> |
| 130 | |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 131 | <!-- Jersey --> |
| 132 | <dependency> |
| 133 | <groupId>org.glassfish.jersey.containers</groupId> |
| 134 | <artifactId>jersey-container-grizzly2-http</artifactId> |
| 135 | </dependency> |
| 136 | |
| 137 | <dependency> |
| 138 | <groupId>com.sun.jersey.contribs</groupId> |
| 139 | <artifactId>jersey-freemarker</artifactId> |
| 140 | <version>1.13-b01</version> |
| 141 | </dependency> |
| 142 | |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 143 | <!-- JSON support in Jersey --> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 144 | <dependency> |
| 145 | <groupId>org.glassfish.jersey.media</groupId> |
| 146 | <artifactId>jersey-media-moxy</artifactId> |
| 147 | </dependency> |
| 148 | |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 149 | <!-- JSON support using Jackson --> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 150 | <!-- see https://github.com/FasterXML/jackson-core --> |
| 151 | <!-- https://github.com/FasterXML/jackson-databind --> |
| 152 | <dependency> |
| 153 | <groupId>com.fasterxml.jackson.core</groupId> |
| 154 | <artifactId>jackson-databind</artifactId> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 155 | <version>2.4.0</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 156 | </dependency> |
| 157 | <dependency> |
| 158 | <groupId>com.fasterxml.jackson.core</groupId> |
| 159 | <artifactId>jackson-annotations</artifactId> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 160 | <version>2.4.0</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 161 | </dependency> |
| 162 | <dependency> |
| 163 | <groupId>com.fasterxml.jackson.core</groupId> |
| 164 | <artifactId>jackson-core</artifactId> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 165 | <version>2.4.0</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 166 | </dependency> |
Eliza Margaretha | a929f27 | 2014-11-28 14:10:05 +0000 | [diff] [blame^] | 167 | <dependency> |
| 168 | <groupId>KorapAnnotationProcessor</groupId> |
| 169 | <artifactId>KorapAnnotationProcessor</artifactId> |
| 170 | <version>0.0.1-SNAPSHOT</version> |
| 171 | <scope>compile</scope> |
| 172 | </dependency> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 173 | </dependencies> |
| 174 | |
| 175 | <build> |
| 176 | <sourceDirectory>${basedir}/src/main/java</sourceDirectory> |
| 177 | <outputDirectory>${basedir}/bin</outputDirectory> |
| 178 | <plugins> |
| 179 | <plugin> |
Eliza Margaretha | a929f27 | 2014-11-28 14:10:05 +0000 | [diff] [blame^] | 180 | <artifactId>maven-compiler-plugin</artifactId> |
| 181 | <version>2.5.1</version> |
| 182 | <inherited>true</inherited> |
| 183 | <configuration> |
| 184 | <showWarnings>true</showWarnings> |
| 185 | <source>1.7</source> |
| 186 | <target>1.7</target> |
| 187 | </configuration> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 188 | </plugin> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 189 | |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 190 | <plugin> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 191 | <groupId>org.apache.maven.plugins</groupId> |
| 192 | <artifactId>maven-assembly-plugin</artifactId> |
| 193 | <version>2.2-beta-5</version> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 194 | <configuration> |
Eliza Margaretha | d28469f | 2014-03-10 12:42:21 +0000 | [diff] [blame] | 195 | <archive> |
| 196 | <manifest> |
| 197 | <addClasspath>true</addClasspath> |
| 198 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 199 | </manifest> |
| 200 | </archive> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 201 | <appendAssemblyId>false</appendAssemblyId> |
| 202 | <descriptorRefs> |
| 203 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 204 | </descriptorRefs> |
| 205 | </configuration> |
| 206 | <executions> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 207 | <execution> |
| 208 | <id>KorapIndexer</id> |
| 209 | <phase>package</phase> |
| 210 | <goals> |
| 211 | <goal>single</goal> |
| 212 | </goals> |
| 213 | <configuration> |
| 214 | <finalName>KorapIndexer</finalName> |
| 215 | <archive> |
| 216 | <manifest> |
| 217 | <mainClass>de.ids_mannheim.korap.KorapIndexer</mainClass> |
| 218 | </manifest> |
| 219 | </archive> |
| 220 | </configuration> |
| 221 | </execution> |
Nils Diewald | aee4545 | 2013-11-27 22:35:55 +0000 | [diff] [blame] | 222 | </executions> |
| 223 | </plugin> |
Nils Diewald | 67f5404 | 2014-09-27 14:53:38 +0000 | [diff] [blame] | 224 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 225 | <plugin> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 226 | <groupId>org.apache.maven.plugins</groupId> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 227 | <artifactId>maven-surefire-plugin</artifactId> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 228 | <version>2.16</version> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 229 | <configuration> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 230 | <excludes> |
Nils Diewald | efb9c9a | 2014-02-20 15:05:18 +0000 | [diff] [blame] | 231 | <exclude>**/benchmark/*</exclude> |
Eliza Margaretha | 78d2cd1 | 2014-03-10 12:44:40 +0000 | [diff] [blame] | 232 | <exclude>**/TestWPDIndex.java</exclude> |
Nils Diewald | 32912a6 | 2014-11-11 01:57:45 +0000 | [diff] [blame] | 233 | <exclude>**/TestRealIndex.java</exclude> |
Nils Diewald | 22efd2d | 2013-11-29 22:54:24 +0000 | [diff] [blame] | 234 | </excludes> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 235 | </configuration> |
| 236 | </plugin> |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 237 | |
Nils Diewald | 2f2b067 | 2014-11-25 20:26:22 +0000 | [diff] [blame] | 238 | <!-- Formatter plugin for Eclipse based coding conventions --> |
| 239 | <!-- |
| 240 | http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html |
| 241 | Call: mvn java-formatter:format |
| 242 | --> |
| 243 | <plugin> |
| 244 | <groupId>com.googlecode.maven-java-formatter-plugin</groupId> |
| 245 | <artifactId>maven-java-formatter-plugin</artifactId> |
| 246 | <version>0.4</version> |
| 247 | <!-- |
| 248 | <executions> |
| 249 | <execution> |
| 250 | <goals> |
| 251 | <goal>format</goal> |
| 252 | </goals> |
| 253 | </execution> |
| 254 | </executions> |
| 255 | --> |
| 256 | </plugin> |
| 257 | |
Nils Diewald | 32030a6 | 2014-09-03 20:16:50 +0000 | [diff] [blame] | 258 | <plugin> |
| 259 | <groupId>org.codehaus.mojo</groupId> |
| 260 | <artifactId>exec-maven-plugin</artifactId> |
| 261 | <version>1.2.1</version> |
| 262 | <executions> |
| 263 | <execution> |
| 264 | <goals> |
| 265 | <goal>java</goal> |
| 266 | </goals> |
| 267 | </execution> |
| 268 | </executions> |
| 269 | <configuration> |
| 270 | <mainClass>de.ids_mannheim.korap.KorapNode</mainClass> |
| 271 | </configuration> |
| 272 | </plugin> |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 273 | </plugins> |
Nils Diewald | cdd465b | 2014-02-24 18:47:38 +0000 | [diff] [blame] | 274 | |
| 275 | <resources> |
| 276 | <resource> |
| 277 | <directory>src/main/resources</directory> |
| 278 | <filtering>true</filtering> |
| 279 | <includes> |
| 280 | <include>index.properties</include> |
| 281 | </includes> |
| 282 | </resource> |
| 283 | <resource> |
| 284 | <directory>src/main/resources</directory> |
| 285 | <filtering>false</filtering> |
| 286 | <excludes> |
| 287 | <exclude>index.properties</exclude> |
| 288 | </excludes> |
| 289 | </resource> |
| 290 | </resources> |
| 291 | |
| 292 | <testResources> |
| 293 | <testResource> |
| 294 | <directory>src/test/resources</directory> |
| 295 | <filtering>true</filtering> |
| 296 | <includes> |
| 297 | <include>index.properties</include> |
| 298 | </includes> |
| 299 | </testResource> |
| 300 | <testResource> |
| 301 | <directory>src/test/resources</directory> |
| 302 | <filtering>false</filtering> |
| 303 | <excludes> |
| 304 | <exclude>index.properties</exclude> |
| 305 | </excludes> |
| 306 | </testResource> |
| 307 | </testResources> |
| 308 | |
Nils Diewald | f399a67 | 2013-11-18 17:55:22 +0000 | [diff] [blame] | 309 | </build> |
| 310 | </project> |