buildMaven: Check for authenticated attribute

The `authenticated` attribute is not always present in the
`project-info.json` produced by maven2nix[0]

We therefore check for its presence, and default it to false.

[0]: https://github.com/NixOS/mvn2nix-maven-plugin/issues/5#issuecomment-311846950

+3 -2
+3 -2
pkgs/build-support/build-maven.nix
··· 16 16 script = writeText "build-maven-repository.sh" '' 17 17 ${lib.concatStrings (map (dep: let 18 18 inherit (dep) 19 - url sha1 groupId artifactId version 20 - authenticated metadata repository-id; 19 + url sha1 groupId artifactId 20 + version metadata repository-id; 21 21 22 22 versionDir = dep.unresolved-version or version; 23 + authenticated = dep.authenticated or false; 23 24 24 25 fetch = (if authenticated then requireFile else fetchurl) { 25 26 inherit url sha1;