Hi Bob, Thanks for reporting this. The sample is stored here : http://svn.apache.org/repos/asf/maven/maven-1/core/trunk/xdocs/start/samples/ The next time you can open an issue in Jira : http://jira.codehaus.org/browse/MAVEN but for this time I already fixed it in subversion. I'll update it on the site ASAP.
On 9/2/06, Robert Kennington <[EMAIL PROTECTED]> wrote:
Hi, On the Maven page 'The Ten Minute Test - Creating a Project with Maven 1.x' download page, http://maven.apache.org/maven-1.x/start/ten-minute-test.html there is a note with a link to allow you to download sample code "Note that you can download some sample code instead of creating the project above." which leads you to http://maven.apache.org/maven-1.x/start/samples/sample-echo.zip So, with Maven 1.1-beta-3 and the sample, I attempted 'maven java:compile' which failed to parse the project.xml file. The specific error message was: BUILD FAILED Error parsing project.xml 'C:\Documents ...\.maven\sample-echo\project.xml' - run the same command again with the '-e' parameter, eg 'maven -e jar' Total time : 0 seconds Finished at : Friday, September 1, 2006 5:45:58 PM EDT Following advice from Maven, I ran 'maven -e jar' and it indicated there was an Unrecognised tag: 'version'. ... --- Nested Exception --- org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'version' (position: START_TAG seen ...</artifactId>\n <version>... @4:12) ... Consequently, I reviewed the basic project descriptor on the Ten Minute (see "The following is a basic project descriptor:") page and noticed that it used the tag 'currentVersion'. To fix the problem with the sample project.xml file in sample-echo.zip, simply change <version>1.0-SNAPSHOT</version> to <currentVersion>1.0-SNAPSHOT</currentVersion> Now, if someone could direct me to the appropriate instructions, I'm still trying to figure out how to patch this file. There are all sorts of wonderful instructions about patching content.. but I could ramble on... Hope that helps. Cheers, Bob Kennington --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
