Repository design: we describe a design framework and infrastructure to support the model-based repository lifecycle. Modeling: we propose a modeling language to specify a model-based repository independent from end-development applications and execution platforms. Tooling: we describe an operational architecture for development tools to support the proposed approach. Validation: we apply the approach to a resource-constrained embedded system (RCES) in the context of the TERESA project : Railway Systems.