<id> is deprecated (but the XSD hasn't been updated). You should use artifactId (basically the same as id, but id did have some side effects on groupId).
Cheers, Brett On 5/23/05, Adrian Herscu <[EMAIL PROTECTED]> wrote: > Hi all, > > Tried to validate my project.xml file against the POM schema > (http://maven.apache.org/xsd/maven-project-3.0.0.xsd) > and got a validation error about the <artifactId> tag. > > It seems that the <artifactId> tag is not allowed under the > <project> element. Here is the <project> element definition: > > <xs:element name="project"> > <xs:complexType> > <xs:sequence> > <xs:element ref="extend" minOccurs="0"/> > <xs:element ref="pomVersion"/> > <xs:element ref="id"/> > <xs:element ref="name"/> > <xs:element ref="groupId" minOccurs="0"/> > <xs:element ref="currentVersion"/> > <xs:element ref="organization"/> > <xs:element ref="inceptionYear"/> > <xs:element ref="package" minOccurs="0"/> > <xs:element ref="logo" minOccurs="0"/> > <xs:element ref="gumpRepositoryId" minOccurs="0"/> > <xs:element ref="description" minOccurs="0"/> > <xs:element ref="shortDescription"/> > <xs:element ref="url" minOccurs="0" /> > <xs:element ref="issueTrackingUrl" minOccurs="0"/> > <xs:element ref="siteAddress" minOccurs="0"/> > <xs:element ref="siteDirectory" minOccurs="0"/> > <xs:element ref="distributionSite" minOccurs="0"/> > <xs:element ref="distributionDirectory" minOccurs="0"/> > <xs:element ref="repository" minOccurs="0"/> > <xs:element ref="versions" minOccurs="0"/> > <xs:element ref="branches" minOccurs="0"/> > <xs:element ref="mailingLists" minOccurs="0"/> > <xs:element ref="developers"/> > <xs:element ref="contributors" minOccurs="0"/> > <xs:element ref="licenses" minOccurs="0"/> > <xs:element ref="dependencies" minOccurs="0"/> > <xs:element ref="build"/> > <xs:element ref="reports" minOccurs="0"/> > <xs:element ref="properties" minOccurs="0"/> > </xs:sequence> > </xs:complexType> > > Two more questions: > Why there is a <groupId>/<artifactId> and also an <id> element? > What should I use and when? > > Adrian. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
