Skip to content

Commit 7b31cd8

Browse files
author
Julien Ruaux
committed
build: Fixed mvn build with absent .git folder
1 parent 6a2616d commit 7b31cd8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM docker.io/library/maven:3.8.6-openjdk-18 AS builder
44
WORKDIR /root/trino-redisearch
55
COPY . /root/trino-redisearch
66
ENV MAVEN_FAST_INSTALL="-DskipTests -Dair.check.skip-all=true -Dmaven.javadoc.skip=true -B -q -T C1"
7-
RUN mvn install $MAVEN_FAST_INSTALL
7+
RUN mvn package $MAVEN_FAST_INSTALL
88

99
FROM trinodb/trino:${TRINO_VERSION}
1010

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,13 @@
387387
</execution>
388388
</executions>
389389
</plugin>
390+
<plugin>
391+
<groupId>pl.project13.maven</groupId>
392+
<artifactId>git-commit-id-plugin</artifactId>
393+
<configuration>
394+
<failOnNoGitDirectory>false</failOnNoGitDirectory>
395+
</configuration>
396+
</plugin>
390397
</plugins>
391398
</build>
392399

0 commit comments

Comments
 (0)