Adding a phase to maven-release-plugin

2007-05-22 Thread William Ferguson
Hi, I have a plugin that needs to be executed either 1) after the maven-release-plugin's scm-tag phase but before the scm-commit-development phase OR 2) after maven-release-plugin:prepare Option 1 is preferred as it would mean just 2 commits to the trunk during release. Option 2 would generate

automatically download dependecies

2007-05-22 Thread Advait Trivedi
I have a POM containing dependencies. I run some plugin goals which are not bound to any lifecycle phase from this directory. Maven does not download dependencies specified in POM. My requirement is to download all dependencies specified in POM at this time. I understand that invoking mvn install

POMs for Third Party Libraries

2007-05-22 Thread jchuah
What is the best way to deal with third party libraries that are not released as maven 2 projects? I know about the install and deploy plug-ins, but I am worried about dependency management. A lot of the third party libraries we use have the following problems: 1) Some of the library's

MOJO question

2007-05-22 Thread maarten roosendaal
Hi, In Maven 1 we had a 'wrapper' plugin that executed standard maven goals and an executable and also executed goals from our own custom made plugins through the plugin.jelly. Our projects executed Maven 1 with the goal 'custom:buildAll' and it was very easily changed. What is the best way

Configure the time in metainf file

2007-05-22 Thread Rahamim, Zvi \(Zvi\)
Hi, I want to add an entry in the manifest that contains the date in a format of: mmdd Can you give me an example of how to do it? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Issue with dependency plugin, unpack goal

2007-05-22 Thread Varghese C V
You are right Brian. Maven by itself takes care of uninstalled reactor projects dependencies. But some of the plugins dont. Installing projects in the local repo will ensure that all plugins will resolve their dependency. Hypothetically speaking, wont there be cases where installation /

RE: Integration tests in a separate moule

2007-05-22 Thread Arnaud Jeansen
And you were perfectly right, my integration tests compile now !! Thanks a lot for your help. For the record, I did as you advised me, that is : - I added a foojar module and moved the source code from foowar there - I made foowar depend on foojar (the war is now built with a foojar.jar in

Re: CVS parameters

2007-05-22 Thread Jon Strayer
On 5/21/07, Wayne Fay [EMAIL PROTECTED] wrote: I'm not clear -- is this response not sufficient and you're asking for more help, or do you have things working? If you still need help, I'd suggest looking at example pom.xml files for some open source projects to see how they have configured

A bit offtopic: How to Configure CC to run with maven 2 ?

2007-05-22 Thread Jens Hohl
Hello, i already have CC running but actually my build seems not to start as CC says that the Build is Broken after 2-3 seconds. I have mvn on the shell so I can invoke mvn install for example, after that I start ./cruisecontrol.sh and it starts with no failures. I already made an initial

Re: CVS parameters

2007-05-22 Thread Emmanuel Venisse
Jon Strayer a écrit : On 5/21/07, Wayne Fay [EMAIL PROTECTED] wrote: I'm not clear -- is this response not sufficient and you're asking for more help, or do you have things working? If you still need help, I'd suggest looking at example pom.xml files for some open source projects to see how

install:install - POM isn't filtered when installed in repo

2007-05-22 Thread Steinhauer, Frank
Hello, In my POMs the version numbers are set according to local settings and given CLI parameters. This works fine e.g. in the effective pom, but not when installing or deploying the POM to the repository, the pom file is just copied 1:1 to the repo, without any filtering. Why? Any suggestions?

Maven2 compiler out of memory error

2007-05-22 Thread Pier Mauro Vignati
Hi, I've a problem when I'm trying to compile a new version of my application. fooApp_1.0 has 1905 files, and Maven compiles it right dooApp_1.1 has 1985 files, and whenI try to compile it with Maven (btw, when compiling with Eclipse works fine), I'm receive the following error:

RE: Maven2 compiler out of memory error

2007-05-22 Thread Bram de Kruijff
Hi Pier, The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError not sure about the mem settings for the compiler plugin, but my OutOfMemoryError problems disappeared when I set the MAVEN_OPTS environment variable. eg. MAVEN_OPTS=-Xmx1024m

jboss maven plugin doubt

2007-05-22 Thread Shilpa Khondre
I have one doubt regarding remote deployment : 1) I am using cargo-maven2 plugin. plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3-SNAPSHOT/version

