| <?xml version="1.0"?> |
| <!-- |
| 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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.reef</groupId> |
| <artifactId>reef-project</artifactId> |
| <version>0.15.1</version> |
| <relativePath>../../..</relativePath> |
| </parent> |
| |
| <properties> |
| <rootPath>${basedir}/../../..</rootPath> |
| </properties> |
| |
| <artifactId>reef-common</artifactId> |
| <name>REEF Common</name> |
| |
| |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <configuration> |
| <configLocation>lang/java/reef-common/src/main/resources/checkstyle-strict.xml</configLocation> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>generate-sources</id> |
| <phase>generate-sources</phase> |
| <configuration> |
| <target> |
| <exec executable="protoc" outputproperty="protoc.version"> |
| <arg value="--version"/> |
| </exec> |
| <fail message="${protobuf.version} expected, but protoc version was: ${protoc.version}"> |
| <condition> |
| <not> |
| <contains substring="${protobuf.version}" string="${protoc.version}"/> |
| </not> |
| </condition> |
| </fail> |
| <mkdir dir="target/generated-sources/proto"/> |
| <exec executable="protoc"> |
| <arg value="--proto_path=src/main/proto/"/> |
| <arg value="--java_out=target/generated-sources/proto"/> |
| <arg value="src/main/proto/reef_service_protos.proto"/> |
| <arg value="src/main/proto/evaluator_runtime.proto"/> |
| <arg value="src/main/proto/client_runtime.proto"/> |
| <arg value="src/main/proto/reef_protocol.proto"/> |
| </exec> |
| </target> |
| <sourceRoot>target/generated-sources/proto</sourceRoot> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>add-source</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>target/generated-sources/proto</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| <resources> |
| <resource> |
| <directory>${basedir}/src/main/resources</directory> |
| <includes> |
| <include>version.properties</include> |
| </includes> |
| <filtering>true</filtering> |
| </resource> |
| <resource> |
| <directory>${basedir}/src/main/resources</directory> |
| <excludes> |
| <exclude>version.properties</exclude> |
| </excludes> |
| <filtering>false</filtering> |
| </resource> |
| </resources> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>reef-annotations</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>reef-utils</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>wake</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>tang</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>net.jcip</groupId> |
| <artifactId>jcip-annotations</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| <version>${jsr305.version}</version> |
| </dependency> |
| </dependencies> |
| |
| </project> |