[ http://jira.codehaus.org/browse/MNG-252?page=all ]
Brett Porter updated MNG-252:
-----------------------------
Fix Version: (was: 2.0-alpha-3)
2.0-alpha-2
read file into a string, check for <modelVersion/> - if it exists it is v4 and
should be copied across, if not it is v3 and should be converted. Take the
string and pass to a stringreader for modello.
Check to make sure modelVersion is properly validated in the POM too so no
projects sneak past.
> allow repoclean converter to read from a repository containing both v3 and v4
> poms, and convert each correctly
> --------------------------------------------------------------------------------------------------------------
>
> Key: MNG-252
> URL: http://jira.codehaus.org/browse/MNG-252
> Project: m2
> Type: Improvement
> Components: repository-tools
> Environment: all
> Reporter: John Casey
> Assignee: John Casey
> Fix For: 2.0-alpha-2
>
>
> currently there is no reliable way to detect whether a given POM is a v3 pom
> (from maven1) or a v4 pom (from maven2-alpha-0+). This makes it impossible to
> look at *.pom and decide which conversions to use in validating and/or
> cleaning the POM, and moreover which libraries to use in reading the file
> (they are separate Xpp3Reader implementations).
> It would be good to be able to sort out a repository that currently contains
> both maven1- and maven2-produced artifacts, and normalize them into maven2
> format.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]