|
7 | 7 | <name>Spark-Redis</name>
|
8 | 8 | <description>A Spark library for Redis</description>
|
9 | 9 | <url>http://github.com/RedisLabs/spark-redis</url>
|
| 10 | + |
| 11 | + <properties> |
| 12 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 13 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 14 | + <java.version>1.7</java.version> |
| 15 | + <scala.version>2.10.4</scala.version> |
| 16 | + <jedis.version>2.7.2</jedis.version> |
| 17 | + <spark.version>1.4.1</spark.version> |
| 18 | + </properties> |
| 19 | + |
10 | 20 | <build>
|
11 |
| - <sourceDirectory>src</sourceDirectory> |
12 |
| - <resources> |
13 |
| - <resource> |
14 |
| - <directory>src</directory> |
15 |
| - <excludes> |
16 |
| - <exclude>**/*.java</exclude> |
17 |
| - </excludes> |
18 |
| - </resource> |
19 |
| - </resources> |
20 | 21 | <plugins>
|
21 | 22 | <plugin>
|
22 |
| - <groupId>org.scala-tools</groupId> |
23 |
| - <artifactId>maven-scala-plugin</artifactId> |
| 23 | + <groupId>net.alchim31.maven</groupId> |
| 24 | + <artifactId>scala-maven-plugin</artifactId> |
| 25 | + <version>3.2.2</version> |
| 26 | + <configuration> |
| 27 | + <scalaVersion>${scala.version}</scalaVersion> |
| 28 | + <javacArgs> |
| 29 | + <javacArg>-source</javacArg> |
| 30 | + <javacArg>${java.version}</javacArg> |
| 31 | + <javacArg>-target</javacArg> |
| 32 | + <javacArg>${java.version}</javacArg> |
| 33 | + </javacArgs> |
| 34 | + </configuration> |
24 | 35 | <executions>
|
25 | 36 | <execution>
|
| 37 | + <id>scala-compile</id> |
| 38 | + <phase>process-resources</phase> |
26 | 39 | <goals>
|
27 | 40 | <goal>compile</goal>
|
| 41 | + </goals> |
| 42 | + </execution> |
| 43 | + <execution> |
| 44 | + <id>scala-test-compile</id> |
| 45 | + <phase>process-test-resources</phase> |
| 46 | + <goals> |
28 | 47 | <goal>testCompile</goal>
|
29 | 48 | </goals>
|
30 | 49 | </execution>
|
31 | 50 | </executions>
|
32 | 51 | </plugin>
|
33 | 52 | <plugin>
|
34 |
| - <artifactId>maven-compiler-plugin</artifactId> |
35 |
| - <version>3.3</version> |
| 53 | + <groupId>org.scalastyle</groupId> |
| 54 | + <artifactId>scalastyle-maven-plugin</artifactId> |
| 55 | + <version>0.7.0</version> |
| 56 | + <configuration> |
| 57 | + <verbose>false</verbose> |
| 58 | + <failOnWarning>false</failOnWarning> |
| 59 | + <failOnViolation>true</failOnViolation> |
| 60 | + <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 61 | + <sourceDirectory>${basedir}/src/main/scala</sourceDirectory> |
| 62 | + <testSourceDirectory>${basedir}/src/test/scala</testSourceDirectory> |
| 63 | + <configLocation>${basedir}/scalastyle-config.xml</configLocation> |
| 64 | + <outputFile>${project.basedir}/scalastyle-output.xml</outputFile> |
| 65 | + <outputEncoding>UTF-8</outputEncoding> |
| 66 | + </configuration> |
| 67 | + <executions> |
| 68 | + <execution> |
| 69 | + <phase>compile</phase> |
| 70 | + <goals> |
| 71 | + <goal>check</goal> |
| 72 | + </goals> |
| 73 | + </execution> |
| 74 | + </executions> |
| 75 | + </plugin> |
| 76 | + <plugin> |
| 77 | + <groupId>org.apache.maven.plugins</groupId> |
| 78 | + <artifactId>maven-jar-plugin</artifactId> |
| 79 | + <version>2.6</version> |
| 80 | + <configuration> |
| 81 | + <skipIfEmpty>true</skipIfEmpty> |
| 82 | + </configuration> |
| 83 | + </plugin> |
| 84 | + <plugin> |
| 85 | + <groupId>org.apache.maven.plugins</groupId> |
| 86 | + <artifactId>maven-assembly-plugin</artifactId> |
| 87 | + <version>2.5.4</version> |
36 | 88 | <configuration>
|
37 |
| - <source>1.7</source> |
38 |
| - <target>1.7</target> |
| 89 | + <descriptorRefs> |
| 90 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 91 | + </descriptorRefs> |
39 | 92 | </configuration>
|
| 93 | + <executions> |
| 94 | + <execution> |
| 95 | + <phase>package</phase> |
| 96 | + <goals> |
| 97 | + <goal>single</goal> |
| 98 | + </goals> |
| 99 | + </execution> |
| 100 | + </executions> |
| 101 | + </plugin> |
| 102 | + <plugin> |
| 103 | + <groupId>org.codehaus.mojo</groupId> |
| 104 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 105 | + <version>1.10</version> |
| 106 | + <executions> |
| 107 | + <execution> |
| 108 | + <id>add-scala-sources</id> |
| 109 | + <phase>generate-sources</phase> |
| 110 | + <goals> |
| 111 | + <goal>add-source</goal> |
| 112 | + </goals> |
| 113 | + <configuration> |
| 114 | + <sources> |
| 115 | + <source>src/main/scala</source> |
| 116 | + </sources> |
| 117 | + </configuration> |
| 118 | + </execution> |
| 119 | + <execution> |
| 120 | + <id>add-scala-test-sources</id> |
| 121 | + <phase>generate-test-sources</phase> |
| 122 | + <goals> |
| 123 | + <goal>add-test-source</goal> |
| 124 | + </goals> |
| 125 | + <configuration> |
| 126 | + <sources> |
| 127 | + <source>src/test/scala</source> |
| 128 | + </sources> |
| 129 | + </configuration> |
| 130 | + </execution> |
| 131 | + </executions> |
| 132 | + </plugin> |
| 133 | + <plugin> |
| 134 | + <groupId>org.apache.maven.plugins</groupId> |
| 135 | + <artifactId>maven-site-plugin</artifactId> |
| 136 | + <version>3.4</version> |
| 137 | + <inherited>false</inherited> |
| 138 | + <dependencies> |
| 139 | + <dependency> |
| 140 | + <groupId>org.apache.maven.doxia</groupId> |
| 141 | + <artifactId>doxia-module-markdown</artifactId> |
| 142 | + <version>1.6</version> |
| 143 | + </dependency> |
| 144 | + <dependency> |
| 145 | + <groupId>lt.velykis.maven.skins</groupId> |
| 146 | + <artifactId>reflow-velocity-tools</artifactId> |
| 147 | + <version>1.1.1</version> |
| 148 | + </dependency> |
| 149 | + <!-- Reflow skin requires Velocity >= 1.7 --> |
| 150 | + <dependency> |
| 151 | + <groupId>org.apache.velocity</groupId> |
| 152 | + <artifactId>velocity</artifactId> |
| 153 | + <version>1.7</version> |
| 154 | + </dependency> |
| 155 | + </dependencies> |
40 | 156 | </plugin>
|
41 | 157 | </plugins>
|
42 | 158 | </build>
|
|
49 | 165 | <dependency>
|
50 | 166 | <groupId>redis.clients</groupId>
|
51 | 167 | <artifactId>jedis</artifactId>
|
52 |
| - <version>2.7.2</version> |
| 168 | + <version>${jedis.version}</version> |
53 | 169 | <type>jar</type>
|
54 | 170 | <scope>compile</scope>
|
55 | 171 | </dependency>
|
56 | 172 | <dependency>
|
57 | 173 | <groupId>org.scala-lang</groupId>
|
58 | 174 | <artifactId>scala-library</artifactId>
|
59 |
| - <version>2.10.4</version> |
| 175 | + <version>${scala.version}</version> |
60 | 176 | </dependency>
|
61 | 177 | <dependency>
|
62 | 178 | <groupId>org.apache.spark</groupId>
|
63 | 179 | <artifactId>spark-core_2.10</artifactId>
|
64 |
| - <version>1.4.0</version> |
| 180 | + <version>${spark.version}</version> |
65 | 181 | </dependency>
|
66 | 182 | <dependency>
|
67 | 183 | <groupId>org.apache.spark</groupId>
|
68 | 184 | <artifactId>spark-streaming_2.10</artifactId>
|
69 |
| - <version>1.4.0</version> |
| 185 | + <version>${spark.version}</version> |
70 | 186 | </dependency>
|
71 | 187 | <dependency>
|
72 | 188 | <groupId>org.apache.spark</groupId>
|
73 | 189 | <artifactId>spark-sql_2.10</artifactId>
|
74 |
| - <version>1.4.0</version> |
| 190 | + <version>${spark.version}</version> |
75 | 191 | </dependency>
|
76 | 192 |
|
77 | 193 | </dependencies>
|
|
0 commit comments