Hi Hossain,

On 20/04/2008, at 4:27 PM, hossainsaad wrote:

I have wrote one test case in my new work place. now i have seen in other
codes they  have POM.xml.
ques # 1==Could anybody tell me what exactly I have to put there to run my test. I am adding a pom.xml which i tried but did not work. let me know what i have to add. We are using Spring jdbc template. I am adding the test code
and the pom.xml.

I'm also relatively new to maven... but I think you'll find that you'll have better success if you do the tutorial here:
http://maven.apache.org/guides/getting-started/index.html

There's one bug in the tutorial under 'How do I create documentation?' you should type the following rather than what's written.
mvn site:site

the rough pom i have wrote is

//Ques#2:what should be groupID?? if my folder name is Sadd

Think of groupId like packages in java. It's up to you - but you'd normally use your reverse domain, for example.

<artifactId>simple</artifactId>

// Ques#3what should I put here in artifactId, what does it mean

Something that uniquely identifies your project/artifact (i.e., the thing you're building) from other artifacts that might live one day in a repository.

                <dependency>
                        <groupId>Sadd</groupId>
// Ques#4 Again if my folder name is Sadd, am i doing right?

Doesn't hurt. But it doesn't matter.

                        <artifactId>com.core</artifactId>
// Ques#5my Sadd folder is dependant on com.core, am i doing right??

Check the pom declaration for core. They should match. artifactIds shouldn't have '.'s in them. They're usually the final part of a fully qualified id.
It sounds like the group id for core should be  Sadd.com
i.e.,
<artifactId>core</artifactId>
<groupId>Sadd.com</groupId>

Sorry if my questions are too imple or stupid. I wanted to learn maven by actually doing a project. thats wht i m trying to do. if anybody could help
me thank you in advance.

I think maven is one of those things that you really need to do some reading first - before trying to piece things together like you've attempted to. See the tutorial link above... you should find after going through it bit by bit that you'll have a better idea of things.

with regards,
--

Lachlan Deck




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

Reply via email to