Re: Real World User Issues with Maven

2008-03-21 Thread Stuart McCulloch
On 21/03/2008, Patrick Moore <[EMAIL PROTECTED]> wrote: > > Comments > > On Fri, Mar 21, 2008 at 5:07 PM, Brian E. Fox <[EMAIL PROTECTED]> > wrote: > > > >2) We have lots of ant run-* targets I like to use. > > >My response: Letting them know of the mvnrun script I've checked into > > >our sour

Re: Real World User Issues with Maven

2008-03-21 Thread Wendy Smoak
On Fri, Mar 21, 2008 at 7:29 PM, Patrick Moore <[EMAIL PROTECTED]> wrote: > 1. "mvn deploy" on the top level - I only want to deploy the war (which is > in the 'web' module). Mvn deploys everything. Not at all obvious how to > change that behavior. Rather than spend any more time on this issue,

Re: Real World User Issues with Maven

2008-03-21 Thread Patrick Moore
Comments On Fri, Mar 21, 2008 at 5:07 PM, Brian E. Fox <[EMAIL PROTECTED]> wrote: > Thanks for the feedback Joshua, a few comments below: > > >1) I can't do the equivalent of ant -projecthelp > >Pointing out that all the common maven commands are documented on the > >wiki doesn't seem to alle

RE: Customizing Build order

2008-03-21 Thread Brian E. Fox
What you are asking for doesn't exist, but is covered by some proposals: http://docs.codehaus.org/display/MAVEN/Make+Like+Reactor+Mode http://jira.codehaus.org/browse/MNG-2576 http://jira.codehaus.org/browse/MNG-1694 The reordering only happens when you build from a parent pom that aggregates all

RE: Real World User Issues with Maven

2008-03-21 Thread Brian E. Fox
Thanks for the feedback Joshua, a few comments below: >1) I can't do the equivalent of ant -projecthelp >Pointing out that all the common maven commands are documented on the >wiki doesn't seem to alleviate this concern, which I admit really >puzzles me. Has anyone else encountered this compla

[m2] cobertura code coverage for dbunit test classes with testNG and OpenJPA?

2008-03-21 Thread Mick Knutson
I have a Spring, OpenJPA, DBUnit, TestNG, HSQL build with Maven 2.0.8 and there are 20 DAO tests that now pass. I am trying to now add cobertura to this. I have used Cobertura extensively in the past, but never with DBUnit. So, I am getting the report to generate, but everything is zero. So it app

Real World User Issues with Maven

2008-03-21 Thread Joshua ChaitinPollak
We've been living with parallel Ant and Maven build systems for 6 to 9 months now, and most developers are mostly onto Maven, but some still use Ant from time to time. I just polled the rest of my development team for who still uses our ant build system and why. So Maven core developers,

RE: How to get a list or inventory of plugins in use for a goal in a POM?

2008-03-21 Thread Brian E. Fox
Yep, and I will move the code to a shared component and add a new help goal to use it. -Original Message- From: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2008 3:20 PM To: Maven Users List Subject: Re: How to get a list or inventory of plugins in use for a goal in a

RE: Build Error in Maven

2008-03-21 Thread Brian E. Fox
Good idea. I pulled this into 2.0.10 -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2008 1:36 PM To: Maven Users List Subject: Re: Build Error in Maven Filed as new improvement MNG-3474... http://jira.codehaus.org/browse/MNG-3474 Wayne On 3/21/08,

How to create new Java class at runtime while creating project out of Archetype

2008-03-21 Thread abpb2006
Hi, I have created plain java app archetype. I also want to give proivide a blank java Interface created from my archtype when users create the project from my archtype. But the cacth is i want to create the java Interface fro them with the name that they provided for ARTIFACTID. e.g. if users

Re: Build Error in Maven

2008-03-21 Thread Wayne Fay
Absolutely. Maven's process is java.exe vs iexplore.exe. So the Windows firewall can be a problem, or various additional firewall and anti-virus software, etc. Windows is just a hassle to deal with when it comes to these kinds of issues. Too many potential problem spots. Wayne On 3/21/08, Sean H

Re: How to get a list or inventory of plugins in use for a goal in a POM?

2008-03-21 Thread Dennis Lundberg
There is an addition to the enforcer that can handle this: http://jira.codehaus.org/browse/MENFORCER-15 It will be available in version 1.0, which has not yet been released. Wayne Fay wrote: The original email sounds like a bug report or rather enhancement request. Those things should be filed

RE: Build Error in Maven

2008-03-21 Thread Sean Hennessy
Does windows OS differentiate Internet Exploder firewall permissions, allow access to http://repo1.maven.org, however maven application firewall permission as separate? -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2008 11:30 AM To: Maven Users List

Re: Build Error in Maven

