> -----Original Message----- > From: Bryce Fischer [mailto:[EMAIL PROTECTED] > Sent: 16 September 2003 04:04 > To: Maven Users List > Subject: Re: Cactus Plugin > > Sorry so late getting back on this. I'm responding on the Maven list, as > this deals with the Cactus Plugin, and project organization, and may be > of interest to others. > > You mentioned: > > > - Have separate projects for each J2EE module (EJB-JAR, WAR, RAR, simple > > jar libraries) > > Done. I'm assuming the Cactus tests (for each module) go in these > projects.
The test sources, yes. For the execution of them, not necessarily (see below). > > > - Have a project for the application (EAR in most cases) which is the > > aggregation of the different J2EE module projects > > Done. > > > - (optional) Have a project for the container holding the application > > (this project will contain the container's configuration files) > > I assume this is for stuff like jboss.xml file, etc. I skipped this as > I'm using XDoclet to generate those files in the specific projects. > > > I would run the cactus tests in the container project as Cactus tests > > run in a running container. > > If I understand correctly, this is different than the optional step > above. This project would be a stand alone war file that will actually > run the Cactus test? > > When running cactus:test, It runs the tests in the specified container > (specified in the build.properties file?). For example, I've set > cactus.home.jboss3x, so it should run using that container? If you want to be logical, the best place to run your Cactus tests is when you have your application configured to run in your app server. This is in the container project (or EAR, or WAR if your application is only made of a single WAR). That said, as the Cactus plugin provides a full working environment for you, it is not strictly necessary to run in your own defined environment. You can run in the Cactus provided one. That said, the cactus environment is a default and basic one and if you need to modify any config file for a container, you'll have to provide them to cactus. And the place where you will have these files defined is in the container project (or EAR, or WAR). -Vincent > > Thanks again for your help. > > -- > Bryce Fischer <[EMAIL PROTECTED]> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
