pom.xml 4.6 KB
Newer Older
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements.  See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership.  The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License.  You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<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>

	<parent>
		<groupId>org.apache.flink</groupId>
26
		<artifactId>flink-libraries</artifactId>
27
		<version>1.2-SNAPSHOT</version>
28 29
		<relativePath>..</relativePath>
	</parent>
30

31
	<artifactId>flink-ml_2.10</artifactId>
32 33 34 35 36
	<name>flink-ml</name>

	<packaging>jar</packaging>

	<dependencies>
37 38 39

		<!-- core dependencies -->

40 41
		<dependency>
			<groupId>org.apache.flink</groupId>
42
			<artifactId>flink-scala_2.10</artifactId>
43
			<version>${project.version}</version>
44
			<scope>provided</scope>
45 46
		</dependency>

47
		<dependency>
48
			<groupId>org.scalanlp</groupId>
49
			<artifactId>breeze_${scala.binary.version}</artifactId>
50
			<version>0.12</version>
51 52
		</dependency>

53
		<!-- test dependencies -->
54 55

		<dependency>
56 57
			<groupId>org.scalatest</groupId>
			<artifactId>scalatest_${scala.binary.version}</artifactId>
58 59
			<scope>test</scope>
		</dependency>
60

61 62
		<dependency>
			<groupId>org.apache.flink</groupId>
63
			<artifactId>flink-clients_2.10</artifactId>
64 65 66 67
			<version>${project.version}</version>
			<scope>test</scope>
		</dependency>

68 69
		<dependency>
			<groupId>org.apache.flink</groupId>
70
			<artifactId>flink-test-utils_2.10</artifactId>
71 72 73
			<version>${project.version}</version>
			<scope>test</scope>
		</dependency>
74 75
	</dependencies>

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
	<profiles>
		<profile>
			<id>windows</id>
			<activation>
				<os>
					<family>windows</family>
				</os>
			</activation>
			<properties>
				<suffix.test>"(?&lt;!(IT|Integration))(Test|Suite|Case)"</suffix.test>
				<suffix.it>"(IT|Integration)(Test|Suite|Case)"</suffix.it>
			</properties>
		</profile>
		<profile>
			<id>default</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<suffix.test>(?&lt;!(IT|Integration))(Test|Suite|Case)</suffix.test>
				<suffix.it>(IT|Integration)(Test|Suite|Case)</suffix.it>
			</properties>
		</profile>
	</profiles>

101 102 103
	<build>
		<plugins>
			<plugin>
104 105 106
				<groupId>net.alchim31.maven</groupId>
				<artifactId>scala-maven-plugin</artifactId>
				<version>3.2.2</version>
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
				<executions>
					<execution>
						<goals>
							<goal>compile</goal>
							<goal>testCompile</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.scalatest</groupId>
				<artifactId>scalatest-maven-plugin</artifactId>
				<version>1.0</version>
				<configuration>
					<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
					<stdout>W</stdout> <!-- Skip coloring output -->
				</configuration>
				<executions>
					<execution>
						<id>scala-test</id>
						<goals>
							<goal>test</goal>
						</goals>
131
						<configuration>
132
							<suffixes>${suffix.test}</suffixes>
133
							<argLine>-Xms256m -Xmx800m -Dlog4j.configuration=${log4j.configuration} -Dlog.dir=${log.dir} -Dmvn.forkNumber=1 -XX:-UseGCOverheadLimit</argLine>
134 135 136 137 138 139 140 141 142
						</configuration>
					</execution>
					<execution>
						<id>integration-test</id>
						<phase>integration-test</phase>
						<goals>
							<goal>test</goal>
						</goals>
						<configuration>
143
							<suffixes>${suffix.it}</suffixes>
144
							<argLine>-Xms256m -Xmx800m -Dlog4j.configuration=${log4j.configuration} -Dlog.dir=${log.dir} -Dmvn.forkNumber=1 -XX:-UseGCOverheadLimit</argLine>
145
						</configuration>
146 147 148 149
					</execution>
				</executions>
			</plugin>

150
			<!-- Scala Code Style, most of the configuration done via plugin management -->
151 152 153 154 155 156 157 158 159 160
			<plugin>
				<groupId>org.scalastyle</groupId>
				<artifactId>scalastyle-maven-plugin</artifactId>
				<configuration>
					<configLocation>${project.basedir}/../../tools/maven/scalastyle-config.xml</configLocation>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>