mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
maven: improve buildMavenPackage offline mode
The maven `dependency:go-offline` plugin has various issues (see https://issues.apache.org/jira/browse/MDEP-204 and other issues in that tracker), which the dedicated plugin from https://github.com/qaware/go-offline-maven-plugin largely fixes. I have confirmed that for an application I'm packaging outside of nixpkgs, dependency-track, this indeed makes the build work while it didn't with `dependency:go-offline`. The offline mode is only used in one place in nixpkgs, for lemminx. That build still succeeds and the program starts, though I haven't tested further.
This commit is contained in:
parent
e44462d602
commit
3ac1c95cfa
|
@ -35,7 +35,7 @@ maven.buildMavenPackage rec {
|
|||
"org.junit.platform:junit-platform-launcher:1.10.0"
|
||||
];
|
||||
|
||||
mvnHash = "sha256-sIiCp1AorVQXt13Tq0vw9jGioG3zcQMqqKS/Q0Tf4MQ=";
|
||||
mvnHash = "sha256-LSnClLdAuqSyyT7O4f4aVaPBxdkkZQz60wTmqwQuzdU=";
|
||||
|
||||
buildOffline = true;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ let
|
|||
buildPhase = ''
|
||||
runHook preBuild
|
||||
'' + lib.optionalString buildOffline ''
|
||||
mvn dependency:go-offline -Dmaven.repo.local=$out/.m2 ${mvnDepsParameters}
|
||||
mvn de.qaware.maven:go-offline-maven-plugin:1.2.8:resolve-dependencies -Dmaven.repo.local=$out/.m2 ${mvnDepsParameters}
|
||||
|
||||
for artifactId in ${builtins.toString manualMvnArtifacts}
|
||||
do
|
||||
|
|
Loading…
Reference in a new issue