[ https://issues.apache.org/jira/browse/MNG-7420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MNG-7420. ------------------------------- Resolution: Not A Bug That is an intentional change. > Property interpolation in repository <url> no longer works > ---------------------------------------------------------- > > Key: MNG-7420 > URL: https://issues.apache.org/jira/browse/MNG-7420 > Project: Maven > Issue Type: Bug > Components: Profiles, Settings > Affects Versions: 4.0.0-alpha-1 > Reporter: Carsten Pfeiffer > Priority: Minor > > We're using the Jenkins "Maven Repository Server" Plugin that provides > automatic upstream repository configuration for a downstream build job. > The plugin basically hosts a repository with the artifacts of the upstream > job for consumption by a downstream job. > It configures the upstream repository by setting a system property > {{Jenkins.Repository}} which is configured in a {{<repository>}} section e.g. > in {{settings.xml}} or {{pom.xml}}: > {code} > <repository> > <id>upstream</id> > <url>${env.Jenkins.Repository}</url> > <releases> > <enabled>true</enabled> > </releases> > <snapshots> > <enabled>true</enabled> > </snapshots> > </repository> > {code} > With Maven 4.0.0-alpha1 (69d6c6d5a2886bd76fa9d0e922677d4654d1d90b). this does > not work anymore: > {code} > [ERROR] The project de.gebit.test:3.2.0-SNAPSHOT > (/home/my/projects/test/pom.xml) has 2 errors > [ERROR] > 'profiles.profile[jenkins-maven-upstream].repositories.repository.[jenkins].url' > contains an expression but should be a constant. @ de.gebit.test-parent:3.1.1 > [ERROR] > 'profiles.profile[jenkins-maven-upstream].pluginRepositories.pluginRepository.[jenkins].url' > contains an expression but should be a constant. @ de.gebit.test-parent:3.1.1 > {code} > It seems that interpolation of the url is no longer possible. -- This message was sent by Atlassian Jira (v8.20.1#820001)