Return-Path: Delivered-To: apmail-maven-issues-archive@locus.apache.org Received: (qmail 62685 invoked from network); 27 Dec 2006 02:28:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Dec 2006 02:28:34 -0000 Received: (qmail 40967 invoked by uid 500); 27 Dec 2006 02:28:40 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 40926 invoked by uid 500); 27 Dec 2006 02:28:40 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 40915 invoked by uid 99); 27 Dec 2006 02:28:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Dec 2006 18:28:39 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [63.246.20.114] (HELO 63-246-20-114.contegix.com) (63.246.20.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Dec 2006 18:28:30 -0800 Received: (qmail 786 invoked by uid 89); 27 Dec 2006 02:28:09 -0000 Received: from unknown (HELO codehaus01.managed.contegix.com) (127.0.0.1) by smtp.domain.com with SMTP; 27 Dec 2006 02:28:09 -0000 Message-ID: <95901630.1167186489727.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Tue, 26 Dec 2006 20:28:09 -0600 (CST) From: "Seva Safris (JIRA)" To: issues@maven.apache.org Subject: [jira] Closed: (MNG-2714) Maven does not comply to XML rules regarding prefixes. In-Reply-To: <87256818.1167186370233.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/MNG-2714?page=all ] Seva Safris closed MNG-2714. ---------------------------- Resolution: Incomplete > Maven does not comply to XML rules regarding prefixes. > ------------------------------------------------------ > > Key: MNG-2714 > URL: http://jira.codehaus.org/browse/MNG-2714 > Project: Maven 2 > Issue Type: Bug > Environment: Ubuntu 6.10 > Maven 2.0.4 > Reporter: Seva Safris > Priority: Critical > > I am new to Maven and have been trying to learn how to create a simple project. > Let me walk through my scenario of creating a pom.xml file: > 1. I bind the {http://maven.apache.org/POM/4.0.0} namespace (defined at "http://maven.apache.org/maven-v4_0_0.xsd") to Java classes using an XML Binding solution. > 2. I use the bound classes to create a simple as one would expect to see in a pom.xml file. > 3. I marshal the bound Java objects into xml and write it into pom.xml. Here is the xml I use: > xmlns:ns1="http://maven.apache.org/POM/4.0.0"> > 4.0.0 > com.myapp > sample-project > Sample Maven Project > 1.0 > > > ssafris > Seva Safris > > > > ${basedir}/src/java > > > 4. I run mvn, and am promptly given a "Not a v4.0.0 POM." exception. > Tracing through Maven's source, I went to the exact location of the exception in DefaultMavenProjectBuilder.java. On line 1297 it has: -- 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