Re: How to create site with just jar files?

2007-05-22 Thread Dennis Cook
The project that I want to create consists of a single application library “relay-mailer.0.0.1.jar” and several supporting libraries: log4j, commons-logging, mail, activation, etc. There a couple of launch scripts too. I have two goals that I am trying to reach. First is to copy the all the

Re: how to use the same jar in the maven repository but in another java version?

2007-05-22 Thread emerson cargnin
thanks Jo, but it's not a maven 2 feature? On 21/05/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi, If you are making multiple artifacts from one module, you should definitely use classifiers for the build artifacts. Otherwise, they get mixed up and you end up with garbage. You can configure

Re: Surefire systemClassLoader option

2007-05-22 Thread Wayne Fay
I can't be sure without seeing more information about the specific tests that are failing with the various options (lines of code that are breaking) and the Surefire/JUnit debug/error logs with more detailed info (from target/surefire-reports). Can you provide that? Then perhaps we can help you

Re: jboss maven plugin doubt

2007-05-22 Thread Wayne Fay
Have you tried the jboss-maven-plugin from Mojo project? I don't know if it works better/different than Cargo, but perhaps its worth trying out. http://mojo.codehaus.org/jboss-maven-plugin/usage.html Another way you can deploy your project would be to simply use the normal JBoss deployment tools

Re: A bit offtopic: How to Configure CC to run with maven 2 ?

2007-05-22 Thread Wayne Fay
I don't use CruiseControl, but surely there is a more detailed log available that says something more than simply build is broken. Find that log and the specific error/problem you're running into, and perhaps someone here can help. But realistically, this is a better question for the CC Users

Re: parallel building

2007-05-22 Thread Nigel Magnay
I have added it as MNG-3004. I had a quick play to see if I could get it to work - I created a POC that could build in parallel, but my threads don't seem to have the requisite plexus gubbins in their classpath, and I'm not sure how all that stuff works. If someone could tell me how to fix that

Property validation

2007-05-22 Thread Paul Gier
I would like to verify that certain properties are set in my pom. If the property is not set, I would like the build to fail. Is there a way to do this with the enforcer plugin or with another plugin? Thanks! - To

Re: Maven2 compiler out of memory error

2007-05-22 Thread Pier Mauro Vignati
Switching to the JDK 1.5, I've got a detailed error ... ssomething really strange: The system is out of resources. Consult the following stack trace for details. java.lang.StackOverflowError at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:297) at

Re: Maven2 compiler out of memory error

2007-05-22 Thread Pier Mauro Vignati
Hi Bram, thanks for your reply. Yes, I did. I tried with -Xmx1024m -Xms512m and with -Xmx1024m -Xms512m -XX:PermSize=128m -XX:MaxPermSize=256m as I find in another thread, but it still not work. I set them from command line and I also tried to modify the mvn.bat file too .. still the same

Re: CVS parameters

2007-05-22 Thread Jon Strayer
On 5/22/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: Jon Strayer a écrit : On 5/21/07, Wayne Fay [EMAIL PROTECTED] wrote: I'm not clear -- is this response not sufficient and you're asking for more help, or do you have things working? If you still need help, I'd suggest looking at

Generating a website for a multi module project

2007-05-22 Thread DavidWilliams
Hi Everyone, I need to create a website for the a mult-module project. The mvn site command creates the html pages. Is there a way to list the modules as links on your parent page? Thanks for your help, David

Re: Generating a website for a multi module project