2008-03-21 Thread Wayne Fay
How do you know you're not using a proxy? It is pretty simple to set up a transparent (aka intercepting) web proxy like squid. Perhaps try TraceTCP and make sure there's no proxy: http://tracetcp.sourceforge.net/usage_proxy.html There is no good reason why this should not work if you do not have

RE: Build Error in Maven

2008-03-21 Thread maluri
Yes. I am able to access http://repo1.maven.org from my desktop without a proxy. Brian E Fox wrote: > > Go back to my first question: > Are you able to access http://repo1.maven.org from your desk without a > proxy? > > > -Original Message- > From: maluri [mailto:[EMAIL PROTECTED]

Re: How to get a list or inventory of plugins in use for a goal in a POM?

2008-03-21 Thread Wayne Fay
The original email sounds like a bug report or rather enhancement request. Those things should be filed in the Maven JIRA. And I agree that this is not currently available, but might be a nice thing to add. So I'd file this as an Improvement in JIRA against the help plugin, and perhaps they can ad

Re: Build Error in Maven

2008-03-21 Thread Wayne Fay
Filed as new improvement MNG-3474... http://jira.codehaus.org/browse/MNG-3474 Wayne On 3/21/08, Wayne Fay <[EMAIL PROTECTED]> wrote: > I think we might seriously want to throw a little code in core-uber > that is delivered with the installation that can attempt to access the > Internet without an

Re: Build Error in Maven

2008-03-21 Thread Wayne Fay
I think we might seriously want to throw a little code in core-uber that is delivered with the installation that can attempt to access the Internet without any proxy, and then some more code that uses the settings.xml proxy info, to be used for debugging these kinds of situations. So we can tell p

RE: Build Error in Maven

2008-03-21 Thread Brian E. Fox
Go back to my first question: Are you able to access http://repo1.maven.org from your desk without a proxy? -Original Message- From: maluri [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2008 11:41 AM To: users@maven.apache.org Subject: RE: Build Error in Maven Hi Brian, I deleted

Re: Build Error in Maven

2008-03-21 Thread Wayne Fay
Not having a settings.xml file is normal -- this is not installed along with the other files at installation. Unfortunately, it is impossible for anyone outside of your network to help you configure proper proxy settings. Please work with your local network administrator to make it work. But right

Re: Build Error in Maven

2008-03-21 Thread maluri
Hi Wayne, Somehow I don't have settings.xml file under .m2. So I created one. My settings.xml file looks like this: But still it doesn't work. Same build error is showing up for any command I type except for mvn -v http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSc

Re: Build Error in Maven

2008-03-21 Thread Wayne Fay
It sounds like you have not properly configured your web proxy in settings.xml. http://maven.apache.org/guides/mini/guide-proxies.html Wayne On 3/21/08, maluri <[EMAIL PROTECTED]> wrote: > > Hi Brian, > I deleted the repository folder under .m2\. But still I am facing the same > problem. 2.0.9 is

RE: Build Error in Maven

2008-03-21 Thread maluri
Hi Brian, I deleted the repository folder under .m2\. But still I am facing the same problem. 2.0.9 is not showing under maven downloades in Apache.org site. I could only work with 2.0.8. I have uninstalled and installed the maven several times by downloading from different mirros in apache.

Re: Customizing Build order

2008-03-21 Thread Jason van Zyl
On 21-Mar-08, at 7:39 AM, [EMAIL PROTECTED] wrote: And rip out the functionality from poms too. Instead, have maven support "module.xml" files which contain a list of definitions and nothing else. Then the confusion over parent-poms vs poms that just happen to be in the parent directory would

Re: Customizing Build order

2008-03-21 Thread Joshua ChaitinPollak
The problem still exists. If you had a modules.xml, you're still supporting building multiple projects at once. As long as you support building multiple projects at once, you have two options: 1) Support all the possible intricacies of inter-phase dependencies 2) ONLY accept 'install' and hig

Re: Customizing Build order

2008-03-21 Thread [EMAIL PROTECTED]
And rip out the functionality from poms too. Instead, have maven support "module.xml" files which contain a list of definitions and nothing else. Then the confusion over parent-poms vs poms that just happen to be in the parent directory would go away too. [EMAIL PROTECTED] schrieb: > I'd rather

Re: Customizing Build order

2008-03-21 Thread [EMAIL PROTECTED]
I'd rather go the other way. Rip out the ability to reference parent poms using relative paths, and these sort of reports would go away, because it's *clear* that building A3 will not cause B1 or B2 to be built. Using relative paths to poms solves a small subset of problems, in smallish projects.

Re: Customizing Build order

2008-03-21 Thread Joshua ChaitinPollak
I've noticed the following behavior, which I find a bit frustrating: Using Amit's project layout below, if I cd into A3 and run 'mvn compile', its going to use the B1 and B2 projects from my local repository, even if I referenced a parent pom in A3. I wish Maven would use the parent pom to

