[ http://jira.codehaus.org/browse/SUREFIRE-4?page=all ] Jason van Zyl closed SUREFIRE-4: --------------------------------
Resolution: Fixed fixed > Running maven 2 alpha 3 from toplevel directory produces build failure due to > POM errors > ---------------------------------------------------------------------------------------- > > Key: SUREFIRE-4 > URL: http://jira.codehaus.org/browse/SUREFIRE-4 > Project: surefire > Type: Bug > Environment: maven 2 alpha 3 - sun 1.4.2 VM - win 2k > Reporter: Andy Glick > Assignee: Jason van Zyl > > > F:\devel4\surefire-svn>m2 compile > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Reason: Failed to parse model from file > 'F:\devel4\surefire-svn\pom.xml'. > Error: 'TEXT must be immediately followed by END_TAG and not START_TAG > (position > : START_TAG seen ...<snapshotRepository>\r\n <id>... @83:11) ' > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Total time: < 1 second > [INFO] Finished at: Tue Aug 16 09:47:00 EDT 2005 > [INFO] Final Memory: 0M/2M > [INFO] > ------------------------------------------------------------------------- > --- > Modifying the <project> tag as follows: > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > and validating with parser produced the following errors: > Error: Error: line (83)cvc-complex-type.2.4.a: Invalid content was found > starting with element 'snapshotRepository'. One of > '{"http://maven.apache.org/POM/4.0.0":site, > "http://maven.apache.org/POM/4.0.0":downloadUrl}' is expected. > Error: Error: line (99)cvc-complex-type.2.4.a: Invalid content was found > starting with element 'releases'. One of > '{"http://maven.apache.org/POM/4.0.0":snapshotPolicy, > "http://maven.apache.org/POM/4.0.0":layout}' is expected. > Error: Error: line (109)cvc-complex-type.2.4.a: Invalid content was found > starting with element 'releases'. One of > '{"http://maven.apache.org/POM/4.0.0":snapshotPolicy, > "http://maven.apache.org/POM/4.0.0":layout}' is expected. > Commenting out the erroneous XML allowed the build to proceed -- 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