Files
nixpkgs/pkgs/by-name/cr/cratedb/fix-poms.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

113 lines
4.1 KiB
Diff

From c8570f7811dda8eb4c6314c54976afa8ebe5ffbf Mon Sep 17 00:00:00 2001
From: Leah Amelia Chen <hi@pluie.me>
Date: Sun, 15 Dec 2024 20:58:33 +0200
Subject: [PATCH] various POM fixes
This patch does a number of things:
1. Remove the `git-commit-id-maven-plugin` and avoid needing to have a working Git repository and
Git in order to compile;
2. Remove `toolchains-maven-plugin` and avoid downloading Temurin;
3. Patch the module path of the JLink plugin to avoid a build failure;
4. Disable failing tests that can't be disabled via `-Dtest`, as they are within the `server` subproject.
diff --git a/app/pom.xml b/app/pom.xml
index 5a0de98..5e511d9 100644
--- a/app/pom.xml
+++ b/app/pom.xml
@@ -14,7 +14,7 @@
<properties>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd-HH-mm</maven.build.timestamp.format>
- <tarball.version>${project.version}-${timestamp}-${git.commit.id.abbrev}</tarball.version>
+ <tarball.version>${project.version}</tarball.version>
<!-- Use native git instead of jGit to be able to build & release from worktrees (an older version of CrateDB) -->
<!-- Open issue: https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/215 -->
@@ -72,29 +72,6 @@
<sha256>9bf415bef68c39b3fb0a845ade2c86cb707d0457eba7badc6b9dd29ba7e773f0</sha256>
</configuration>
</plugin>
- <plugin>
- <groupId>io.github.git-commit-id</groupId>
- <artifactId>git-commit-id-maven-plugin</artifactId>
- <version>${versions.plugin.git-commit}</version>
- <executions>
- <execution>
- <id>get-the-git-infos</id>
- <goals>
- <goal>revision</goal>
- </goals>
- <phase>initialize</phase>
- </execution>
- </executions>
- <configuration>
- <generateGitPropertiesFile>true</generateGitPropertiesFile>
- <generateGitPropertiesFilename>${project.build.outputDirectory}/crate-build.properties</generateGitPropertiesFilename>
- <includeOnlyProperties>
- <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
- <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
- </includeOnlyProperties>
- <commitIdGenerationMode>full</commitIdGenerationMode>
- </configuration>
- </plugin>
</plugins>
</build>
diff --git a/pom.xml b/pom.xml
index 3c9910c..304aa90 100644
--- a/pom.xml
+++ b/pom.xml
@@ -175,26 +175,6 @@
</ruleSet>
</configuration>
</plugin>
- <plugin>
- <groupId>org.mvnsearch</groupId>
- <artifactId>toolchains-maven-plugin</artifactId>
- <version>${versions.plugin.toolchains}</version>
- <executions>
- <execution>
- <goals>
- <goal>toolchain</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <toolchains>
- <jdk>
- <version>${versions.jdk}</version>
- <vendor>temurin</vendor>
- </jdk>
- </toolchains>
- </configuration>
- </plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
@@ -242,6 +222,9 @@
<version>${versions.plugin.jlink}</version>
<extensions>true</extensions>
<configuration>
+ <modulePaths>
+ <modulePath>@jdk@/lib/openjdk/jmods</modulePath>
+ </modulePaths>
<addModules>
<addModule>java.base</addModule>
<addModule>java.logging</addModule>
diff --git a/server/pom.xml b/server/pom.xml
index acc86cb..5297e01 100644
--- a/server/pom.xml
+++ b/server/pom.xml
@@ -25,6 +25,11 @@
<configuration>
<!-- override setting from parent pom -->
<skip>false</skip>
+ <excludes>
+ <!-- Failing tests -->
+ <exclude>NodeStatsITest</exclude>
+ <exclude>CopyIntegrationTest</exclude>
+ </excludes>
</configuration>
</plugin>
<plugin>