When to initialize bean properties?

2006-12-07 Thread Naresh Bhatia
I have a bean property that is displayed on a page. The value of the property needs to be initialized by making a service layer call. When should this initialization be done? Currently I am doing a lazy initialization when the property is first accessed: public class ForumDetailsBean {

RE: When to initialize bean properties?

2006-12-07 Thread Naresh Bhatia
Please ignore - sent to wrong forum accidentally. Naresh -Original Message- From: Naresh Bhatia Sent: Thursday, December 07, 2006 1:21 PM To: 'Maven Users List' Subject: When to initialize bean properties? I have a bean property that is displayed on a page. The value of the property

How to integrate database builds in to the Maven build lifecycle?

2006-10-27 Thread Naresh Bhatia
I would like to find out how people use Maven to integrate database builds into the Maven build cycle. My team is currently using a multiple-pass approach, i.e. invoking Maven multiple times with different goals - primary reason is that the database schema is generated from a UML model during the

RE: How to integrate database builds in to the Maven build lifecycle?

2006-10-27 Thread Naresh Bhatia
of phases? http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl e.html Sounds to me like you might want to hook it up like: @generate-test-resources drop-schema @process-test-resourcescreate-schema Wayne On 10/27/06, Naresh Bhatia [EMAIL PROTECTED] wrote: I would like to find

RE: How to unpack a zip file into a source directory

2006-10-16 Thread Naresh Bhatia
to this thread check out http://jira.codehaus.org/browse/MNG-1683 this gave me my solution for packaging stuff in a zip deploying as an artifact then unpacking in a war. Peter -Original Message- From: Naresh Bhatia [mailto:[EMAIL PROTECTED] Sent: Sunday, 15 October 2006 1:01 PM

How to unpack a zip file into a source directory

2006-10-15 Thread Naresh Bhatia
Hi, I would like to unpack a zip file into a source directory using Maven. What is the best way to do this? Here are the details of what I am trying to do: - The zip file is essentially the Dojo JavaScript library (ajax-2006.10.10.zip ) - it simply contains JavaScript source. - I would like to

RE: How to unpack a zip file into a source directory

2006-10-15 Thread Naresh Bhatia
Please ignore this message. I had sent it to the mailing list without realizing that I was not subscribed to the list. This message has already been answered satisfactorily. Naresh -Original Message- From: Naresh Bhatia [mailto:[EMAIL PROTECTED] Sent: Saturday, October 14, 2006 11:11 AM

How to unpack a zip file into a source directory

2006-10-14 Thread Naresh Bhatia
Hi, I would like to unpack a zip file into a source directory using Maven. What is the best way to do this? Here are the details of what I am trying to do: - The zip file is essentially the Dojo JavaScript library (ajax-2006.10.10.zip ) - it simply contains JavaScript source. - I would like to

RE: How to unpack a zip file into a source directory

2006-10-14 Thread Naresh Bhatia
Thanks so much Wendy. That is exactly what I was looking for. Naresh -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Saturday, October 14, 2006 11:34 AM To: Maven Users List Subject: Re: How to unpack a zip file into a source directory On 10/14/06, Naresh Bhatia

Re: How to unpack a zip file into a source directory

2006-10-14 Thread Naresh Bhatia
: Saturday, October 14, 2006 11:34 AM To: Maven Users List Subject: Re: How to unpack a zip file into a source directory On 10/14/06, Naresh Bhatia [EMAIL PROTECTED] wrote: I would like to unpack a zip file into a source directory using Maven. What is the best way to do this? I'm doing something

Problem overriding profile

2006-10-14 Thread Naresh Bhatia
I have a multi-project with several properties defined in an active profile in the root pom: profiles profile idlocal/id activation activeByDefaulttrue/activeByDefault /activation properties

RE: How to unpack a zip file into a source directory

2006-10-14 Thread Naresh Bhatia
Perfect! That worked like a charm. Thanks again Wendy. Naresh -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Saturday, October 14, 2006 10:32 PM To: Maven Users List Subject: Re: How to unpack a zip file into a source directory On 10/14/06, Naresh Bhatia [EMAIL

How to join the mevenide mailing list?

2006-09-10 Thread Naresh Bhatia
Does anyone know how to join the mevenide mailing list? The Lists link on http://codehaus.org/ is broken so I don't know how to join that list. Thanks.

RE: Should Acegi be packaged into ear or war?

2006-08-29 Thread Naresh Bhatia
version2.0-rc2/version /dependency ... and Maven (or maybe it's the poms) doesn't recognize that this JAR is the same (and newer!) as all the Acegi dependencies. Matt On 8/29/06, Henry S. Isidro [EMAIL PROTECTED] wrote: On Saturday, August 26, 2006 13:52, Naresh Bhatia wrote: I am packaging

Should Acegi be packaged into ear or war?

2006-08-25 Thread Naresh Bhatia
I am packaging my web application as an ear file because it uses EJBs. I am using Acegi for security. However if I add Acegi as a dependency in the war subproject then it pulls in bunch of other jars that are also needed in my ejb subproject (such as spring) and I run into classloader issues at

RE: Problem with Maven 2 - AndroMDA team asked me to register it with Maven support

2006-08-22 Thread Naresh Bhatia
The only thing that surprises me is that I never faced this issue with Maven 1. It would either connect to the repository perfectly and download everything in one shot or if it could not connect, it would come to a dead stop - repeated tries never helped. Is Maven 2 different somehow in how it

RE: Newbie question, missing AndroMDA plugin on ibiblio Maven 1.0.2

2006-06-30 Thread Naresh Bhatia
This is not an answer to your question, but FYI, the tutorial you are trying is dated. The latest tutorial is at http://galaxy.andromda.org/index.php?option=com_contenttask=categorysectionid=11id=42Itemid=89 and tells you step-by-step how to use AndroMDA with Maven 2. Naresh -Original

RE: How to test an ejb package with Maven and TestNG?

2006-06-28 Thread Naresh Bhatia
List Subject: Re: How to test an ejb package with Maven and TestNG? Hi, see comment inline... Naresh Bhatia schrieb: I have a maven project with packaging set to ejb. I would like to test this project outside an ejb container by simply calling POJO classes inside it. I have written a very simple

How to test an ejb package with Maven and TestNG?

2006-06-27 Thread Naresh Bhatia
I have a maven project with packaging set to ejb. I would like to test this project outside an ejb container by simply calling POJO classes inside it. I have written a very simple test using TestNG: public class UserServiceTest { @Test public void testGetAllUsers() { ...

Error with maven-archetype-j2ee-simple

2006-06-16 Thread Naresh Bhatia
I am running the following command to generate a simple J2EE app: mvn archetype:create -DgroupId=TestEarApp -DartifactId=TestEarApp -DarchetypeArtifactId=maven-archetype-j2ee-simple But I am getting the following error. Can someone give me a helping hand on this one? [INFO]

RE: Error with maven-archetype-j2ee-simple

2006-06-16 Thread Naresh Bhatia
with the maven until I started to run the command with the -U flag.. it forced the maven to update its libraries and the things started to happens. On 6/16/06, Naresh Bhatia [EMAIL PROTECTED] wrote: I am running the following command to generate a simple J2EE app: mvn archetype:create -DgroupId

RE: RE: Error with maven-archetype-j2ee-simple

2006-06-16 Thread Naresh Bhatia
to happens. On 6/16/06, Naresh Bhatia [EMAIL PROTECTED] wrote: I am running the following command to generate a simple J2EE app: mvn archetype:create -DgroupId=TestEarApp -DartifactId=TestEarApp -DarchetypeArtifactId=maven-archetype-j2ee-simple But I am getting the following error

RE: RE: Error with maven-archetype-j2ee-simple

2006-06-16 Thread Naresh Bhatia
, Naresh Bhatia [EMAIL PROTECTED] wrote: Yep, that's exactly the problem. Any idea on release cycle of maven-archetype? Thanks. Naresh -Original Message- From: Kieran Brady [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 12:17 PM To: users@maven.apache.org Subject: RE: RE: Error

RE: RE: Error with maven-archetype-j2ee-simple

2006-06-16 Thread Naresh Bhatia
verify also if some other VM is in your PATH variable, like the IBM websphere ones or an old configuration... good luck my friend :) On 6/16/06, Naresh Bhatia [EMAIL PROTECTED] wrote: Yep, JAVA_HOME=D:\Program Files\Java\jdk1.5.0_06 which is where my JDK is installed. I agree, sometimes