Thanks. I also tried this and got the same error. Both files are in the same dir. I issue the cmd "maven mygoal" in that dir. There's nothing else in that dir.

Scott


Here's project.xml...
<project>

<pomVersion>3</pomVersion>
<id>Test1</id>
<name>Test1</name>
<currentVersion>1</currentVersion>
<inceptionYear>2001</inceptionYear>

<description>Test Project created in ${pom.inceptionYear}.</description>
<shortDescription>${pom.name} is a Maven Test</shortDescription>

</project>



Here's maven.xml...
<project default="mygoal"
xmlns:j="jelly:core"
xmlns:m="maven"
xmlns:u="jelly:util">

<goal name="mygoal">
<mkdir dir="blahdir" />
</goal>


</project>



[EMAIL PROTECTED] wrote:
Scott Walters <[EMAIL PROTECTED]> wrote on 18/01/2003 02:30:42 PM:

Hi,

I'm new to Maven and I'm trying to get a very simple project that creates a directory to execute.

My attempt has a single file called project.xml that looks like this...

<project>
<pomVersion>3</pomVersion>
<id>Test1</id>
<name>Test1</name>
<currentVersion>1</currentVersion>
<inceptionYear>2001</inceptionYear>

<description>Test created in ${pom.inceptionYear}.</description>
<shortDescription>${pom.name} is a Maven Test</shortDescription>

<goal name="mygoal">
<mkdir dir="somedir" />
</goal>

Goals don't go in project.xml, they go in maven.xml
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to