[ http://jira.codehaus.org/browse/MNG-1437?page=comments#action_83690 ] Ole Ersoy commented on MNG-1437: --------------------------------
So... We could also update the EMF XMLHandler such that it reads the root element, registers the correct ResourceFactory for the version, and then proceeds to load the model. I'll check whether EMF already has something like this in the works. So there would be POMResourceFactoryVersion4 POMResourceFactoryVersion5 POMResourceFactoryVersionX etc. The XMLHandler that first sees the resource, checks the version, and registers the appropriate POMResourceFactoryVersionX instance. > How to make additions to the POM and have it be backward/forward compatible > --------------------------------------------------------------------------- > > Key: MNG-1437 > URL: http://jira.codehaus.org/browse/MNG-1437 > Project: Maven 2 > Issue Type: Task > Components: Design, Patterns & Best Practices > Reporter: Jason van Zyl > Priority: Trivial > Fix For: 2.1 > > > I would like to add categories and site staging information to the POM but > don't want to break everything. Brett and I have discussed this topic briefly > but we need the XML parsing mechanism to be a bit more flexible or we may > just have to embrace namespaces to make this work ... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira