[ https://issues.apache.org/jira/browse/MNG-6437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17768143#comment-17768143 ]
ASF GitHub Bot commented on MNG-6437: ------------------------------------- gnodet commented on PR #812: URL: https://github.com/apache/maven/pull/812#issuecomment-1731946609 > Well, built your branch and tested on: > > ``` > osipovmi@deblndw011x:/tmp/ма вен (MNG-6437 =) > $ ../apache-maven-4.0.0-alpha-8-SNAPSHOT/bin/mvn -v > Apache Maven 4.0.0-alpha-8-SNAPSHOT (521a57d768f1aab6dc792ee1a234c9b70267f3a2) > Maven home: /tmp/apache-maven-4.0.0-alpha-8-SNAPSHOT > Java version: 1.8.0_372, vendor: OpenJDK BSD Porting Team, runtime: /usr/local/openjdk8/jre > Default locale: de_DE, platform encoding: UTF-8 > OS name: "freebsd", version: "12.4-stable", arch: "amd64", family: "unix" > ``` > > It fails in mid-air: > > ``` > [ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.041 s <<< FAILURE! > Generic .uri suffix to get the URI representation of any file property > ---------------------------------------------------------------------- > > Key: MNG-6437 > URL: https://issues.apache.org/jira/browse/MNG-6437 > Project: Maven > Issue Type: Improvement > Components: Core > Affects Versions: 3.5.4 > Reporter: Claude Brisson > Assignee: Guillaume Nodet > Priority: Major > Fix For: 4.0.x-candidate, 4.0.0 > > > It's impossible to properly generate, for instance, a java policy file which > needs files URIs, using either Cargo properties and filtered config files, or > just filtered resources. > In both cases, the problem is the impossibility to generate proper URIs when > expanding Maven properties (see also MNG-3760). > The candidate feature is to add a way to explicitly request the URI when > expanding a property by means of a {{.uri}} suffix. The underlying > {{getUri()}} method should rely on the correct {{Path#toUri()}} and neither > {{File#toUri()}} nor {{File#toString()}}, see the SO reference in MNG-6386. > For instance: > * {{${project.basedir.uri}}} instead of the broken {{${project.baseUri}}} > (and of course fix MNG-6436 otherwise it's useless) > * {{${project.build.directory.uri}}} > * {{${settings.localRepository.uri}}} > * etc > -- This message was sent by Atlassian Jira (v8.20.10#820010)