Index: trunk/lucene-search-3/pom.xml |
— | — | @@ -14,6 +14,7 @@ |
15 | 15 | <description>A search engine extension for MediaWiki</description> |
16 | 16 | <inceptionYear>18/1/2012</inceptionYear> |
17 | 17 | <url>http://www.mediawiki.org/wiki/User:OrenBochman/Search</url> |
| 18 | + |
18 | 19 | <scm> |
19 | 20 | <developerConnection>oren</developerConnection> |
20 | 21 | <url>http://svn.wikimedia.org/svnroot/mediawiki/trunk/lucene-search-3</url> |
— | — | @@ -24,12 +25,12 @@ |
25 | 26 | <system>jenkins</system> |
26 | 27 | <url>https://integration.mediawiki.org/ci/</url> |
27 | 28 | </ciManagement> |
| 29 | + |
28 | 30 | <issueManagement> |
29 | 31 | <url>https://bugzilla.wikimedia.org</url> |
30 | 32 | <system>bugzilla</system> |
31 | 33 | </issueManagement> |
32 | 34 | |
33 | | - |
34 | 35 | <properties> |
35 | 36 | <!-- libraries versions --> |
36 | 37 | |
— | — | @@ -40,23 +41,22 @@ |
41 | 42 | --> |
42 | 43 | <junit.version>4.10</junit.version> |
43 | 44 | <lucene.version>2.4.1</lucene.version> |
| 45 | + <antlr.version>3.4</antlr.version> |
44 | 46 | |
45 | | - |
46 | 47 | <!-- misc project properties --> |
47 | 48 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
48 | 49 | <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding> |
49 | 50 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
50 | | - <!-- >javac.src.version>1.6</javac.src.version> |
51 | | - <javac.target.version>1.6</javac.target.version --> |
| 51 | + <javac.src.version>javac.src.version>1.6</javac.src.version> |
| 52 | + <javac.target.version>1.6</javac.target.version> |
52 | 53 | <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ssZ</maven.build.timestamp.format> |
53 | 54 | <implementation.build>${maven.build.timestamp}</implementation.build> |
54 | 55 | </properties> |
55 | 56 | |
| 57 | + <build> <defaultGoal>install</defaultGoal> |
| 58 | + |
| 59 | + <pluginManagement> |
56 | 60 | |
57 | | - |
58 | | - <build> |
59 | | - |
60 | | - <pluginManagement> |
61 | 61 | <plugins> |
62 | 62 | <plugin> |
63 | 63 | <groupId>org.apache.maven.plugins</groupId> |
— | — | @@ -85,15 +85,28 @@ |
86 | 86 | <show>protected</show> |
87 | 87 | <linksource>true</linksource> |
88 | 88 | </configuration> |
89 | | - </plugin> |
| 89 | + </plugin> |
90 | 90 | |
91 | 91 | |
| 92 | + <plugin> |
| 93 | + |
| 94 | + <groupId>org.antlr</groupId> |
| 95 | + <artifactId>antlr3-maven-plugin</artifactId> |
| 96 | + <version>${antlr.version}</version> |
| 97 | + <executions> |
| 98 | + <execution> |
| 99 | + <goals> |
| 100 | + <goal>antlr</goal> |
| 101 | + </goals> |
| 102 | + </execution> |
| 103 | + </executions> |
| 104 | + |
| 105 | + </plugin> |
92 | 106 | |
93 | 107 | </plugins> |
94 | 108 | |
95 | 109 | |
96 | 110 | |
97 | | - |
98 | 111 | </pluginManagement> |
99 | 112 | |
100 | 113 | <plugins> |
— | — | @@ -102,10 +115,11 @@ |
103 | 116 | <artifactId>maven-javadoc-plugin</artifactId> |
104 | 117 | |
105 | 118 | <configuration> |
| 119 | + <!-- javadocs against which to link our own javadoc --> |
106 | 120 | <links> |
107 | 121 | <link>http://commons.apache.org/lang/api</link> |
108 | 122 | <link>http://lucene.apache.org/java/3_5_0/api</link> |
109 | | - <link>http://java.sun.com/j2se/1.5.0/docs/api</link> |
| 123 | + <link>http://java.sun.com/j2se/1.6.0/docs/api</link> |
110 | 124 | </links> |
111 | 125 | <show>protected</show> |
112 | 126 | <linksource>true</linksource> |
— | — | @@ -115,6 +129,9 @@ |
116 | 130 | </build> |
117 | 131 | |
118 | 132 | <dependencies> |
| 133 | + |
| 134 | +<!-- JUnit for Unit Testing --> |
| 135 | + |
119 | 136 | <dependency> |
120 | 137 | <groupId>junit</groupId> |
121 | 138 | <artifactId>junit</artifactId> |
— | — | @@ -122,23 +139,36 @@ |
123 | 140 | <scope>test</scope> |
124 | 141 | </dependency> |
125 | 142 | |
| 143 | +<!-- Hamcrest for assertThat testing format--> |
| 144 | + |
| 145 | + <dependency> |
| 146 | + <groupId>org.hamcrest</groupId> |
| 147 | + <artifactId>hamcrest-all</artifactId> |
| 148 | + <version>1.1</version> |
| 149 | + </dependency> |
| 150 | + |
| 151 | +<!-- log4j since java servers should not write to the console --> |
| 152 | + |
126 | 153 | <dependency> |
127 | 154 | <groupId>log4j</groupId> |
128 | 155 | <artifactId>log4j</artifactId> |
129 | 156 | <version>1.2.9</version> |
130 | 157 | </dependency> |
| 158 | + |
| 159 | +<!-- Lucene provides search capabilities --> |
131 | 160 | |
132 | 161 | <dependency> |
133 | 162 | <groupId>org.apache.lucene</groupId> |
134 | | - <artifactId>lucene-analyzers</artifactId> |
| 163 | + <artifactId>lucene-core</artifactId> |
135 | 164 | <version>${lucene.version}</version> |
136 | 165 | </dependency> |
137 | | - |
| 166 | + |
138 | 167 | <dependency> |
139 | 168 | <groupId>org.apache.lucene</groupId> |
140 | | - <artifactId>lucene-core</artifactId> |
| 169 | + <artifactId>lucene-analyzers</artifactId> |
141 | 170 | <version>${lucene.version}</version> |
142 | 171 | </dependency> |
| 172 | + |
143 | 173 | |
144 | 174 | <dependency> |
145 | 175 | <groupId>org.apache.lucene</groupId> |
— | — | @@ -146,6 +176,7 @@ |
147 | 177 | <version>${lucene.version}</version> |
148 | 178 | </dependency> |
149 | 179 | |
| 180 | +<!-- Lucene integration of Snowball Stemmers --> |
150 | 181 | <dependency> |
151 | 182 | <groupId>org.apache.lucene</groupId> |
152 | 183 | <artifactId>lucene-snowball</artifactId> |
— | — | @@ -170,6 +201,7 @@ |
171 | 202 | <version>3.0</version> |
172 | 203 | </dependency> |
173 | 204 | |
| 205 | + <!-- web services |
174 | 206 | <dependency> |
175 | 207 | <groupId>ws-commons-util</groupId> |
176 | 208 | <artifactId>ws-commons-util</artifactId> |
— | — | @@ -179,12 +211,11 @@ |
180 | 212 | <dependency> |
181 | 213 | <groupId>mysql</groupId> |
182 | 214 | <artifactId>mysql-connector-java</artifactId> |
183 | | - <!-- |
| 215 | + |
184 | 216 | <version>5.1.18</version> |
185 | | - --> |
186 | | - <version>3.1.11</version> |
| 217 | + |
187 | 218 | </dependency> |
188 | | - |
| 219 | + --> |
189 | 220 | |
190 | 221 | |
191 | 222 | <dependency> |
— | — | @@ -194,9 +225,15 @@ |
195 | 226 | <scope>system</scope> |
196 | 227 | <systemPath>${project.basedir}/lib/mwdumper.jar</systemPath> |
197 | 228 | </dependency> |
198 | | - |
199 | | - |
200 | | - </dependencies> |
| 229 | + |
| 230 | + <!-- We need to have the ANTLR runtime jar when running and compiling. --> |
| 231 | + <dependency> |
| 232 | + <groupId>org.antlr</groupId> |
| 233 | + <artifactId>antlr-runtime</artifactId> |
| 234 | + <version>${antlr.version}</version> |
| 235 | + <scope>compile</scope> |
| 236 | + </dependency> |
| 237 | + </dependencies> |
201 | 238 | |
202 | 239 | <reporting> |
203 | 240 | <plugins> |