How can I determine which dependencies are essential?

2007-10-17 Thread James Adams
I have a few dependencies in my pom.xml which pull in many transitive dependencies, and this results in a huge war artifact. I want to pare down the dependencies using exclusions in order that the resulting war will contain only the jars that it really needs, but my problem is that I don't know

How to determine the correct group and artifact IDs to use?

2007-05-30 Thread James Adams
I need to add dependencies in my pom.xml for several packages, but I'm not sure of what group and artifact ID to use for these. How can you determine what IDs to use within a dependency element for a package -- is there a directory available for this? For example I know I need a dependency for

Re: How to determine the correct group and artifact IDs to use?

2007-05-30 Thread James Adams
are looking for JAXWS. Search for JAXWS on that site and you'll find several hits -- in all likelihood, one of those will be what you're looking for. Wayne On 5/30/07, James Adams [EMAIL PROTECTED] wrote: I need to add dependencies in my pom.xml for several packages, but I'm not sure of what

How to build a EAR with EJB and WAR included ?

2005-02-14 Thread James Adams
I want to build an EAR file which contains a WAR and EJB JAR. Currently I am able to have all of my class files put into a single JAR, whether I do maven ejb or maven war, but really what I want is a goal which will 1. Create the WAR with all JSPs and Servlet classes. My project's directory

Re: How to build a EAR with EJB and WAR included ?

2005-02-15 Thread James Adams
this helps, Tim On Mon, 14 Feb 2005 15:49:35 -0800 (PST), James Adams [EMAIL PROTECTED] wrote: I want to build an EAR file which contains a WAR and EJB JAR. Currently I am able to have all of my class files put into a single JAR, whether I do maven ejb or maven war, but really what I

Re: How to build a EAR with EJB and WAR included ?

2005-02-16 Thread James Adams
Thanks for the help so far. After some initial confusion I've come up with a working solution. I have broken my project up into three separate projects (myproj-util, myproj-ejb, and myproj-web) and created an overall project for creating the EAR (myproj-app). I found

RE: How to build a EAR with EJB and WAR included ?

2005-02-16 Thread James Adams
maven.multiproject.includes=**/project.xml maven.multiproject.excludes=project.xml You type in your root directory : maven :-) Arnaud -Message d'origine- De : James Adams [mailto:[EMAIL PROTECTED] Envoyé : mercredi 16 février 2005 22:27 À : Maven Users List Objet : Re: How

Re: How to build a EAR with EJB and WAR included ?

2005-02-17 Thread James Adams
David your approach looks to be as simple as possible. The only problem is that Eclipse really doesn't allow me to have my entire project under a root directory, hence I'll probably take Arnaud's suggestion and create a root project at the same level as the other projects/modules. With this

Creating a SAR for JBoss MBeans

2005-02-17 Thread James Adams
I would like to create a SAR which contains JMX MBean classes and a META-INF with a deployment descriptor. Essentially the layout of the SAR file is the same as an EJB JAR, but I suspect that I shouldn't be using the ejb plugin for this. However I don't see any other plugins which look to be

Re: How to build a EAR with EJB and WAR included ?

2005-02-17 Thread James Adams
with a root project with no code, and a lot of subprojects. I don't know what they use to set up eclipse however. david jencks On Feb 17, 2005, at 8:50 AM, James Adams wrote: David your approach looks to be as simple as possible. The only problem is that Eclipse really doesn't

Broken EAR Goal: ear:generate-ear-descriptor

2005-02-17 Thread James Adams
It seems that the ear:generate-ear-descriptor goal is not working, at least not for me. Is this a known bug, or have I perhaps corrupted my Maven installation in some way ? Below are the errors I see when running maven ear:generate-ear-descriptor: __ __ | \/

Re: Broken EAR Goal: ear:generate-ear-descriptor

2005-02-18 Thread James Adams
Thanks Michal. How would I have figured this out for myself ? There doesn't look to be a column in any of the Goals documents specifying whether or not a goal can be called directly. --James --- Michal Maczka [EMAIL PROTECTED] wrote: James Adams wrote: It seems that the ear:generate

Re: How to build a EAR with EJB and WAR included ?

2005-02-22 Thread James Adams
As far as doing my complete EAR build with a single Maven command I was unable to get either of the proposed solutions to work. In any event I really appreciate all of the help with this, it has been an informative exercise. Below is a summary of my current solution, which uses a simple shell

Can Maven generate Ant build files ?

2005-03-17 Thread James Adams
I want to generate build files for Ant (build.xml) which replicate what Maven is doing under the covers when it builds a JAR/WAR/EAR. Can this be done, and if so, how? I was told by a colleague that this can probably be done, but I can't find anything about it in the Maven documentation. Thanks

Tests run fine in NetBeans, but fail using command line Maven

2008-12-15 Thread James Adams
I have several tests which I can run individually from NetBeans or at the command line and they pass OK, but if I run mvn clean install from command line several of these same tests will fail. This seems odd -- shouldn't the tests either pass or fail regardless of whether or not they're being

Re: Tests run fine in NetBeans, but fail using command line Maven

2008-12-16 Thread James Adams
The tests run fine when I run them individually using Maven at the command line (or from within NetBeans or Eclipse -- I don't think the IDE is an issue since the same thing happens in the IDE as at the command line): $ mvn -Dtest=MultipleDaoTest test-compile surefire:test [INFO] Scanning for

Re: Tests run fine in NetBeans, but fail using command line Maven

2008-12-16 Thread James Adams
Geoffrey Wiseman wrote: On Tue, Dec 16, 2008 at 5:20 PM, James Adams monoco...@gmail.com wrote: The tests run fine when I run them individually using Maven at the command line (or from within NetBeans or Eclipse -- I don't think the IDE is an issue since the same thing happens

Re: Tests run fine in NetBeans, but fail using command line Maven

2008-12-17 Thread James Adams
Thanks a lot for your attempts to help me solve this problem. This appears to be unrelated to Maven, sorry to bother this group with a non-Maven issue. --James Geoffrey Wiseman wrote: On Tue, Dec 16, 2008 at 5:45 PM, James Adams monoco...@gmail.com wrote: Yes I get the same thing from

Duplicate class warnings when using shade plugin

2009-06-09 Thread James Adams
I am building my JAR file using the shade plugin in order to give me an all-in-one JAR artifact which contains all dependency JARs. When I build using mvn clean install I always get thousands of message like the following, indicating that there's a duplicate class file in a JAR in the