Christoph Läubrich created MNG-8253: ---------------------------------------
Summary: ModelReader based Models are not readable anymore later in the build Key: MNG-8253 URL: https://issues.apache.org/jira/browse/MNG-8253 Project: Maven Issue Type: Improvement Reporter: Christoph Läubrich Assume you have a ModelReader that reads a custom file (e.g. json, yaml, ...) this currently seem to result in the ModelReader Source#getPath being used as the "file model" for the POM. This confuses some parts of maven (especially plugins) as they assume that this file is always an POM XML. In maven-polyglot, this was circumvented by writing out the model as XML in a file named .polyglot.<name of model file>.xml and this was set as the model file. This also has had some drawbacks (that an extra file is generated (and possibly deleted after the build)) , but retained the semantics of Model#getFile to return an (xml readable) model. As maven4 now uses Path, one way would be to hold the model in an in-memory path representation so that "reading" that path as a model again will simply return a copy, but as a first iteration using an approach similar to what polyglot does might be sufficient. -- This message was sent by Atlassian Jira (v8.20.10#820010)