Re: [m2]release:prepare requires snapshots ?

2005-12-23 Thread Patrick O'shea
Hi, Should i be able to do a release:prepare from a parent project ? If the parent project does not have a snapshot version number, then it will fail. But if the parent has a snapshot number then it will fail when it runs the release:prepare at the child project because it can't release due to

Re: Resources in parent pom

2005-12-23 Thread Nitko2
I don't. parent pom -- groupIdsedamit-parent/groupId version1.0/version nameSedamIT Reactor/name artifactIdreactor/artifactId packagingpom/packaging build sourceDirectorysrc/sourceDirectory resources resource directorysrc/directory excludes

Maven embedder importance

2005-12-23 Thread Nitko2
Hi, I asked a question about embedder few days ago, but I didn't get any answer, so I suppose it is a bug. Anyway, I think it is very important to get maven embedder working. Everyone will benefit form it. Maven developers will have more time because there will be less questions on mailing

JDK path

2005-12-23 Thread Eugene Kirin
Hello to all! On my PC installed 2 JDK, 1.4.2 and 5.0. How should I point a path for maven 2 to use 5.0 JDK? Thanks for your responses! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: JDK path

2005-12-23 Thread Geoffrey
Set the JAVA_HOME environment variable. On windows it's with config panel/system/?/environment variables. Eugene Kirin wrote: Hello to all! On my PC installed 2 JDK, 1.4.2 and 5.0. How should I point a path for maven 2 to use 5.0 JDK? Thanks for your responses! -- With kind regards, Geoffrey

RE: Installation problem

2005-12-23 Thread Abbs, David A
The machine has no internet connection its on a closed network, should it still not reference the local plug-in store? I have another problem when trying to install on window I get this when I try to run mvn --version ERROR: M2_HOME is set to an invalid directory. M2_HOME =

Maven debugging HOWTO

2005-12-23 Thread Jochen Wiedmann
Hi, it took me some time to figure this out, so it seems worth sharing. Jochen -- Often it does seem a pity that Noah and his party did not miss the boat. (Mark Twain) Maven Debugging HOWTO === When looking for bugs in Maven itself or plugins, it saves a real lot of time, if

Re: what is dependencyManagement used for?

