Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 329 lines (326 sloc) 9.499 kb
5994573 Add a maven pomfile
Steven Scott authored
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>
4 <groupId>solandra</groupId>
5 <artifactId>solandra</artifactId>
6 <version>0.0.1-SNAPSHOT</version>
7
8 <properties>
9 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
10 <appDir>${project.build.directory}/solandra-app</appDir>
f9261aa add long tests
Steven Scott authored
11 <skipLongTests>true</skipLongTests>
5994573 Add a maven pomfile
Steven Scott authored
12 </properties>
13
14 <build>
15 <sourceDirectory>src</sourceDirectory>
16 <testSourceDirectory>test</testSourceDirectory>
17 <testResources>
18 <testResource>
19 <directory>resources</directory>
20 </testResource>
21 </testResources>
22 <plugins>
23 <plugin>
24 <groupId>org.codehaus.mojo</groupId>
25 <artifactId>build-helper-maven-plugin</artifactId>
26 <version>1.7</version>
27 <executions>
28 <execution>
29 <phase>generate-sources</phase>
30 <goals>
31 <goal>add-source</goal>
32 </goals>
33 <configuration>
34 <sources>
35 <source>thrift/gen-java</source>
36 </sources>
37 </configuration>
38 </execution>
39 </executions>
40 </plugin>
41 <plugin>
42 <artifactId>maven-compiler-plugin</artifactId>
43 <version>2.5.1</version>
44 <configuration>
45 <source>1.6</source>
46 <target>1.6</target>
47 </configuration>
48 </plugin>
49 <plugin>
50 <artifactId>maven-jar-plugin</artifactId>
51 <version>2.4</version>
52 <configuration>
53 <finalName>solandra</finalName>
54 </configuration>
55 </plugin>
56 <plugin>
57 <artifactId>maven-dependency-plugin</artifactId>
58 <version>2.4</version>
59 <executions>
60 <execution>
61 <id>copy-deps</id>
62 <phase>package</phase>
63 <goals>
64 <goal>copy-dependencies</goal>
65 </goals>
66 <configuration>
67 <outputDirectory>${appDir}/lib</outputDirectory>
68 </configuration>
69 </execution>
70 </executions>
71 </plugin>
72 <plugin>
73 <artifactId>maven-resources-plugin</artifactId>
74 <version>2.5</version>
75 <executions>
76 <execution>
77 <id>copy-solandra-jar</id>
78 <phase>package</phase>
79 <goals>
80 <goal>copy-resources</goal>
81 </goals>
82 <configuration>
83 <outputDirectory>${appDir}/lib</outputDirectory>
84 <resources>
85 <resource>
86 <directory>${project.build.directory}</directory>
87 <includes>
88 <include>solandra.jar</include>
89 </includes>
90 </resource>
91 </resources>
92 </configuration>
93 </execution>
94 <execution>
95 <id>copy-configs</id>
96 <phase>package</phase>
97 <goals>
98 <goal>copy-resources</goal>
99 </goals>
100 <configuration>
101 <outputDirectory>${appDir}/conf</outputDirectory>
102 <resources>
103 <resource>
104 <directory>resources/solr</directory>
105 <includes>
106 <include>solrconfig.xml</include>
107 <include>schema.xml</include>
108 <include>*.txt</include>
109 <include>jetty.xml</include>
110 <include>jetty-logging.xml</include>
111 </includes>
112 </resource>
113 <resource>
114 <directory>resources</directory>
115 <includes>
116 <include>solandra.properties</include>
117 </includes>
118 </resource>
119 <resource>
120 <directory>resources/cassandra</directory>
121 <includes>
122 <include>solandra-env.sh</include>
123 <include>cassandra.yaml</include>
124 <include>log4j-tools.properties</include>
125 <include>log4j-server.properties</include>
126 </includes>
127 </resource>
128 </resources>
129 </configuration>
130 </execution>
131 <execution>
132 <id>copy-bin</id>
133 <phase>package</phase>
134 <goals>
135 <goal>copy-resources</goal>
136 </goals>
137 <configuration>
138 <outputDirectory>${appDir}/bin</outputDirectory>
139 <resources>
140 <resource>
141 <directory>resources/cassandra</directory>
142 <includes>
143 <include>solandra</include>
144 <include>cassandra-cli</include>
145 <include>nodetool</include>
146 <include>solandra.in.sh</include>
147 <include>solandra.bat</include>
148 </includes>
149 </resource>
150 </resources>
151 </configuration>
152 </execution>
153 </executions>
154 </plugin>
155 <plugin>
156 <artifactId>maven-antrun-plugin</artifactId>
157 <version>1.7</version>
158 <executions>
159 <execution>
160 <phase>package</phase>
161 <goals>
162 <goal>run</goal>
163 </goals>
164 <configuration>
165 <target>
166 <chmod dir="${appDir}/bin" perm="755"
167 includes="solandra,cassandra-cli,nodetool" />
168 </target>
169 </configuration>
170 </execution>
171 </executions>
172 </plugin>
173 <plugin>
174 <artifactId>maven-surefire-plugin</artifactId>
175 <version>2.12</version>
176 <executions>
177 <execution>
f9261aa add long tests
Steven Scott authored
178 <id>tests</id>
5994573 Add a maven pomfile
Steven Scott authored
179 <phase>integration-test</phase>
180 <goals>
181 <goal>test</goal>
182 </goals>
183 <configuration>
184 <argLine>-Xmx1G
185 -Dlog4j.configuration=file:///${basedir}/resources/cassandra/log4j-tools.properties
186 -Dlog4j.defaultInitOverride=true</argLine>
187 <includes>
188 <include>**/SolandraTests.java</include>
189 </includes>
190 <redirectTestOutputToFile>true</redirectTestOutputToFile>
191 <additionalClasspathElements>
192 <additionalClasspathElement>${appDir}</additionalClasspathElement>
193 <additionalClasspathElement>${appDir}/conf</additionalClasspathElement>
194 </additionalClasspathElements>
195 </configuration>
196 </execution>
f9261aa add long tests
Steven Scott authored
197 <execution>
198 <id>long-tests</id>
199 <phase>integration-test</phase>
200 <goals>
201 <goal>test</goal>
202 </goals>
203 <configuration>
204 <argLine>-Xmx1G
205 -Dlog4j.configuration=file:///${basedir}/resources/cassandra/log4j-tools.properties
206 -Dlog4j.defaultInitOverride=true</argLine>
207 <includes>
208 <include>**/IndexManagerTests.java</include>
209 </includes>
210 <skipTests>${skipLongTests}</skipTests>
211 <redirectTestOutputToFile>true</redirectTestOutputToFile>
212 <additionalClasspathElements>
213 <additionalClasspathElement>${appDir}</additionalClasspathElement>
214 <additionalClasspathElement>${appDir}/conf</additionalClasspathElement>
215 </additionalClasspathElements>
216 </configuration>
217 </execution>
5994573 Add a maven pomfile
Steven Scott authored
218 </executions>
219 </plugin>
220 </plugins>
221 <pluginManagement>
222 <plugins>
223 <!--This plugin's configuration is used to store Eclipse m2e settings
224 only. It has no influence on the Maven build itself. -->
225 <plugin>
226 <groupId>org.eclipse.m2e</groupId>
227 <artifactId>lifecycle-mapping</artifactId>
228 <version>1.0.0</version>
229 <configuration>
230 <lifecycleMappingMetadata>
231 <pluginExecutions>
232 <pluginExecution>
233 <pluginExecutionFilter>
234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-dependency-plugin</artifactId>
236 <versionRange>[2.1,)</versionRange>
237 <goals>
238 <goal>copy-dependencies</goal>
239 </goals>
240 </pluginExecutionFilter>
241 <action>
242 <ignore />
243 </action>
244 </pluginExecution>
245 </pluginExecutions>
246 </lifecycleMappingMetadata>
247 </configuration>
248 </plugin>
249 </plugins>
250 </pluginManagement>
251 </build>
252 <dependencies>
253 <dependency>
254 <groupId>junit</groupId>
255 <artifactId>junit</artifactId>
256 <version>4.10</version>
257 <scope>test</scope>
258 </dependency>
259 <dependency>
260 <groupId>org.slf4j</groupId>
261 <artifactId>slf4j-api</artifactId>
262 <version>1.6.4</version>
263 </dependency>
264 <dependency>
265 <groupId>org.slf4j</groupId>
266 <artifactId>slf4j-log4j12</artifactId>
267 <version>1.6.4</version>
268 <scope>runtime</scope>
269 </dependency>
270 <dependency>
271 <groupId>commons-collections</groupId>
272 <artifactId>commons-collections</artifactId>
273 <version>3.2.1</version>
274 </dependency>
275 <dependency>
276 <groupId>org.apache.solr</groupId>
277 <artifactId>solr-core</artifactId>
278 <version>3.4.0</version>
279 <exclusions>
280 <exclusion>
281 <groupId>org.slf4j</groupId>
282 <artifactId>slf4j-api</artifactId>
283 </exclusion>
284 <exclusion>
285 <groupId>org.slf4j</groupId>
286 <artifactId>slf4j-jdk14</artifactId>
287 </exclusion>
288 </exclusions>
289 </dependency>
290 <dependency>
291 <groupId>org.mortbay.jetty</groupId>
292 <artifactId>jetty</artifactId>
293 <version>6.1.26</version>
294 </dependency>
295 <dependency>
296 <groupId>org.mortbay.jetty</groupId>
297 <artifactId>jetty-util</artifactId>
298 <version>6.1.26</version>
299 </dependency>
300 <dependency>
301 <groupId>org.mortbay.jetty</groupId>
302 <artifactId>jsp-2.1</artifactId>
303 <version>6.1.14</version>
304 </dependency>
305 <dependency>
306 <groupId>org.apache.cassandra</groupId>
307 <artifactId>cassandra-all</artifactId>
308 <version>1.1.0-beta2</version>
309 <exclusions>
310 <exclusion>
311 <artifactId>slf4j-api</artifactId>
312 <groupId>org.slf4j</groupId>
313 </exclusion>
314 </exclusions>
315 </dependency>
316 <!-- TODO: Added only because missing from the Cassandra pom. Can be delete here when added by Cassandra. -->
317 <dependency>
318 <groupId>com.yammer.metrics</groupId>
319 <artifactId>metrics-core</artifactId>
320 <version>2.0.3</version>
321 </dependency>
322 <dependency>
323 <groupId>edu.stanford.ppl</groupId>
324 <artifactId>snaptree</artifactId>
325 <version>0.1</version>
326 </dependency>
327 </dependencies>
328 </project>
Something went wrong with that request. Please try again.