Maven for existing ANT project

2007-09-04 Thread ANU RADHA
Hi All, Currently we have existing project which is build using ANT. Our vision is to Integrate Maven2 into it. So that Maven can be used for site generation containing reports etc. We donot want to shift the build to Maven. Currently we have many context specfic build.xml and a common

RE: Classpaths behaviour in mvn

2007-09-04 Thread Johan Iskandar
Great, Thanks a lot, it worked like a charm :) -Original Message- From: Tim Kettler [mailto:[EMAIL PROTECTED] Sent: Monday, September 03, 2007 8:38 PM To: Maven Users List Subject: Re: Classpaths behaviour in mvn Hi, Johan Iskandar schrieb: Hi, While I was running this

Re: Retrieving version of the pom itself - not the child projects pom

2007-09-04 Thread PeterNilsson
Hi, Sorry for being unclear. What I need is a way to in the parentpom access the version of the parent pom regardless of where the builld was started from. In your example I want to write something in pom.xml (not my-module/pom.xml) that when the build is run from either parent, child or

RE: Cyclic dependency problem

2007-09-04 Thread COPPENS, Fabien
Any ideas ?? De : COPPENS, Fabien Envoyé : mardi 28 août 2007 17:32 À : 'users@maven.apache.org' Objet : Cyclic dependency problem Hi all. I have just joined the list, so please forgive me if the exact same question has already been posted. Here is my

releasing 2.4

2007-09-04 Thread Marat Radchenko
Hi everyone! I've got two questions about surefire 2.4 release. First, could you tell me expected date/week/month/year when it will be released? Second, what are the reasons that surefire development process is so slow? Maybe you do not have enough developers? If so then I could join you in

Re: Cyclic dependency problem

2007-09-04 Thread Insitu
Hello, I would suggest breaking explicitly the dependency by creating separate projects for the ejbs and the pure java code they encapsulate and expose. HTH -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com

Re: Cyclic dependency problem

2007-09-04 Thread Tim Kettler
Hi, the excludes won't help here. Maven calculates the dependencies based on the projects in your reactor build. And as both, the main ejb-jar and the ejb-client-jar are built by the same project the cyclic dependency remains. Your best option is to factor out the exposed ejb interfaces to

Maven for existing ANT project

2007-09-04 Thread ANU RADHA
Hi All, Currently we have existing project which is build using ANT. Our vision is to Integrate Maven2 into it. So that Maven can be used for site generation containing reports etc. We donot want to shift the build to Maven. Currently we have many context specfic build.xml and a common

Reg: problem using ant task

2007-09-04 Thread prabodh.mitra
Hi I am using Maven2 in my project to build the target. I am trying to use ant task in my pom.xml using the maven-antrun-plugin plugin Following is the snippet of my pom.xml plugins plugin groupIdorg.apache.maven.plugins/groupId

Re: Reg: problem using ant task

2007-09-04 Thread Tim Kettler
Hi, this is a question about using maven, not about developing it. Next time please ask such questions on the user list [1]. In your pom you have a nesting of plugin/executions/configuration/. You missed the execution/ tag: plugin/executions/execution/configuration/ See here for a

Re: Test resources in final release ?

2007-09-04 Thread Michael McCallum
be careful that your ide is not putting resources into the target directory... eclipse should default to bin/ which is fine... On Tuesday 04 September 2007 14:01, Wayne Fay wrote: Try mvn help:effective-pom to see all the various configuration options you've set. Also try mvn -U package to

Re: Test resources in final release ?

2007-09-04 Thread Damien Lecan
Hello, You have got another problem : your app has been released with SNAPSHOT dependencies. I have got an awareness of this. Thanks for pointing this out again. I was not able to found spring-orm 1.1 tag in your svn (http://svn.castor.codehaus.org/browse/castor/castor-spring/tags)

release plugin configuration

2007-09-04 Thread Marcel Schutte
Hello all, Is there a way to specify different configurations for the release:prepare and release:perform goals without using profiles? Specifically, what I'm trying to do is pass configuration arguments-Dmaven.test.skip=false/arguments /configuration

Re: Q4E, a new Eclipse plugin for Maven

2007-09-04 Thread Adam
This is pretty sweet. Is there any way to get it to work when using the JDK instead of the JRE in Eclipse (I have to use the JDK for MyEclipse)? When I run install using JDK 1.6.0_2 I get build errors related to the the JDK, when running with the same version JRE it's OK though. On 9/4/07,

Re: Default Schedule do not work

2007-09-04 Thread Mac-Systems
Actually i have 3 Builds running none is running any more. I have a SVN trunk and two branches in schedule. I configured Continuum that all are using the default schedule ... Why cannot Continuum not do this ? Iterate over all Projects an invoke the build (mabye a bit naive impl.). May there

Re: Running heavy tests in the build lifecycle

2007-09-04 Thread Kjetil Kjernsmo
On Monday 03 September 2007 18:06:48 Dave Feltenberger wrote: One approach I've seen used is to have a standard naming convention on your test cases.  Maven will automatically run classes named *Test.java (and I believe any class that starts with Test), OK, so Test* classes and files named

Re: release plugin configuration

2007-09-04 Thread Arnaud WEBER
Hello, I believe the usage of profiles is the right way to pass arguments. But you're wrong saying you have to specify which profile when invoking the goals. In your case, you can do something like that : profile idenv-dev/id properties

Re: Running heavy tests in the build lifecycle

2007-09-04 Thread Insitu
Kjetil Kjernsmo [EMAIL PROTECTED] writes: Looking through the source tree, I see that we do allready have a naming convention, but in terms of directory naming: test: functional/ integration/ performance/ unit/ where a test may have a path like:

site deployment to url without parent information

2007-09-04 Thread Martin Testrot
Hello, I try to configure the site deployment for our projects. Because I don't want to include a distributionManagement.site section in all of our project poms I tried to centralize these settings in a common parent pom (rootpom) which is used as parent for all other projects. The site

Re: release plugin configuration

2007-09-04 Thread Marcel Schutte
Hi Arnaud, Thanks for your reply. You're right that I can use activeProfile to make one profile default. But that won't help in my situation: I would need some 'profileA' active when running release:prepare and 'profileB' active for release:perform. This is something I think can only be done

Re: Running heavy tests in the build lifecycle

2007-09-04 Thread Dave Feltenberger
I think Arnaud's advice is right if you're going to keep one project for everything - set up the profiles. You may need to re-arrange the source tree a little bit, though - looks like you have several different source trees, one for each category of tests. I'm not sure how the surefire plugin

Re: Test resources in final release ?

2007-09-04 Thread Werner Guttmann
Yes, I am aware of this. It was meant to be a proper release, with just an announcement missing (which I am now holding back). Werner Damien Lecan wrote: Hello, You have got another problem : your app has been released with SNAPSHOT dependencies. I have got an awareness of this. Thanks for

Re: release plugin configuration

2007-09-04 Thread Michael McCallum
why do you want to skip tests in release:prepare? On Wednesday 05 September 2007 02:20, Marcel Schutte wrote: Hi Arnaud, Thanks for your reply. You're right that I can use activeProfile to make one profile default. But that won't help in my situation: I would need some 'profileA' active when

Eclipse setup for Multi-module project

2007-09-04 Thread Brian Smith
Has anyone come up with a decent way to setup a project in Eclipse that will support a multi-module project? The best example I've seen is in the Better Builds with Maven book ( http://www.devzuz.com/web/guest/products/resources#BBWM - Chapter 4) but I'm having some difficulty. The book is

How to get dependencies with scope provided in a plugin

2007-09-04 Thread Deneux, Christophe
Hi all, I'm writting a maven plugin. I have a goal running on the phase pre-integration-test. For a continuous integration context, in this goal, I want to deploy external artefacts, available on a repository, so they are marked as provided in the section dependencies of the current

Re: Eclipse setup for Multi-module project

2007-09-04 Thread Graham Leggett
On Tue, September 4, 2007 5:08 pm, Brian Smith wrote: Has anyone come up with a decent way to setup a project in Eclipse that will support a multi-module project? I normally set up the project in maven, then run mvn eclipse:eclipse, and then use import existing project into workspace. Let

Example of setting up a maven 2 J2ee project

2007-09-04 Thread Eric Wood
Folks: I'm new to maven and I'm looking for a good reference to how to set up a j2ee application using maven 2.0. Are there and good documents or examples out there that I could use to get started? Eric

RE: Example of setting up a maven 2 J2ee project

2007-09-04 Thread Cort, Tom
http://maven.apache.org/plugins/maven-archetype-plugin/examples/j2ee-sim ple.html | -Original Message- | From: Eric Wood [mailto:[EMAIL PROTECTED] | Sent: Tuesday, September 04, 2007 11:22 AM | To: users@maven.apache.org | Subject: Example of setting up a maven 2 J2ee project | | Folks:

Re: Eclipse setup for Multi-module project

2007-09-04 Thread Nick Stolwijk
Nick Stolwijk wrote: In your daytrader directory, run mvn eclipse:eclipse. This will create the .project and .classpath files of the child modules with dependencies for eclipse between them if necessary. Then, in Eclipse, import your projects. If you want your parent pom.file easily

Re: xdoclet plugin and weblogic-ejb-jar.xml descriptor

2007-09-04 Thread Brian Smith
I'm using Weblogic 9.2. I think you're correct in that the weblogic plugin only works for versions 8.x and earlier. I haven't found any great solutions for this hurdle yet. On 8/31/07, Scott Ryan [EMAIL PROTECTED] wrote: What version of Weblogic are you using? You can use the weblogic tag

Re: Eclipse setup for Multi-module project

2007-09-04 Thread Nick Stolwijk
In your daytrader directory, run mvn eclipse:eclipse. This will create the .project and .classpath files of the child modules with dependencies for eclipse between them if necessary. Then, in Eclipse, import your projects. If you want your parent pom.file easily accessible from eclipse, make a

Re: Continuum 1.1.0-beta-2 UI performance

2007-09-04 Thread Emmanuel Venisse
We know that 1.1 is a little slower than 1.0.3 because lot of new request and full security added but 25s for 17 modules isn't a normal perf result Emmanuel Mrinal Mukherjee a écrit : Same problem with me. Slow UI. I had this problem as soon as I upgraded to the newer version of continuum. I

Re: Eclipse setup for Multi-module project

2007-09-04 Thread Brian Smith
Nick, I'm trying to keep things really small at this point (like HelloWorlds) but I setup a directory structure similar to the DayTrader and performed the import into eclipse. First thing I noticed (and I think this is what you mentioned) is that the top level directory is not there. Because of

Re: Eclipse setup for Multi-module project

2007-09-04 Thread Graham Leggett
On Tue, September 4, 2007 7:12 pm, Brian Smith wrote: First thing I noticed (and I think this is what you mentioned) is that the top level directory is not there. Because of this, I can't run Maven (mvn install) because the parent pom is not available. Why is the top level directory not

Re: Tomcat Manager username

2007-09-04 Thread Mark Hobson
On 03/09/07, Alexandre Gomes [EMAIL PROTECTED] wrote: Hi, based on [1], how can I pass a diferent username for Tomcat Manager, using -D command option (and not settings.xml) ? I tried -D tomcat.server.username=root, but it doesn't seem to work. [1]

Re: Eclipse setup for Multi-module project

2007-09-04 Thread Francois Fernandes
One little Note about the importing of the projects: Ensure that Copy projects into workspace is deselected. Event the top level project can be imported into eclipse. To do this you generate the project files of the submodules and import them. Then create a new Project (not Java, a General

Re: Q4E, a new Eclipse plugin for Maven

2007-09-04 Thread Mark Hobson
Aside from license issues, I'm confused as to why we now have two Maven plugins for Eclipse? Surely it'd make sense for the two projects to collaborate to accelerate development, rather than having two plugins that are both rather thin on the ground in terms of features? Mark On 04/09/07,

Re: Q4E, a new Eclipse plugin for Maven

2007-09-04 Thread Antonio Petrelli
2007/9/4, Mark Hobson [EMAIL PROTECTED]: Aside from license issues, I'm confused as to why we now have two Maven plugins for Eclipse? Surely it'd make sense for the two projects to collaborate to accelerate development, rather than having two plugins that are both rather thin on the ground in

Odd dependency POM validation issue

2007-09-04 Thread Eric Miles
I have a dependency for my project that is provided by another company. I have built, installed, and deployed this other dependency in my local repository as well as our company's internal repository. This dependency, has something that is causing an issue in it's dependency section. It has

Project or module depends on assembly of another?

2007-09-04 Thread Joshua ChaitinPollak
Hello, I am trying to setup a project like this: MyProj/ +---pom.xml +---MyProj-Core/pom.xml +---MyProj-Integration-Tests/pom.xml MyProj-Core and MyProj-Integration-Tests are both modules of and MyProj. What I would like to do is setup MyProj-Integration-Tests so that

exec-maven-plugin - how to skip execution in a sub-project

2007-09-04 Thread szefo
Hi, My project has a structure similar to this: root +child1 +child2 I use the exec goal in the root project. During the compilation process of both children the exec goal from root project is executed and causes errors - thus I would like to skip it. I would like it to be

Re: Project or module depends on assembly of another?

2007-09-04 Thread Wayne Fay
You need to run mvn install to put the artifacts in your local cache from MyProj-Core. Then you can depend on it in MyProj-Integration-Tests (just like any other dependency) and it will pull the file out of the cache and use it during its own execution ie mvn test etc. As for calling mvn compile

Re: Project or module depends on assembly of another?

2007-09-04 Thread Joshua ChaitinPollak
On Sep 4, 2007, at 3:05 PM, Wayne Fay wrote: You need to run mvn install to put the artifacts in your local cache from MyProj-Core. Then you can depend on it in MyProj-Integration-Tests (just like any other dependency) and it will pull the file out of the cache and use it during its own

Re: exec-maven-plugin - how to skip execution in a sub-project

2007-09-04 Thread Wayne Fay
This should work. In root/pom.xml, in the exec plugin config, set inherited=false. plugin artifactIdmaven-exec-plugin/artifactId inheritedfalse/inherited Alternatively, you could put the exec plugin in a profile, and only use that profile when building from the root ie -Pdoexec. Wayne On

Re: Project or module depends on assembly of another?

2007-09-04 Thread Wayne Fay
So what is the point of having modules at all? If you have to install them anyway, why aren't they all just separate projects? For all intents, they are (completely) separate projects. Ok, lets say I install the Core project, is there a way in my Integration-Tests to get a filename for that

Re: Eclipse setup for Multi-module project

2007-09-04 Thread Brian Smith
Actually, I did select the Copy projects into Workspace checkbox so that may be the source of my problem. I've been experimenting a little bit and it seems that if I create the whole directory structure in C:\temp (c:\temp\TestApp) and then do the imports, everything seems to work as expected.

Re: site deployment to url without parent information

2007-09-04 Thread Wayne Fay
The answer is exactly what you're trying to avoid... You must configure the site again in your children pom. You might be able to avoid typing the full site URL in each child pom by using a property in the parent ie ${shared.site} which is set to scp://webserver.mycompany.com/projects/. Wayne

Re: exec-maven-plugin - how to skip execution in a sub-project

2007-09-04 Thread szefo
Inherited=false works! Thanks Wayne Fay wrote: This should work. In root/pom.xml, in the exec plugin config, set inherited=false. plugin artifactIdmaven-exec-plugin/artifactId inheritedfalse/inherited Alternatively, you could put the exec plugin in a profile, and only use that

Re: Eclipse setup for Multi-module project

2007-09-04 Thread Brian Smith
I may be running into a couple of different issues. When I did my import, I selected the Copy projects into workspace which appears to ignore the top level directory. Also, I was trying to use Eclipse to check in/out of CVS. It appears that you don't use Eclipse to check the code into your

Re: Eclipse setup for Multi-module project

2007-09-04 Thread Francois Fernandes
Brian Smith schrieb: Actually, I did select the Copy projects into Workspace checkbox so that may be the source of my problem. I've been experimenting a little bit and it seems that if I create the whole directory structure in C:\temp (c:\temp\TestApp) and then do the imports, everything seems

Re: Project or module depends on assembly of another?

2007-09-04 Thread Joshua ChaitinPollak
On Sep 4, 2007, at 3:20 PM, Wayne Fay wrote: So what is the point of having modules at all? If you have to install them anyway, why aren't they all just separate projects? For all intents, they are (completely) separate projects. Ok, lets say I install the Core project, is there a way in

Re: Eclipse setup for Multi-module project

2007-09-04 Thread Michael McCallum
use the latest snapshot of m2eclipse, run mvn eclipse:m2eclipse the lastest snapshot will automagically introduce project referecences for projects depended upon... very handy for refactoring quickly On Wednesday 05 September 2007 03:20, Graham Leggett wrote: On Tue, September 4, 2007 5:08

Re: NoClassDefFoundError: org/apache/log4j/Category

2007-09-04 Thread Farrukh Najmi
Hi Dennis, Thank you for your helpful note. I tried specifying the property to turn on common-logging 1.1 diags using all of the following but did not get any output: * mvn -Dorg.apache.commons.logging.diagnostics.dest=STDOUT cargo:start * env

RE: release plugin configuration

2007-09-04 Thread Siegmann Daniel, NY
Can't you disable the Junit tests normally? -Dmaven.test.skip=true It means some extra typing on each release though. -- Daniel Siegmann FJA-US, Inc. 512 7th Ave. 15th Flr. New York, NY 10018 (212) 840-2618 x139 -Original Message- From: Marcel Schutte [mailto:[EMAIL PROTECTED] Sent:

Re: Question on automatically adding files to a local repository

2007-09-04 Thread Wayne Fay
See, I define all my jar versions in a settings.xml and this works fine but somehow when it sees that pom.xml, it gets confused and cannot pickup any versions. Easy answer -- don't do that. Use dependencyManagement and pluginManagement to control versions. And where it makes sense, insert

Re: xdoclet plugin and weblogic-ejb-jar.xml descriptor

2007-09-04 Thread Scott Ryan
You could always try ejbgen. I was going to build that into the Weblogic plugin but most people have gone to JPA instead so there was not much demand. Scott Ryan CTO Soaring Eagle L.L.C. Denver, Co. 80129 www.soaringeagleco.com www.theryansplace.com (303) 263-3044 [EMAIL PROTECTED] On Sep

Call for 2.1 Proposals

2007-09-04 Thread Brian E. Fox
As we are approaching an alpha release of 2.1, the Maven Team would like to make a final call for proposals. The cutoff date for new proposals will be Friday 9/21. During this time, we will review and discuss new proposals and make a final cut at scheduling the 2.1 release. The current aim is to

Re: Q4E, a new Eclipse plugin for Maven

2007-09-04 Thread Carlos Sanchez
Hi Mark, That's certainly a good point - thanks for bringing it up. This would definitely be the ideal scenario and the Q developers initially intended to collaborate around the one codebase (in fact, DevZuz also sponsored the initial development of m2eclipse). However, as you'll see from the

Re: Q4E, a new Eclipse plugin for Maven

2007-09-04 Thread Carlos Sanchez
Hi Antonio, The Q developers and DevZuz are committed to Q being a community driven project, developed and planned openly. We've just added another committer, Abel, who became interested after his work on Candy for AppFuse, and we'd certainly welcome any users who would like to get involved in

Re: Default Schedule do not work

2007-09-04 Thread Emmanuel Venisse
do you have an exception or something in your logs? Mac-Systems a écrit : Actually i have 3 Builds running none is running any more. I have a SVN trunk and two branches in schedule. I configured Continuum that all are using the default schedule ... Why cannot Continuum not do this ? Iterate

Re: Continuum 1.1.0-beta-2 UI performance

2007-09-04 Thread Emmanuel Venisse
Damien Lecan a écrit : Hello, I've just installed Continuum 1.1.0-beta-2 to replace my old Continuum 1.0.3 instance. I'm working with MySql instead of embbeded sql server and with Tomcat 5.5.17 Nice new features, but UI is very, very, very slow :( I followed

Re: Continuum 1.1.0-beta-2 UI performance

2007-09-04 Thread Justin Deoliveira
I am using derby out of the box and noticed the same slowdown. I don't have any metrics to back it up but its definitely noticeably slower. -Justin Emmanuel Venisse wrote: Damien Lecan a écrit : Hello, I've just installed Continuum 1.1.0-beta-2 to replace my old Continuum 1.0.3

RE: Continuum 1.1.0-beta-2 UI performance

2007-09-04 Thread Mrinal Mukherjee
Same problem with me. Slow UI. I had this problem as soon as I upgraded to the newer version of continuum. I thought it was a problem in my system, but now I know its something to do with the new version of continuum. Mrinal -Original Message- From: Justin Deoliveira [mailto:[EMAIL