-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
194 lines (180 loc) · 8.27 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.mandar.analysis</groupId>
<artifactId>recsys2014</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<lenskit.eval.scriptDir>${basedir}/src/eval/</lenskit.eval.scriptDir>
<lenskit.eval.dataDir>${basedir}/target/data/</lenskit.eval.dataDir>
<lenskit.eval.analysisDir>${basedir}/target/analysis/</lenskit.eval.analysisDir>
<lenskit.eval.publishDir>${basedir}/src/paper/</lenskit.eval.publishDir>
<!-- The version of LensKit for your project -->
<!-- Note that we use project.version to pick up the version from the
source tree this archetype is being built from. -->
<lenskit.version>2.1-M4</lenskit.version>
<lucene.version>4.8.1</lucene.version>
<!-- The location of the Rscript executable. The default is to search
for Rscript in your PATH. If you need to override this, it should probably
be done in ~/.m2/settings.xml rather than here. -->
<rscript.executable>Rscript</rscript.executable>
<!-- Uncomment and change below to 'yes' if you accept the MovieLens
data terms of service. -->
<!-- <grouplens.mldata.acknowledge>no</grouplens.mldata.acknowledge> -->
</properties>
<dependencies>
<!-- You will automatically get a version of LensKit for your project,
pulled in transitively by the lenskit-eval-maven-plugin. The version you
get is based on the version of the archetype you used to create this project. -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.grouplens.lenskit</groupId>
<artifactId>lenskit-all</artifactId>
<version>${lenskit.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>2.12.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.7</version>
</dependency>
<dependency>
<groupId>org.apache.mahout</groupId>
<artifactId>mahout-core</artifactId>
<version>0.9</version>
</dependency>
<dependency>
<groupId>org.apache.mahout</groupId>
<artifactId>mahout-integration</artifactId>
<version>0.9</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>${lucene.version}</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-queries</artifactId>
<version>${lucene.version}</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers</artifactId>
<version>3.6.2</version>
</dependency>
</dependencies>
<!-- Now we specify the build that will actually execute to make our project
do something cool. The build is a collection of plugins that we execute to
do the work. Note that we run the evaluations using the lenskit-lifecycle,
because we use the lenskit-eval-maven-plugin. The phases of this lifecycle
are lenskit-pre-eval, lenskit-eval, lenskit-post-eval, and lenskit-analyze,
in that order. -->
<build>
<plugins>
<!-- LensKit requires at least Java 1.6 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>make-scripts</id>
<goals><goal>assemble</goal></goals>
<phase>package</phase>
<configuration>
<!--<extraJvmArguments>-Xmx1600m</extraJvmArguments>-->
<extraJvmArguments>-Dlog4j.configuration=file://${basedir}/log4j.properties</extraJvmArguments>
<repositoryLayout>flat</repositoryLayout>
<programs>
<program>
<name>prep-recsys</name>
<mainClass>org.mandar.analysis.recsys2014.recsysPrep</mainClass>
</program>
<program>
<name>run-recsys</name>
<mainClass>org.mandar.analysis.recsys2014.recsysMain</mainClass>
</program>
<program>
<name>eval-recsys-mahout</name>
<mainClass>org.mandar.analysis.recsys2014.recsysEvalMahout</mainClass>
</program>
</programs>
<assembleDirectory>${project.build.directory}</assembleDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- Run the lenskit eval plugin that does the work of evaluating the
recommenders you are comparing, by running your Groovy script. -->
<plugin>
<artifactId>lenskit-eval-maven-plugin</artifactId>
<groupId>org.grouplens.lenskit</groupId>
<version>2.1-M2</version>
<extensions>true</extensions>
<!-- The default execution for the lenskit-eval-maven-plugin
will run the run-eval goal in the lenskit-eval phase to
run your Groovy script to evaluate the recommenders you
are comparing. The configuration here configures the
plugin, including all of its MOJOs. -->
<configuration>
<script>${lenskit.eval.scriptDir}/eval.groovy</script>
<targets>
<!--<target>draw</target>-->
<target>analyze</target>
</targets>
</configuration>
</plugin>
<!-- This plugin runs LaTeX to produce the PDF version of our paper.
We tie this plugin to the appropriate phase of the lenskit lifecycle. -->
<!--
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>latex-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>do-latex</id>
<phase>lenskit-publish</phase>
<goals>
<goal>latex</goal>
</goals>
</execution>
</executions>
</plugin>
-->
</plugins>
</build>
</project>