RE: Want to exclude extra jars from war.

2008-10-16 Thread Dhruva Reddy
You don't say which container you're using. We just had this problem with WebLogic (the EAR file that we deploy was very large, leading to deployment times of 30+ minutes). Our solution to this was to place as many of the JARs as possible in the system classpath (a classpath that the

RE: Maven Plugin

2008-09-03 Thread Dhruva Reddy
As it appears in your email, you have spaces in the goal name: sample.plugin:maven-hello-plugin :1.0-SNAPSHOT: sayhi isn't the same as sample.plugin:maven-hello-plugin:1.0-SNAPSHOT:sayhi is it? -Original Message- From: simoha [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03,

RE: c++ maven project

2008-08-22 Thread Dhruva Reddy
My first response to the original question is...why? Which of maven's functionality would you like to take advantage of on your project? I've never tried this, nor have I even thought about it. Maven is intended for Java projects. I would think its theoretically possible to do this, but that

RE: 3 things not working in the maven Ear plugin 2.3.1 with maven 2.0.9

2008-07-23 Thread Dhruva Reddy
I run the EAR plugin 2.3.1 and maven 2.0.9. The webModules element needs to be wrapped in the modules element, like this: build plugins plugin ... configuration ... modules webModule

Problem with Dependencies Report Generation

2008-07-18 Thread Dhruva Reddy
Hi, I am on a multi-module project with a large number of dependencies. I am trying to run the site:site goal in Maven 2.0.8. When it gets to the Dependencies report, it appears to process all of the dependencies, but then it seems to connect to each of our specified repositories several times.

Plugin Issue

2008-05-21 Thread Dhruva Reddy
There is a weird issue which we have been facing. For some of maven plugins, we don't have versions defined in our POM. So I assume Maven tries to download latest versions for these plugins from the central repository. I see the central repository has a version 2.3.2( from my browser) but then

Dependency Precendence Question (multi-module projects)

2008-05-12 Thread Dhruva Reddy
Sorry if this scenario is a bit involved Take the following multi-module project: -granddaddy -child1 -grandchild1 -child2 -child3 -grandchild2 granddaddy is a parent of child1, child2 and child3, child1 is a parent of grandchild1 and

scm:update on multi-module project

2008-04-17 Thread Dhruva Reddy
I have a POM which aggregates several other projects. I am trying to run scm:update on the master POM. If this is an aggregator plugin (per the scm plugin's documentation), shouldn't it update the projects that it contains? It does not seem to do this for me-it only updates the current project.

Build child module in multi-module project

2008-03-31 Thread Dhruva Reddy
Apologies for the length, but it's mostly sample code... I am reworking a multi-module project, using Maven 2.0.8, with the following structure: master-project (pom) midlevel-project1 (pom) midlevel-project2 (jar) war-project (war)

RE: Build child module in multi-module project

2008-03-31 Thread Dhruva Reddy
On Mon, 2008-03-31 at 16:39 -0400, Dhruva Reddy wrote: Let's try depicting this again... master-project (pom) midlevel-project1 (pom) war-project (war) ear-project (ear) midlevel-project2 (jar) -Original Message- From: Dhruva Reddy [mailto

RE: Maven Concepts

2008-02-08 Thread Dhruva Reddy
-plugin:effective-pom Hope that helps, -john On Feb 7, 2008, at 4:50 PM, Dhruva Reddy wrote: I know this seems like a silly thing to post on here, but... What exactly is a goal and what is a phase? I can't find a good answer in the documentation and there's a lot of seemingly

Maven Concepts

2008-02-07 Thread Dhruva Reddy
I know this seems like a silly thing to post on here, but... What exactly is a goal and what is a phase? I can't find a good answer in the documentation and there's a lot of seemingly conflicting information out there. My current understanding is that a phase is a part of a lifecycle

RE: Managing Test and Production Resources with Maven 2

2008-01-04 Thread Dhruva Reddy
with Maven 2 On Jan 3, 2008 5:58 PM, Dhruva Reddy [EMAIL PROTECTED] wrote: However, when I run the package goal, which runs the unit tests before creating the WAR file, I can see that both versions of the file make it into the target directory, one under classes and one under test-classes

Filtering with Maven 2

2008-01-04 Thread Dhruva Reddy
I am working with a Java web application and trying to filter resources for inclusion in the WAR file. This application runs in Tomcat. There is one file in particular, context.xml, which resides in src/main/webapp/META-INF/context.xml. I have the following in pom.xml: build ... filters

Managing Test and Production Resources with Maven 2

2008-01-03 Thread Dhruva Reddy
I am working on a web application with JUnit 3 tests. We have resources which are different for running within the application (within the container) and within JUnit tests (outside the container). An example is persistence.xml (the configuration file for Hibernate Entity Manager). The