2005-12-23 Thread Gilles Scokart
No, it is possible. Just declare your dependencies in the parent pom (directly into dependencies not in dependencyManagment) and they will be inherited in all subproject. Could be usefull for some libraries like junit or log4j used accross all modules of an entire product. From: [EMAIL

Re: Maven-proxy functional with Maven 2?

2005-12-23 Thread Jörg Schaible
Carlos Sanchez wrote: What patch are you talking about? I'm using it and works fine http://jira.codehaus.org/browse/MAVENPROXY-36 Otherwise it is just annoying to replace broken elements from your local repo. Or worse, once M2 learns about updated hashes, the proxy would eliminate the

Re: Migrating site from forrest to maven

2005-12-23 Thread Arik Kfir
One thing that's preventing me from moving from Forrest to Maven is the lack of support for running the site - something like forrest run. In forrest, you can execute forrest run and it loads a jetty server which generates and serves the requested page on demand. It also reloads (and regenerates)

RE : Migrating site from forrest to maven

2005-12-23 Thread Olivier Lamy
Not migration but integrating the forrest documentation in the maven generated site with a report plugin. Look at : http://jira.codehaus.org/browse/MOJO-129 - Olivier -Message d'origine- De : Bruno Aranda [mailto:[EMAIL PROTECTED] Envoyé : mercredi 21 décembre 2005 19:52 À : Maven Users

Re[2]: JDK path

2005-12-23 Thread Eugene Kirin
I can't set JAVA_HOME for java 5.0 because it used by java 1.4.2 Set the JAVA_HOME environment variable. On windows it's with config panel/system/?/environment variables. Eugene Kirin wrote: Hello to all! On my PC installed 2 JDK, 1.4.2 and 5.0. How should I point a path for maven 2 to use

[m2] Antrun / Javac

2005-12-23 Thread Giles, Nick
I'm having distinct problems with the Antrun plugin for Maven2, specifically with the inheritance of properties and environment variables. With a simple test where the pom.xml calls a build.xml, which then uses javac, Ant complains about not being able to find com.sun.tools.javac.Main on the

RE: Re[2]: JDK path

2005-12-23 Thread Scokart Gilles
Just change your JAVA_HOME in the terminal you use maven. Personally when I work on a windows machine with multiple JDK installed, I use batch script to set a clean environment before doing anything (at least set a minimal PATH, and empty CLASSPATH and the correct JAVA_HOME). Gilles

Re: Installation problem

2005-12-23 Thread Tim Kettler
Hi, Abbs, David A schrieb: The machine has no internet connection its on a closed network, should it still not reference the local plug-in store? I have another problem when trying to install on window I get this when I try to run mvn --version ERROR: M2_HOME is set to an invalid directory.

maven.ejb.client.generate not having any effect

2005-12-23 Thread Graham Leggett
Hi all, I have created an EJB using XDoclet, which builds fine as maven ejb:install. I wanted to create a separate client jar for the ejb interfaces, and from the documentation I found, all that is required is to add this to project.properties (maven 1.0.2): maven.ejb.client.generate =

RE: multi module issues

2005-12-23 Thread Vincent Massol
Hi Kevin, -Original Message- From: Kevin Galligan [mailto:[EMAIL PROTECTED] Sent: jeudi 22 décembre 2005 20:19 To: users@maven.apache.org Subject: multi module issues Just wanted to comment quick on the message from Vincent (I just saw this message for the first time...). I

Re: multi module issues

2005-12-23 Thread Nigel Magnay
I'm actively working on improving merging support in cargo for web.xml and the container specific .xml files; also to support plugging in strategies for merging other files that may be in your WARs (e.g. struts-config.xml and other application specific items). Some of it is committed to cargo,

RE: [m2] Antrun / Javac

2005-12-23 Thread Scokart Gilles
Here is an example of doing wath you want, I think. plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-test-sources/phase configuration tasks

reverse dependency management

2005-12-23 Thread David Sag
We have many interdependent projects here. When someone releases a project upon which many other projects depend we need some way of knowing automatically which projects will also need to be retested. is there a m2 plugin that manages reverse dependency lookups? For simplicity I am really mostly

RE: [m2] Antrun / Javac

2005-12-23 Thread Giles, Nick
Thanks, the system dependency worked a treat. I'm surprised that the plugin needs it though... Cheers, Nick -Original Message- From: Scokart Gilles [mailto:[EMAIL PROTECTED] Sent: 23 December 2005 12:24 To: Maven Users List Subject: RE: [m2] Antrun / Javac Here is an example of doing

[m2] NPE in mvn site using maven from SVN

2005-12-23 Thread Arik Kfir
Hi, I've received the following exception while running mvn site on a multi-module project (using maven from SVN): java.lang.NullPointerException at

Re: [m2] Antrun / Javac

2005-12-23 Thread Chris Berry
Actually, I think this is a bug in the antrun Plugin. Ant, by definition, should have system properties available to it -- such as the ${ java.class.path} property you require or ${user.home} or whatever. In my local version of antrun I had to do the following fix in

Re: JDK path

2005-12-23 Thread Jörg Schaible
Eugene Kirin wrote: Hello to all! On my PC installed 2 JDK, 1.4.2 and 5.0. How should I point a path for maven 2 to use 5.0 JDK? Thanks for your responses! Do you mean running M2 with JDK 5 or just compiling with JDK 5? All answers so far addressed the first question. - Jörg

Re: Support for mojos written in Ant

2005-12-23 Thread Chris Berry
What exactly do you mean written in Ant?? Do you mean using Ant's Java Tasks directly from the Mojo Java?? That is pretty easily done. There is info on using Ant from Java here http://www-128.ibm.com/developerworks/websphere/library/techarticles/0502_gawor/0502_gawor.html FWIW, what I've done is

RE: Support for mojos written in Ant

2005-12-23 Thread Scokart Gilles
I guess the questions was related to the announcement of the 2.0.1 release (http://www.nabble.com/forum/ViewPost.jtp?post=1942776framed=y) That says : Also, some highlights associated with this release are: * Site documentation improvements * Support for mojos written in

RE: Presentation on Maven 2

2005-12-23 Thread Mordo, Aviran (EXP N-NANNATEK)
Nice presentation, Thank you -Original Message- From: Franck de Bruijn [mailto:[EMAIL PROTECTED] Sent: Thursday, December 22, 2005 5:10 PM To: 'Maven Users List' Subject: Presentation on Maven 2 Hi, I gave a presentation on Maven 2 for the yearly Java conference held within our

Re: [m2] m1 - m2 surefire problem

2005-12-23 Thread Jason van Zyl
Chris Berry wrote: Greetings, I am converting an m1 project to m2. Unfortunately I am getting different behavior in the test phase of the build. In m1, of course, it all runs fine. But under m2 (i.e. surefire) when my test accesses the Internet, it is has Proxy issues and fails, and when I work

Clarification on issues in JIRA

2005-12-23 Thread Shah, Miral
Hi All, Can somebody please provide me the resolution/status of the following issues? Issue 1) http://jira.codehaus.org/browse/MPIR-3?rc=1 Issue 2) http://jira.codehaus.org/browse/MCLOVER-5?rc=1 Thanks, Miral - To

RE: Clarification on issues in JIRA

2005-12-23 Thread Vincent Massol
Hi Miral, -Original Message- From: Shah, Miral [mailto:[EMAIL PROTECTED] Sent: vendredi 23 décembre 2005 16:45 To: Maven Users List Subject: Clarification on issues in JIRA Hi All, Can somebody please provide me the resolution/status of the following issues? Issue 1)

Re: [m2]release:prepare requires snapshots ?

2005-12-23 Thread dan tran
On 12/23/05, Patrick O'shea [EMAIL PROTECTED] wrote: Hi, Should i be able to do a release:prepare from a parent project ? Yes, parent and sub projects must be in snapshot state. If the parent project does not have a snapshot version number, then it will fail. But if the parent has a

Re: [m2] Antrun / Javac

2005-12-23 Thread dan tran
Chris, can you file a JIRA and send the patch in? ;-) On 12/23/05, Chris Berry [EMAIL PROTECTED] wrote: Actually, I think this is a bug in the antrun Plugin. Ant, by definition, should have system properties available to it -- such as the ${ java.class.path} property you require or

Running a single test?

2005-12-23 Thread Raymond N. Ritz
Is there a way to run a single junit test case in maven 2? Raymond Ritz

Re: Running a single test?

2005-12-23 Thread Milos Kleint
if there isn't I will have to write it I guess, I want to reuse it for Netbeans IDE M2 integration.. Milos On 12/23/05, Raymond N. Ritz [EMAIL PROTECTED] wrote: Is there a way to run a single junit test case in maven 2? Raymond Ritz

Re: Running a single test?

2005-12-23 Thread Chris Berry
mvn -Dtest=MyTest test Note: MyTest is your java test class. Note: Use it unqualified -- without its package name (e.g. without com.myco.) otherwise, this confuses m2 On 12/23/05, Raymond N. Ritz [EMAIL PROTECTED] wrote: Is there a way to run a single junit test case in maven 2? Raymond

RE: Re: Running a single test?

2005-12-23 Thread Raymond N. Ritz
Thanks Chris. This works. I have previously tried the mvn test -dtest=xxx.yyy.classname . do you know why this approach was chosen? This seems strange to me, but I may not know why this was done. Thanks Ray -Original Message- From: Chris Berry [mailto:[EMAIL PROTECTED] Sent:

[m2] example of reporting / usage converted from m1?

2005-12-23 Thread Mick Knutson
I am migrating m1 to m2, and am trying to build the site with all the reports I have been using in m1 and the build is complaining that I use reporting / instead of reports / Thanks Mick Knutson

M2 - How do I use a non standard directory structure for a web application

2005-12-23 Thread eric . starr
Trying to build a WAR file from a non-standard directory structure. projectA - src - Web Content - images - javascript - theme - WEB-INF - lib - web.xml Here is the relevent portion of my pom.xml

Re: Clarification on issues in JIRA

2005-12-23 Thread Brett Porter
Plugins are released separately. The reports have not been released recently. - Brett On 12/24/05, Shah, Miral [EMAIL PROTECTED] wrote: Thanks a lot, Vincent. Issue #1 is shown as fixed in JIRA but it still can reproduce the issue with Maven 2.0.1. Any ideas? Thanks, Miral 212-904-2014

Re: Support for mojos written in Ant

2005-12-23 Thread Brett Porter
On 12/24/05, Chris Berry [EMAIL PROTECTED] wrote: FWIW, what I've done is create a specialized Mojo that allows you to create an Ant build.xml and then build a reusable Mojo that use it. I submitted this into JIRA, but don't know if its been integrated yet. You can get the code here (its

EJB, XDoclet example

2005-12-23 Thread Srepfler Srgjan
Hi, Can someone post a working ejb and hibernate xdoclet project or archetype? Thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: M2 - How do I use a non standard directory structure for a web application

2005-12-23 Thread Koen Maes
this is very helpful ... mvn projecthelp:effective-pom and start from this output to make your modifications. On Friday 23 December 2005 21:04, [EMAIL PROTECTED] wrote: Trying to build a WAR file from a non-standard directory structure. projectA - src - Web Content

Re: Re: Running a single test?

2005-12-23 Thread Chris Berry
I don't know why. It could be a bug?? Happy Holidays, -- Chris On 12/23/05, Raymond N. Ritz [EMAIL PROTECTED] wrote: Thanks Chris. This works. I have previously tried the mvn test -dtest=xxx.yyy.classname . do you know why this approach was chosen? This seems strange to me, but I may not