Unexpected element "artifact:dependencies"

View: New views
2 Messages — Rating Filter:   Alert me  

Unexpected element "artifact:dependencies"

by sudheshna iyer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: dev-help@...


Re: Unexpected element "artifact:dependencies"

by Wendy Smoak-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, May 14, 2008 at 5:19 PM, sudheshna iyer <sudheshnaiyer@...> 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@...
For additional commands, e-mail: dev-help@...

LightInTheBox - Buy quality products at wholesale price