Re: surefire and testng integration issues with surefire-2.4.2

2008-03-21 Thread Jason van Zyl
On 20-Mar-08, at 11:16 PM, Jason Chaffee wrote: So, I thought I would share something positive too. :) I would consider my company a maven success story. In my time here, we moved from no build system or perl scripts, to ant, to maven 1, and now to maven 2. In my opinion, and the opinio

Re: [assembly] howto include a jar from my local repository ?

2008-03-21 Thread nicolas de loof
That's a nice solution, thanks ! Nicolas. 2008/3/21, Joshua ChaitinPollak <[EMAIL PROTECTED]>: > > What about this: > > add the oracle driver as a dependency of the parent pom, and then use > a dependencySet to get it into the assembly, rather than the > moduleSet. Other subprojects would then de

Re: [assembly] howto include a jar from my local repository ?

2008-03-21 Thread Joshua ChaitinPollak
What about this: add the oracle driver as a dependency of the parent pom, and then use a dependencySet to get it into the assembly, rather than the moduleSet. Other subprojects would then depend on the oracle driver as well, but I can think of one solution to that, there might be another

Re: [assembly] howto include a jar from my local repository ?

2008-03-21 Thread nicolas de loof
I also have tried this solution, using : com.capgemini.map:map-jrules-webapp:war false lib com.oracle:ojdbc14 As my assembly runs at parent POM level (I need the EAR + some bacths JAR in the assembly) I

Re: pde-maven-plugin calls wrong ant target

2008-03-21 Thread amit kumar
Thanks Jeroen. That would be a great help. Although I am not hands on with svn and don't know how to checkout a particular version from it. But definitely would give it a shot. I am using eclipse 3.3 and maven 2.0.7 Thanks and regards, Amit On Wed, Mar 19, 2008 at 12:37 PM, Jeroen Lankheet <[EMAI

Re: Plugins vs Ant tasks

2008-03-21 Thread Alexandre Touret
In my opinion, if you want to produce a 'one shot' action and you dont care about reusability - which is the case of your touch plugin- you may run an antrun plugin inside a phase. Else, if you want to produce a reusable action, you should work to a mojo plugin Alexandre Saloucious wrote: >

Re: [assembly] howto include a jar from my local repository ?

2008-03-21 Thread Joshua ChaitinPollak
Have you tried something like this in your assembly description: lib javax.servlet:jstl This takes all of our projects dependencies except the java.servlet:jstl and puts them in the lib directory. You can create

Re: Customizing Build order

2008-03-21 Thread amit kumar
How to list that dependency? I do have the dependency of A3 on B1 and B2(in the tag as jar). But that doesn't seems to make Maven go to build B1 and B2 when building A3 because I guess it looks in the repository, if not there it throws an error. If it has been working in this way, it would have b

Re: Plugins vs Ant tasks

2008-03-21 Thread Dennis Lundberg
Saloucious wrote: Hi, i would like to know what is recommanded by Maven Team when a procces does not fit with any plugins/goals provides by Maven. Just for example, if i want to touch a file, what is better : create a my.company.plugin.touch or add a simple antrun task ? If you create your ow

Re: [assembly] howto include a jar from my local repository ?

2008-03-21 Thread nicolas de loof
Seems you misunderstood my issue : the orcale driver is deployed in my corporate repo, my webapp has a dependency on it (we use com.oracle.Blob object), but is set as provided as the jndi DataSource is created by the J2EE server To respect my customer packaging, I need to provided both the EAR a

Suppressing the logging in PDE build.

2008-03-21 Thread amit kumar
Hi, I am building my eclipse build using pde-maven-plugin. Is there anyway I can suppress the warnings and Info logging that happens on the screen? Regards, Amit

Plugins vs Ant tasks

2008-03-21 Thread Saloucious
Hi, i would like to know what is recommanded by Maven Team when a procces does not fit with any plugins/goals provides by Maven. Just for example, if i want to touch a file, what is better : create a my.company.plugin.touch or add a simple antrun task ? Thanks -- View this message in context:

Re: [assembly] howto include a jar from my local repository ?

2008-03-21 Thread Heinrich Nirschl
On Fri, Mar 21, 2008 at 11:51 AM, nicolas de loof <[EMAIL PROTECTED]> wrote: > Hello, > > for packaging purpose I need to include the Oracle driver in a "/lib" folder > of my dist tar.gz (created by the assembly plugin) > My web application declares this dependency as provided, so it is not > i

Re: Problem with Maven making internet connection drop out

