You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kenneth Simpson <ke...@VirtualMachines.COM> on 2004/07/26 08:56:08 UTC

maven pom


Re: maven pom

Posted by Dennis Lundberg <de...@mdh.se>.
Hello

The elements in your project.xml are not in the correct order, according 
to the XML schema. Maven seems to work fine even if they are in the 
wrong order though.

You can find the schema here:
   http://maven.apache.org/xsd/maven-project-3.0.0.xsd

Or, if you are not used to reading schemas, you can use the same order 
of elements as in this document:
   http://maven.apache.org/reference/project-descriptor.html

-- 
Dennis Lundberg

Kenneth Simpson wrote:
> 
> 
> ------------------------------------------------------------------------
> 
> Hi - I'm getting a strange error.
> 
> Enclosed is the output from 
> 
> 	maven pom 
> 
> and the 
> 
> 	project.xml 
> 
> file. 
> 
> Everything else seems to work fine - I can compile and create a jar.
> 
> Any ideas? 
> 
> -- Ken
> 
> ;----------------------------------------------------------------------------
> 
> [ken@minkowski(1617)]- maven pom
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0
> 
> build:start:
> 
> pom:verify-version:
> 
> pom:validate:
>     [java] /home/ken/projects/jump/project.xml:4:12: error: cvc-complex-type.2.4.a: Invalid content starting with element 'groupId'. One of '{"":id}' is expected.
>     [java] /home/ken/projects/jump/project.xml:68:27: error: cvc-complex-type.2.4.a: Invalid content starting with element 'organization'. One of '{"":id}' is expected.
>     [java] /home/ken/projects/jump/project.xml:76:27: error: cvc-complex-type.2.4.a: Invalid content starting with element 'organization'. One of '{"":id}' is expected.
>     [java] /home/ken/projects/jump/project.xml:84:27: error: cvc-complex-type.2.4.a: Invalid content starting with element 'organization'. One of '{"":id}' is expected.
>     [java] /home/ken/projects/jump/project.xml:92:27: error: cvc-complex-type.2.4.a: Invalid content starting with element 'organization'. One of '{"":id}' is expected.
>     [java] /home/ken/projects/jump/project.xml:101:27: error: cvc-complex-type.2.4.a: Invalid content starting with element 'organization'. One of '{"":name}' is expected.
>     [java] [ERROR] Java Result: 1
> BUILD SUCCESSFUL
> Total time: 3 seconds
> Finished at: Sun Jul 25 22:54:59 PDT 2004
> 
> 
> ;---------------------------------------------------------------------------
> 
> <?xml version="1.0"?>
> <project>
>   <pomVersion>3</pomVersion>
>   <groupId>JUMP Project</groupId>
>   <id>jump</id>
>   <currentVersion>1.1.1</currentVersion>
>   <name>JUMP</name>
> 
>   <organization>
>     <name>Vivid Solutions, Inc.</name>
>     <url>http://www.vividsolutions.com</url>
>     <logo>/images/v_logo_btm.gif</logo>
>   </organization>
> 
>   <inceptionYear>2001</inceptionYear>
>   <shortDescription>Java Uniformed Mapping Project</shortDescription>
>   <description>
>         Provides an API of 2D spatial predicates and functions for fundamental 
> 	geometric operations in an OGC-compliant spatial object model.
>   </description>
>   
>   <url>http://www.jump-project.org</url>
>   <package>com.vividsolutions.jump.*</package>
>   <logo>/img/header_main.gif</logo>
> 
>   <licenses>
> 	<license>
>     	<name>The Jump Project</name>
>     	<url>/doc/gpl.txt</url>
>     	<distribution>repo</distribution>
> 	</license>
>   </licenses>
>   
>   <gumpRepositoryId>jump</gumpRepositoryId>
>   <issueTrackingUrl>http://http://www.jump-project.org</issueTrackingUrl>
>   <siteAddress>jump-project.org</siteAddress>
>   <siteDirectory>/jump</siteDirectory>
>   <distributionDirectory>/jump/builds</distributionDirectory>
>   
>   <repository>
>     <connection>scm:cvs:pserver:cvs@cvs.jump-project.org:/home/cvs/jump:jump</connection>
>   </repository>
>   
>   <mailingLists>
>     <mailingList>
>       <name>JUMP Development List</name>
>       <subscribe>http://lists.jump-project.org/mailman/listinfo/jump-devel/</subscribe>
>       <unsubscribe>http://lists.jump-project.org/mailman/listinfo/jump-devel/</unsubscribe>
>       <archive>http://lists.jump-project.org/pipermail/jump-devel/</archive>
>     </mailingList>
>     <mailingList>
>       <name>JUMP Users List</name>
>       <subscribe>http://lists.jump-project.org/mailman/listinfo/jump-users/</subscribe>
>       <unsubscribe>http://lists.jump-project.org/mailman/listinfo/jump-users/</unsubscribe>
>       <archive>http://lists.jump-project.org/pipermail/jump-users/</archive>
>     </mailingList>
>     <mailingList>
>       <name>JTS Developement List</name>
>       <subscribe>http://lists.jump-project.org/mailman/listinfo/jts-devel/</subscribe>
>       <unsubscribe>http://lists.jump-project.org/mailman/listinfo/jts-devel/</unsubscribe>
>       <archive>http://lists.jump-project.org/pipermail/jts-devel/</archive>
>     </mailingList>
>   </mailingLists>
> 
>     <developers>
>         <developer>
>             <name>Mark Sondheim</name>
>             <organization>BC MSRM</organization>
>             <roles>
>                 <role>Project Initiation/Management</role>
>             </roles>
>         </developer>
> 
>         <developer>
>             <name>Martin Davis</name>
>             <organization>Vivid Solutions, Inc.</organization>
>             <roles>
>                 <role>Systems Architecture</role>
>             </roles>
>         </developer>
> 
>         <developer>
>             <name>Jonathan Aquino</name>
>             <organization>Vivid Solutions</organization>
>             <roles>
>                 <role>Java Developer</role>
>             </roles>
>         </developer>
> 
>         <developer>
>             <name>David Blasby</name>
>             <organization>Refractions Research</organization>
>             <roles>
>                 <role>Java Developer</role>
>             </roles>
>         </developer>
>     </developers>
> 
>     <contributors>
>         <contributor>
>             <organization>Refractions Research</organization>
>         </contributor>
>     </contributors>
> 
>     <dependencies>
>         <dependency>
>             <id>Acme</id>
>             <version>noversion</version>
>         </dependency>
> 
>         <dependency>
>             <id>bsh</id>
>             <version>2.0b1</version>
>         </dependency>
> 
>         <dependency>
>             <id>Jama</id>
>             <version>1.0.1</version>
>         </dependency>
> 
>         <dependency>
>             <id>jdom</id>
>             <version>1.0b8-dev</version>
>         </dependency>
> 
>         <dependency>
>             <id>junit</id>
>             <version>3.7</version>
>         </dependency>
> 
>         <dependency>
>             <id>xerces</id>
>             <version>1.2.0</version>
>         </dependency>
> 
>         <dependency>
>             <id>xercesImpl</id>
>             <version>20030731</version>
>         </dependency>
> 
>         <dependency>
>             <id>xml-apis</id>
>             <version>20030131</version>
>         </dependency>
> 
>     </dependencies>
> 
>     <build>
>     	<nagEmailAddress>jump-devel@lists.jump-project.org</nagEmailAddress>
>     	<sourceDirectory>src/java</sourceDirectory>
>     	<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
>         <!-- Unit test classes -->
>         <!-- TODO Organize test inclusions and exclusions -->
>         <unitTest>
>             <includes>
>                 <include>**/*Test*</include>
>             </includes>
>             <excludes>
>                 <exclude>**/testtools/**</exclude>
>             </excludes>
>         </unitTest>
> 
>         <resources>
>             <resource>
>               <targetPath>META-INF</targetPath>
>               <includes>
>                 <include>NOTICE.txt</include>
>               </includes>
>             </resource>
>         </resources>
> 
>     </build>
> 
>   <reports>
>      <report>maven-changelog-plugin</report>
>      <report>maven-changes-plugin</report>
>      <!--report>maven-checkstyle-plugin</report-->
>      <!--report>maven-clover-plugin</report-->
>      <report>maven-developer-activity-plugin</report>
>      <report>maven-file-activity-plugin</report>
>      <report>maven-javadoc-plugin</report>
>      <!--report>maven-jellydoc-plugin</report-->
>      <report>maven-junit-report-plugin</report>
>      <report>maven-jxr-plugin</report>
>      <report>maven-license-plugin</report>
>      <!--report>maven-linkcheck-plugin</report-->
>      <!--report>maven-statcvs-plugin</report-->
>      <!--report>maven-tasklist-plugin</report-->
>   </reports>
> 
> </project>
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


maven pom

Posted by Reddy MVS <sr...@orangescape.com>.
Hi Kenneth,

  Please add your POM ID into your project.xml 

Here is the sample code:
<project>

      <pomVersion>1</pomVersion>
    <artifactId>xxx</artifactId>
....
</project>

Try this and let me know. 
Thanks 
Reddy MVS

---------------------------------------------------------------------------

Hi Maven users I found that Maven Plug-in for Eclipse is doing great job.
Also I am sharing some common difference between Ant and Maven. Please find
out screen shots in attachments. 

Thanks 
Reddy MVS
OrangeScape
(Release Engineer)

-----Original Message-----
From: Kenneth Simpson [mailto:ken@VirtualMachines.COM] 
Sent: Monday, July 26, 2004 12:26 PM
To: users@maven.apache.org
Subject: maven pom