[ 
https://issues.apache.org/jira/browse/SLING-6473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15825976#comment-15825976
 ] 

Julian Sedding commented on SLING-6473:
---------------------------------------

The feature can be used e.g. as follows:

{code:java}
// create version resolver based on sling launchpad as defined in the pom
final VersionResolver versionResolver = ProvisioningModelVersionResolver
        .fromSlingfeature(maven("org.apache.sling", 
"org.apache.sling.launchpad").versionAsInProject());
// get the sling engine bundle in the same version that's defined in the sling 
launchpad
mavenBundle("org.apache.sling", 
"org.apache.sling.engine").version(versionResolver);
{code}

> Create a VersionResolver that provides versions from provisioning model files
> -----------------------------------------------------------------------------
>
>                 Key: SLING-6473
>                 URL: https://issues.apache.org/jira/browse/SLING-6473
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: Testing PaxExam 0.0.2
>            Reporter: Julian Sedding
>            Assignee: Julian Sedding
>            Priority: Minor
>
> It would be convenient to have a {{VersionResolver}} for PaxExam tests that 
> is based on the versions defined in the {{launchpad/builder}} module. In more 
> general terms this would be a {{VersionResolver}} that can consume a 
> provisioning model file in order to provide versions for maven artifacts to 
> PaxExam tests.
> The [idea was also discussed on the mailing 
> list|http://sling.markmail.org/thread/o2gkkizydt375poz] a little while ago.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to