RE: mvn -N install not working for daytrader

2006-10-12 Thread Vincent Massol
Hi Satish,

> -Original Message-
> From: Satish Gupta [mailto:[EMAIL PROTECTED]
> Sent: vendredi 13 octobre 2006 07:12
> To: Maven Users List
> Subject: Re: mvn -N install not working for daytrader
> 
> Thanks for your reply!
> 
> Daytrader is the example being dealt with in the book "Better Builds with
> Maven". I am trying to learn how to be able to work with J2EE projects.
> The
> book doesn't explicitly say to install a top-level pom.xml. I made a guess
> and did copy a pom.xml from another part of the book and tha part seem to
> have worked. Now I am working on the "ejb" module under "daytrader"
> directoy. So I copied a pom.xml from tha section to ejb directory and ran
> "mvn install". Now I am getting the following error:
> 
> Cannot find parent: org.apache.geronimo.samples.daytrader:daytrader for
> project: null:daytrader-ejb:ejb:null

You don't have to copy, modify or move any file at all of course! I guess
the error is simply you're not in the right directory when you type your mvn
command. Please double check the book as I remember mentioning the location
where you have to type the commands. If you don't succeed plese let me know
exactly what page of the book you're referring to.
 
> How do people learn Maven? It seems to be popular but the documentation
> seems very hard to understand! Do you have any suggestions?

That's why there's the book... It's supposed to be easy to follow! :-)

Thanks
-Vincent

> On 10/12/06, pjungwir <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi Satish,
> >
> > Maven expects to find a pom.xml in the current directory. That message
> > means
> > there isn't one there. I don't know what daytrader is. Are you trying to
> > build it from source?
> >
> > Paul
> >
> >
> >
> > Satish Gupta wrote:
> > >
> > > I am just starting to learn Maven. I am trying to follow the
> > instrucations
> > > in "Better Builds with Maven" but get the following message right off
> > the
> > > bat:
> > >
> > > It requires a project with an existing pom.xml , but the build is not
> > > using
> > > one.
> > >
> > > I am using maven2.0.4 on Windows XP.
> > >
> > > I'd appreciate any help.
> > >
> > > Thanks
> > >
> > >
> >
> > --
> > View this message in context:
> > http://www.nabble.com/mvn--N-install-not-working-for-daytrader-
> tf2434911.html#a6789679
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >






___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Demandez à ceux qui savent sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com

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



Re: mvn -N install not working for daytrader

2006-10-12 Thread pjungwir

Hmm, I think these directories should already have pom.xml files of their
own. If you copy pom.xmls from other projects, you're probably going to get
errors. I'm not sure about the "Cannot find parent" error, but perhaps these
foreign poms are the cause?

I agree, the documentation for maven is tough going.



-- 
View this message in context: 
http://www.nabble.com/mvn--N-install-not-working-for-daytrader-tf2434911.html#a6790244
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: mvn -N install not working for daytrader

2006-10-12 Thread Satish Gupta

Thanks for your reply!

Daytrader is the example being dealt with in the book "Better Builds with
Maven". I am trying to learn how to be able to work with J2EE projects. The
book doesn't explicitly say to install a top-level pom.xml. I made a guess
and did copy a pom.xml from another part of the book and tha part seem to
have worked. Now I am working on the "ejb" module under "daytrader"
directoy. So I copied a pom.xml from tha section to ejb directory and ran
"mvn install". Now I am getting the following error:

Cannot find parent: org.apache.geronimo.samples.daytrader:daytrader for
project: null:daytrader-ejb:ejb:null

How do people learn Maven? It seems to be popular but the documentation
seems very hard to understand! Do you have any suggestions?

Thanks


On 10/12/06, pjungwir <[EMAIL PROTECTED]> wrote:



Hi Satish,

Maven expects to find a pom.xml in the current directory. That message
means
there isn't one there. I don't know what daytrader is. Are you trying to
build it from source?

Paul



Satish Gupta wrote:
>
> I am just starting to learn Maven. I am trying to follow the
instrucations
> in "Better Builds with Maven" but get the following message right off
the
> bat:
>
> It requires a project with an existing pom.xml , but the build is not
> using
> one.
>
> I am using maven2.0.4 on Windows XP.
>
> I'd appreciate any help.
>
> Thanks
>
>

--
View this message in context:
http://www.nabble.com/mvn--N-install-not-working-for-daytrader-tf2434911.html#a6789679
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: mvn -N install not working for daytrader

2006-10-12 Thread pjungwir

Hi Satish,

Maven expects to find a pom.xml in the current directory. That message means
there isn't one there. I don't know what daytrader is. Are you trying to
build it from source?

Paul



Satish Gupta wrote:
> 
> I am just starting to learn Maven. I am trying to follow the instrucations
> in "Better Builds with Maven" but get the following message right off the
> bat:
> 
> It requires a project with an existing pom.xml , but the build is not
> using
> one.
> 
> I am using maven2.0.4 on Windows XP.
> 
> I'd appreciate any help.
> 
> Thanks
> 
> 

-- 
View this message in context: 
http://www.nabble.com/mvn--N-install-not-working-for-daytrader-tf2434911.html#a6789679
Sent from the Maven - Users mailing list archive at Nabble.com.


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