Hi,

I think what should work is to use variables/properties defined in the pom:
In the prov model you have
[variables]
   mpx.repository=${foo}

in the pom you have
<properties>
   <foo>${sling.home}/repository</foo>
</properties>

and then you set <usePomVariables>true</usePomVariables> for the
slingstart maven plugin configuration.

And finally you can use the maven mechanisms to override the property
value for foo.

Regards
Carsten

Robert Munteanu wrote
> Hi,
> 
> I'm trying to set a 'dynamic' property in the slingstart model, based
> on sling.home:
> 
> [variables]
>   mpx.repository.home=${sling.home}/repository
> 
> The idea is to allow the user to redefine it at runtime via system
> properties:
> 
> java -jar ... -Dmpx.repository.home=/some/place
> 
> Is this possible using slingstart? If not, what solutions do I have to
> enable this kind of usage?
> 
> Thanks,
> 
> Robert
> 


 

-- 
Carsten Ziegeler
Adobe Research Switzerland
[email protected]

Reply via email to