[
https://issues.apache.org/jira/browse/SLING-8221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16745030#comment-16745030
]
David Bosschaert edited comment on SLING-8221 at 1/17/19 1:16 PM:
------------------------------------------------------------------
Note that this should be applied to both the slingfeature-maven-plugin as well
as the slingstart-maven-plugin as they both perform this substitution.
(slingstart-maven-plugin as its converting the feature model to the
provisioning model)
was (Author: bosschaert):
Note that this should be applied to both the slingfeature-maven-plugin as well
as the slingstart-maven-plugin as they both perform this substitution.
> Feature model does not override from command line a property if set in pom.xml
> ------------------------------------------------------------------------------
>
> Key: SLING-8221
> URL: https://issues.apache.org/jira/browse/SLING-8221
> Project: Sling
> Issue Type: Bug
> Components: Feature Model
> Affects Versions: Slingstart Maven Plugin 1.8.2, slingfeature-maven-plugin
> 0.8.0
> Reporter: Davide Giannella
> Assignee: David Bosschaert
> Priority: Major
> Fix For: Slingstart Maven Plugin 1.8.4, slingfeature-maven-plugin
> 0.8.2
>
>
> If you set a property in the pom.xml in the format of
> {code:xml}
> <properties>
> <oak.version>1.2.3</oak.version>
> </properties>
> {code}
> and you use it in a json file to specify a dependency
> {code}
> ...
> {
> "id":"org.apache.jackrabbit:oak-core-spi:${oak.version}",
> "start-level":"15"
> },
> ...
> {code}
> if you then try to override it from command line with something like
> {noformat}
> mvn clean verify -Doak.version=4.5.6
> {noformat}
> the generated jar will eventually have the version {{1.2.3}}
>
> /cc [~bosschaert], [~kpauls]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)