Skip to content

Commit

Permalink
Fix maven build from different directories (apache#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael-telles committed Oct 12, 2021
1 parent cb5294e commit 2fffd9c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
4 changes: 2 additions & 2 deletions java/flight/flight-grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
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">
<parent>
<artifactId>arrow-java-root</artifactId>
<artifactId>arrow-flight</artifactId>
<groupId>org.apache.arrow</groupId>
<version>6.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
25 changes: 25 additions & 0 deletions java/flight/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,34 @@

<packaging>pom</packaging>

<properties>
<dep.grpc.version>1.30.2</dep.grpc.version>
<dep.protobuf.version>3.17.3</dep.protobuf.version>
</properties>

<modules>
<module>flight-core</module>
<module>flight-grpc</module>
<module>flight-sql</module>
</modules>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${dep.protobuf.version}:exe:${os.detected.classifier}
</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${dep.grpc.version}:exe:${os.detected.classifier}
</pluginArtifact>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
13 changes: 0 additions & 13 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
<dep.hadoop.version>2.7.1</dep.hadoop.version>
<dep.fbs.version>1.12.0</dep.fbs.version>
<dep.avro.version>1.10.0</dep.avro.version>
<dep.grpc.version>1.30.2</dep.grpc.version>
<dep.protobuf.version>3.17.3</dep.protobuf.version>
<arrow.vector.classifier />
<forkCount>2</forkCount>
<checkstyle.failOnViolation>true</checkstyle.failOnViolation>
Expand Down Expand Up @@ -508,17 +506,6 @@
</lifecycleMappingMetadata>
</configuration>
</plugin>

<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:${dep.protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${dep.grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit 2fffd9c

Please sign in to comment.