You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by sudheshna iyer <su...@yahoo.com> on 2008/05/15 02:19:58 UTC

Unexpected element "artifact:dependencies"

I have downloaded apache-maven-2.0.9-bin.tar.gz and
extracted to dir: C:\apache-maven-2.0.9

I have added C:\apache-maven-2.0.9 to the path. When I
run "mvn --version" at cmd prompt, I got the 
following results:

C:\GettingStartedWithHibernate3>mvn --version
Maven version: 2.0.9
Java version: 1.5.0_05
OS name: "windows xp" version: "5.1" arch: "x86"
Family: "windows"

I have a build file with the following lines:

  <artifact:dependencies
pathId="dependency.classpath"> 
    <dependency groupId="hsqldb" artifactId="hsqldb"
version="1.8.0.7"/>
    <dependency groupId="org.hibernate"
artifactId="hibernate"
                version="3.2.5.ga">
      <exclusion groupId="javax.transaction"
artifactId="jta"/>
    </dependency>
    <dependency groupId="org.hibernate"
artifactId="hibernate-tools"
                version="3.2.0.beta9a"/>
    <dependency groupId="org.apache.geronimo.specs"
                artifactId="geronimo-jta_1.1_spec"
version="1.1"/>
    <dependency groupId="log4j" artifactId="log4j"
version="1.2.14"/>
  </artifact:dependencies>
  
But when I run the above build.xml, I receive the
following error:

Buildfile: build.xml

BUILD FAILED
file:C:/GettingStartedWithHibernate3/build.xml:11:
Unexpected element "artifact:dependencies"

What am I missing?


      

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


Re: Unexpected element "artifact:dependencies"

Posted by Wendy Smoak <ws...@gmail.com>.
On Wed, May 14, 2008 at 5:19 PM, sudheshna iyer <su...@yahoo.com> wrote:
> I have downloaded apache-maven-2.0.9-bin.tar.gz and
> extracted to dir: C:\apache-maven-2.0.9

Please ask questions on the users list instead of dev.  You can find
info here:  http://maven.apache.org/mail-lists.html

(A Maven build file is typically called pom.xml and follows this
model:  http://maven.apache.org/ref/2.0.9/maven-model/maven.html.  You
appear to have something else there.)

-- 
Wendy

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