2008-03-21 Thread Heinrich Nirschl
On Fri, Mar 21, 2008 at 8:54 AM, Wim Deblauwe <[EMAIL PROTECTED]> wrote: > Hi, > > I have a problem with running the Atlassian PDK. They use Maven 2. See > > http://confluence.atlassian.com/display/DEVNET/How+to+Build+an+Atlassian+Pluginfor > their instructions. > > When I try to run mvn idea:

Re: How to get a list or inventory of plugins in use for a goal in a POM?

2008-03-21 Thread Paul Spencer
Dennis, I have, and do, use this command, but it does not add the version number to the plugin when no version for the plugin exist in the POM. Also, when a plugin is not defined in the POM, it is not listed. Paul Spencer Dennis Lundberg wrote: I find this command helpful: mvn help:effecti

Re: How to both compile and generate a .tar.gz ?

2008-03-21 Thread Laurent Vaills
On Fri, 2008-03-21 at 12:12 +0100, [EMAIL PROTECTED] wrote: > Laurent Vaills schrieb: > > Hi, > > > > We are moving our build system from ant to maven. > > We have some components that contains some Java classes and some shell > > scripts. Our ant-build system compiles the Java classes and then

Re: maven2 jira plugin?

2008-03-21 Thread Dennis Lundberg
Emmanuel Hugonnet wrote: Hi Dennis, I take advantage of this thread to ask you a question. How do I release our (Rémy is the co-author of the plugin) plugin on MOJO now ? I have seen that you have updated the reference to the MCHANGES-78 so nothing is preventing a release of this plugin. Emmanuel

Re: How to get a list or inventory of plugins in use for a goal in a POM?

2008-03-21 Thread Dennis Lundberg
I find this command helpful: mvn help:effective-pom It prints the entire pom of your artifact, after inheritance and interpolation has been applied. Paul Spencer wrote: I would like to get an inventory of plugins used by my POM for the purpose of explicitly setting their version in my POM.

Re: How to both compile and generate a .tar.gz ?

2008-03-21 Thread [EMAIL PROTECTED]
Laurent Vaills schrieb: > Hi, > > We are moving our build system from ant to maven. > We have some components that contains some Java classes and some shell > scripts. Our ant-build system compiles the Java classes and then > generates a .tar.gz containing the shell scripts and the Java classes.

How to both compile and generate a .tar.gz ?

2008-03-21 Thread Laurent Vaills
Hi, We are moving our build system from ant to maven. We have some components that contains some Java classes and some shell scripts. Our ant-build system compiles the Java classes and then generates a .tar.gz containing the shell scripts and the Java classes. So we now want to do the same with

[assembly] howto include a jar from my local repository ?

2008-03-21 Thread nicolas de loof
Hello, for packaging purpose I need to include the Oracle driver in a "/lib" folder of my dist tar.gz (created by the assembly plugin) My web application declares this dependency as provided, so it is not included in WEB-INF/lib I tried to setup a with ${settings.localRepository} as a path, but

RE: war overlay and merging localized resources

2008-03-21 Thread Brian E. Fox
Aha. I am not aware of something that merges files but it's probably not a hard plugin to write. -Original Message- From: Leonard Gestrin [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 10:50 PM To: Maven Users List Subject: RE: war overlay and merging localized resources Thanks

Re: Problem with Maven making internet connection drop out

2008-03-21 Thread Stephen Connolly
it's on cvs On Fri, Mar 21, 2008 at 8:23 AM, Wim Deblauwe <[EMAIL PROTECTED]> wrote: > I will try, what is the svn url? > > 2008/3/21, Stephen Connolly <[EMAIL PROTECTED]>: > > > > Does the same thing happen when building Hudson? > > > > Hudson has such a mad collection of dependencies that it sh

Re: Problem with Maven making internet connection drop out

2008-03-21 Thread Wim Deblauwe
I will try, what is the svn url? 2008/3/21, Stephen Connolly <[EMAIL PROTECTED]>: > > Does the same thing happen when building Hudson? > > Hudson has such a mad collection of dependencies that it should cause the > same issue for you IMHO. > > -Stephen > > On Fri, Mar 21, 2008 at 7:54 AM, Wim Debl

Re: Problem with Maven making internet connection drop out

2008-03-21 Thread Stephen Connolly
Does the same thing happen when building Hudson? Hudson has such a mad collection of dependencies that it should cause the same issue for you IMHO. -Stephen On Fri, Mar 21, 2008 at 7:54 AM, Wim Deblauwe <[EMAIL PROTECTED]> wrote: > Hi, > > I have a problem with running the Atlassian PDK. They u

Problem with Maven making internet connection drop out

2008-03-21 Thread Wim Deblauwe
Hi, I have a problem with running the Atlassian PDK. They use Maven 2. See http://confluence.atlassian.com/display/DEVNET/How+to+Build+an+Atlassian+Pluginfor their instructions. When I try to run mvn idea:idea, everything seems to work for a while, but then in the midst of the work being done, my