2007-05-22 Thread Nick Stolwijk
Yes, there is, see [1] and then the part of Including Generated Content. Hth, Nick S. [1]http://maven.apache.org/plugins/maven-site-plugin/howto.html [EMAIL PROTECTED] wrote: Hi Everyone, I need to create a website for the a mult-module project. The mvn site command creates the html

Re: Generating a website for a multi module project

2007-05-22 Thread DavidWilliams
Nick, Thanks for you quick answer. When I put menu ref=modules / into the body section of my site.xml, I get that header but none of the actual modules. Do I have to enter them manually or should maven pull them for me? Thanks, David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 11:00 AM

Re: Generating a website for a multi module project

2007-05-22 Thread Nick Stolwijk
Our (working) situation is as follows: Project/ pom.xml (with modules/modules section) src/ site/ site.xml (With menu ref=modules/) module1/ pom.xml src/ site/ site.xml module2/ pom.xml

PMD goes OutOfMemory

2007-05-22 Thread Jerome Thibaud
Hi All, Any option to individually turn up the amount of memory for the PMD goal during the site generation ? Or should I just boost the whole maven process to use an indecent amount of memory? Thanks regards Jerome Thibaud

RE: Property validation

2007-05-22 Thread Brian E. Fox
Not currently with the enforcer, but sounds like a good addition. The enforcer is setup so you can write your own rules, so you should be able to whip it up easily. -Original Message- From: Paul Gier [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 11:16 AM To: Maven Users List

User Interface Performance of 1.1

2007-05-22 Thread Shaun Barriball
Are there any known ways to improve the performance of Continuum - as per the issue below? Issue 2 - Performance -- Out of the box Continuum 1.1 appears much, much slower than 1.0.3. For example, it takes 30 secs+ after I click MyBigProject to display the contents of

Re: Properties files in a WAR artifact...

2007-05-22 Thread Nelz
OK... First off, thank you Alexander for the suggestions. Secondly, I realized what I was trying to do... I am trying to pass in run-time configuration, and just like any consumer of my artifact, I need to send in configuration. So, I created a /src/test/config directory. In that directory I

Re: User Interface Performance of 1.1

2007-05-22 Thread Emmanuel Venisse
Performance are fixed in alpha-2 that will be available in few days. Emmanuel Shaun Barriball a écrit : Are there any known ways to improve the performance of Continuum - as per the issue below? Issue 2 - Performance -- Out of the box Continuum 1.1 appears much, much

Question: Unit and Integration testing of a WAR

2007-05-22 Thread Nelz
Ok guys... Am I running against best practices here? Is that why this is so hard? I have a simple-ish project. The project artifact is a WAR file. I would like to Unit Test the code before it gets packaged, and I would like to run Integration Tests after it gets packaged. The Sonatype book

RE: User Interface Performance of 1.1

2007-05-22 Thread McNaught, Ewen
I've been running on continuum-20070502.03.tar Will I be able to upgrade to the alpha-2 for the performance improvements without having to re-add my projects? (We have over 70) --Duncan -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007

Re: Generating a website for a multi module project

2007-05-22 Thread DavidWilliams
Nick, I believe it was the way my parent pom was set up. I have them listed now. There urls are incorrect but it's progress. = ) Thanks for your example and help!! David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 11:34 AM Please respond to Maven Users List users@maven.apache.org To

Re: automatically download dependecies

2007-05-22 Thread Steven Rowe
Hi Advait, How about: mvn initialize myplugin:mygoal (where you fill in myplugin and mygoal with your specific info) Steve Advait Trivedi wrote: I have a POM containing dependencies. I run some plugin goals which are not bound to any lifecycle phase from this directory. Maven does not

Re: User Interface Performance of 1.1

2007-05-22 Thread Jesse McConnell
what kinda database are you using for it? if its the embedded one you'll have to copy the right stuff around, if its postgres or mysql it should just be a matter of pointing it at the db.. jesse On 5/22/07, McNaught, Ewen [EMAIL PROTECTED] wrote: I've been running on

Re: Question: Unit and Integration testing of a WAR

2007-05-22 Thread Nick Stolwijk
Maybe this'll work: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.3/version executions execution idsurefire-test/id phasetest/phase /execution execution

Re: Generating a website for a multi module project

2007-05-22 Thread Nick Stolwijk
To give you a hint with the urls: you haven't deployed your site. (mvn site-deploy in combination with pom.xml:/project/distributionManagement/site ) Hth, Nick Stolwijk [EMAIL PROTECTED] wrote: Nick, I believe it was the way my parent pom was set up. I have them listed now. There urls

[m2] Specify modules on command line?

2007-05-22 Thread Richard Allen
We have a good size multi-module build. To reduce the development cycle time I would like to be able to say to Maven only include these modules in the build. That way we could reduce the amount of time it takes to build the project when testing only a single module. Is that possible? Thanks,

Re: automatically download dependecies

2007-05-22 Thread Nick Stolwijk
Hi Advait, Please read http://www.sonatype.com/book/writing-plugins.html and especially the part about @requiresDependencyResolution requiredScope. I guess, that would solve your problem. Hth, Nick Stolwijk Steven Rowe wrote: Hi Advait, How about: mvn initialize myplugin:mygoal

Re: Surefire systemClassLoader option

2007-05-22 Thread Grant Ingersoll
I will see if I can put together an example. -Grant On May 22, 2007, at 10:33 AM, Wayne Fay wrote: I can't be sure without seeing more information about the specific tests that are failing with the various options (lines of code that are breaking) and the Surefire/JUnit debug/error logs with

Re: Question: Unit and Integration testing of a WAR

2007-05-22 Thread Nelz
Nick, et al... Thanks for the suggestion... But I have to ask a meta-question: how was I supposed to ever find that myself...? It's nowhere in the Surefire plugin documentation... I still don't even know that it will work, nor does the documentation give any hint that it might. And to bring

RE: User Interface Performance of 1.1

2007-05-22 Thread Shaun Barriball
Thanks Emmanuel. We're using the embedded database. Is it faster on MySql out of interest? Regards, Shaun. -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: 22 May 2007 19:17 To: [EMAIL PROTECTED] Subject: Re: User Interface Performance of 1.1 Performance are

Re: Question: Unit and Integration testing of a WAR

2007-05-22 Thread Nick Stolwijk
With most of my problems with Maven it is a combination of: - Better builds with Maven e-book [1] - Sonatype e-book [2] - The plugin documentation [3] [4] - The Maven 2 IRC channel [5] And offcourse, this userlist, maven 2 and plugins sourcecode Hth, Nick Stolwijk [1]

Re: [m2] Specify modules on command line?

2007-05-22 Thread Steven Rowe
Hi Richard, As far as I know, Maven does not have direct support for what you want. But lots of people have been asking for just this functionality recently. See http://www.nabble.com/Specify-a-dynamic-profile-t3754208s177.html for a discussion of some workarounds. Steve Richard Allen wrote:

Portlet Archetype doesn't work?

2007-05-22 Thread Clifton
I'm trying the portlet archetype for the first time and I'm getting an error when I run it. See below: [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error: Error reading POM start tag not allowed

Re: Generating a website for a multi module project

2007-05-22 Thread DavidWilliams
Ok, trying to run mvn site:stage -DstagingDirectory=C:\fullsite and it wants site information in the distribution management section of the pom. Should I put C:\fullsite in there? Thanks, David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 01:33 PM Please respond to Maven Users List

Re: [m2] Specify modules on command line?

2007-05-22 Thread Roland Asmann
A workaround for this 'problem' could be to specify a couple (a lot?) of profiles, that contain the modules you need to combine. You can then run maven with the selected profiles, building only those modules you declared in the profiles. Personally, I'd at least make sure that all modules that

Re: [m2] Specify modules on command line?

2007-05-22 Thread Roland Asmann
I found an example of what I mean. It's one of our first m2 try-outs which used a flat directory-structure, but it serves well enough as an example. ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: Generating a website for a multi module project

2007-05-22 Thread DavidWilliams
Nevermind. I got it. Thanks, David [EMAIL PROTECTED] 05/22/2007 03:14 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project Ok, trying to run mvn site:stage

Re: Portlet Archetype doesn't work?

2007-05-22 Thread Wayne Fay
Looks like that archetype has some issues. The pom.xml file inside the Jar in both 1.0 and 1.0-alpha-4 has what appears to be a cut and paste error. I'm not sure who exactly made that archetype, but you should check JIRA and see if an issue is already open, and if not, file a new issue for this

Re: Problem with plugin dependencies in multi-module projects

2007-05-22 Thread soir
I have same problem and I didn't find the solution yet. -- View this message in context: http://www.nabble.com/Problem-with-plugin-dependencies-in-multi-module-projects-tf3637246s177.html#a10752642 Sent from the Maven - Users mailing list archive at Nabble.com.

Settings Variable expansion

2007-05-22 Thread Timothy Reilly
Based on this information http://maven.apache.org/settings.html http://maven.apache.org/settings.html http://maven.apache.org/settings.html http://maven.apache.org/settings.html I thought that variables and variable expansion would be available anywhere in a POM _and_ settings files? Is this

Assembly Plugin: ModuleSets: Not recognizing include artifacts

2007-05-22 Thread Rodrigo Madera
Hello all, I have been struggling with the maven-assembly-plugin because of a problem that seems to have been around for some time (or so I understood). My project structure is: - peanutspom - charliejar - snoopyjar - linuspom - linus-corejar

Re: How to create site with just jar files?

2007-05-22 Thread Dennis Cook
Ok, so the noob is getting closer. I found that the assembly plugin is my best bet, but still struggling to get it configured correctly. I started with the 'jar-with-dependancies' descriptor but that gave me a jar with all dependancies repackaged. I really want to see a zip file containing

maven2, buildNumber

2007-05-22 Thread Raghurajan Gurunathan
Hi All i'm trying to maven-build number in assembly like when i create project.zip file from assembly:assembly goal i want to append a buildNumber from maven-buildnumber-plugin my jar files getting created fine like project.jar_r100 but in my zip file the {buildNumber}value is not being

Re: maven2, buildNumber

2007-05-22 Thread Wendy Smoak
On 5/22/07, Raghurajan Gurunathan [EMAIL PROTECTED] wrote: but in my zip file the {buildNumber}value is not being replaced Try either $buildNumber or ${buildNumber} instead. -- Wendy - To unsubscribe, e-mail: [EMAIL

Re: maven2, buildNumber

2007-05-22 Thread Raghurajan Gurunathan
i'm sorry in my previous main i mentioned it has wrong project_r${buildNumber}, thats how i'm using it its a typo in my previous email Thanks, Raghu | Wendy Smoak [EMAIL PROTECTED] 05/22/2007 11:16 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List

Access to the full classpath when running under Surefire (WAS: [Maven 2])

2007-05-22 Thread Lasse Koskela
Oops. Sorry about the ambiguous title in my previous post... I changed it to something more communicative. Lasse On 5/23/07, Lasse Koskela [EMAIL PROTECTED] wrote: Hi, I'm trying to convert the open source JUnit extension called JspTest to use Maven2 for the build and I'm running into trouble

[Maven 2]

2007-05-22 Thread Lasse Koskela
Hi, I'm trying to convert the open source JUnit extension called JspTest to use Maven2 for the build and I'm running into trouble with how Maven's Surefire test runner plugin seems to hide the classpath from the executing code. The issue stems from the need for a unit test to be able to compile

RE: Maven 2 - POM Hookup Question

2007-05-22 Thread Randall Fidler
Wendy, What protocols does the URL support? Does it have to be HTTP or can FTP work? Just peeking around there's a FTP plugin for Perforce which could provide access to the poms. Thanks again! Regards, Randall -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]

Re: Maven 2 - POM Hookup Question

2007-05-22 Thread Wendy Smoak
On 5/22/07, Randall Fidler [EMAIL PROTECTED] wrote: Projects are sitting inside Perforce - would you use the Perforce web interface to expose the pom? The Perforce web setup is basically the normal p4 client but web implementation (from my little experience with it). If you can get a

RE: Project build order for multiple Maven 2 projects - Alphabetical by Project Name?

2007-05-22 Thread Shaun Barriball
Hi Emmanual et al, After a few hours migrating our 15 plus projects to Continuum 1.1 we now have everything up and running. I've been impressed with 1.1 (great work). 2 issues thus far: Issue 1 - Do we delete Project sub-modules? Consider the

Re: Project build order for multiple Maven 2 projects - Alphabetical by Project Name?

2007-05-22 Thread Mark Hobson
On 21/05/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: You must readd all projects Is there no planned upgrade path from 1.0.3? We have 400+ projects in 1.0.3 and would like to upgrade to 1.1 - obviously this will take a few man years if done manually.. Cheers, Mark

Re: Project build order for multiple Maven 2 projects - Alphabetical by Project Name?

2007-05-22 Thread Mark Hobson
On 22/05/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: We'll probably do one but not for 1.1-alpha-* Okay cool, we'll wait until then thanks. Mark

Continuum 1.1 Alpha 1 and SCM : Build fresh option

2007-05-22 Thread Christophe Lechenne
Hi all, Where can I find Build fresh option description ? Another question is how can I configure continuum to make CVS update before building (as deafult in 1.0.3 version) ? regards, Christophe

Re: Project build order for multiple Maven 2 projects - Alphabetical by Project Name?

2007-05-22 Thread Emmanuel Venisse
It's better to keep modules in continuum for build order resolution. Later, we'll add the possibility to add new dependencies on projects, so modules will can be removed. Emmanuel Shaun Barriball a écrit : Hi Emmanual et al, After a few hours migrating our 15 plus projects to Continuum 1.1

RE: User Interface Performance of 1.1

2007-05-22 Thread McNaught, Ewen
We're using the default db. -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 12:29 PM To: continuum-users@maven.apache.org Subject: Re: User Interface Performance of 1.1 what kinda database are you using for it? if its the embedded one

Re: towards continuum 1.1 alpha 2

2007-05-22 Thread Jesse McConnell
fyi once the maven-scm release is out, I'll be preparing this alpha-2 release.. just wanted to let everyone know jesse On 5/14/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: Trygve Laugstøl a écrit : Jesse McConnell wrote: May 21 is fast approaching and that when I want to get the alpha-2

Maven 2 - POM Hookup Question

2007-05-22 Thread Randall Fidler
Hello, Sorry if this has been asked before, but here goes... When providing Continuum with a Maven POM via URL, what URL? POM's sitting on a local Maven repository? The pom which is located in/on the projects website (i.e. website generated by site goal in maven)? Where is

Re: Maven 2 - POM Hookup Question

2007-05-22 Thread Wendy Smoak
On 5/22/07, Randall Fidler [EMAIL PROTECTED] wrote: When providing Continuum with a Maven POM via URL, what URL? POM's sitting on a local Maven repository? The pom which is located in/on the projects website (i.e. website generated by site goal in maven)? Where is this POM located? Also,

RE: Maven 2 - POM Hookup Question

2007-05-22 Thread Randall Fidler
Hi Wendy, Projects are sitting inside Perforce - would you use the Perforce web interface to expose the pom? The Perforce web setup is basically the normal p4 client but web implementation (from my little experience with it). Thanks for the reply. Regards, Randall -Original