Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1
-
None
Description
The following code snippet
MavenXpp3Reader pomReader = new MavenXpp3Reader(); Model model = null; try { File pomFile = new File( getBasedir(), "some-pom.xml" ); model = pomReader.read( ReaderFactory.newXmlReader( pomFile ) ); setModel( model ); } catch ( Exception e ) { throw new RuntimeException( e ); }
is both tiresome and error-prone (encoding). Moving this functionality into the MavenProjectStub would make life easier.