>In the moment I have created a schema for the new m2 POM and use it with XML >Beans for parsing the POM. Before I give the XML to the parser I add a >science fiction namespace and good ;-) > > If you'd like, you can use the same code Maven does: maven-model-2.0-alpha-1.jar (you'll also need plexus-utils-1.0-alpha-2.jar)
MavenXppReader reader = new MavenXpp3Reader(); Model pom = reader.read( new FileReader( new File( "pom.xml" ) ) ); (with suitable error handling on the FileReader, of course) >From that, you have pom.getName(), pom.getBuild(), pom.getDependencies(), etc - basically the same as XMLBeans would give you. Cheers, Brett --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
