performance unit testing with maven 2

2007-11-27 Thread dev dev
We are trying to find out which are the best ways for us to create performance unit tests directly to our already existing test cases. Have anyone have a good way to do that (we are looking at junitperf performance unit testing framework) but we are not sure how to integrate with maven pom.xml so t

Maven-Scm Plugin with CVS: Wrong password exception

2007-11-27 Thread Usman Chaudhry
I am trying to use maven scm plugin to checkout some files from CVS but I always get a "Wrong Password" exception. Here is what I am tying: org.apache.maven.plugins maven-scm-plugin 1.0

"deploy:deploy-file" with URL just "http://"

2007-11-27 Thread Xtonic
I found in wagon doc. that it does not support deployment for HTTP (and HTTP lightweight). It makes sense with URL like "dav:http://";, "file://" or "scpexe:" with explicit protocol. What happen if it is just plain "http://";? Which protocol will be used between maven and the remote repository? I

Re: Problem with MANIFEST.MF in maven-jar-plugin

2007-11-27 Thread Stuart McCulloch
On 28/11/2007, Wayne Fay <[EMAIL PROTECTED]> wrote: > > What do you mean "my jar does not work out"? How does it break? > > Please review the JAR spec -- I am reasonably certain the > Maven-produced manifest.mf is correct: > > http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Notes%20on%20Mani

[ANN] Maven Help Plugin 2.0.2 Released

2007-11-27 Thread Dennis Lundberg
The Maven team is pleased to announce the release of Maven Help Plugin, version 2.0.2. http://maven.apache.org/plugins/maven-help-plugin/ Release Notes - Maven 2.x Help Plugin - Version 2.0.2 ** Bug * [MPH-16] - help:active-profiles doesn't include profiles derived from the parent pom.

Re: Maven Usage on Enterprise Application

2007-11-27 Thread Siarhei Dudzin
It only compiles classes you changed (and that's not unique to just maven). If you want to control which projects/modules 'to build or not to build' - you can define that in profiles. If you want to build only specific files in a project then probably your project isn't well organized (most likely

Re: dependency:tree not working in maven 2.0.7

2007-11-27 Thread Wendy Smoak
On 11/27/07, bryan ward <[EMAIL PROTECTED]> wrote: > Thanks for the informative reply. It leaves me wondering though why > functionality that is not currently available via the standard maven install > is listed in the plugin documentation? My fault. :) A while back I had the brilliant idea of

Maven 2.0.8 Release

2007-11-27 Thread Brian Fox
The Apache Maven team would like to announce the availability of Maven 2.0.8. We closed out 32 issues and no major issues upgrading are expected. There is one slight change to be aware of, the test-classes folder is now before the classes in the classpath to allow test resources to override runtim

Re: Maven Usage on Enterprise Application

2007-11-27 Thread nash4403
That answers the environment and variable substitution part. But how would maven help me in building parts of the project. Say I want to build only a file in the subdirectory like make abc.java or make [which builds just the subdirectory and dependent jave files from the parent and grand parent r

RE: dependency:tree not working in maven 2.0.7

2007-11-27 Thread Brian E. Fox
The site does say that the goal is available since 2.0-alpha-5. dependency:tree Displays the dependency tree for this project. Mojo Attributes: * Requires a Maven 2.0 project to execute. * Requires dependency resolution of artifacts in scope: test * Since version: 2.0-alpha-5

Re: [ANNOUNCE] Archiva 1.0 Released

2007-11-27 Thread bflaherty
To the Archiva team, Great job. We are looking forward to leveraging this new release. Brian Maria Odea Ching-5 wrote: > > Hi Everyone, > > The Maven Archiva team is pleased to announce the release of Archiva > 1.0final. > > Archiva is a build artifact repository manager for use with buil

Re: repository and database

2007-11-27 Thread Maria Odea Ching
Julien CARSIQUE wrote: More information : deleting the local repository (only the groupId) fix the problem, artifact is then correctly downloaded. Is it due to corruption during download or what else ? This wasn't often happening until upgrade to beta-4 and then 1.0; now this error seems to occ

Re: Maven Usage on Enterprise Application

2007-11-27 Thread Siarhei Dudzin
Did you look into filtering and profiles? http://maven.apache.org/guides/getting-started/index.html#How_do_I_filter_resource_files http://maven.apache.org/guides/introduction/introduction-to-profiles.html Regards, Siahrei On Nov 27, 2007 11:04 PM, nash4403 <[EMAIL PROTECTED]> wrote: > > Our pr

Re: dependency:tree not working in maven 2.0.7

2007-11-27 Thread bryan ward
Hi, Thanks for the informative reply. It leaves me wondering though why functionality that is not currently available via the standard maven install is listed in the plugin documentation? Thanks, Bryan Wayne Fay wrote: > > Assuming the plugin has been released, you have two options: > 1.

Maven Usage on Enterprise Application

2007-11-27 Thread nash4403
Our problems 1. Multi environment like DEV,QA, STAGING and PROD.A Perl script will take two parameters .One for environment and other for application and produce the configuration XML file. 2.We use GNU M4 for variable substitution to substitute variables from configuration XML file to substitu

Re: Problem with MANIFEST.MF in maven-jar-plugin

2007-11-27 Thread Wayne Fay
What do you mean "my jar does not work out"? How does it break? Please review the JAR spec -- I am reasonably certain the Maven-produced manifest.mf is correct: http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Notes%20on%20Manifest%20and%20Signature%20Files Line length: No line may be longe

Problem with MANIFEST.MF in maven-jar-plugin

2007-11-27 Thread helio
Hi, I am using maven-jar-plugin on maven 2.0.7. I added this in my pom.xml: org.apache.maven.plugins maven-jar-plugin src/main/resources/META-INF/MANIFEST.MF In src/main/resources/META-INF/MANIFEST.MF I have: Manifest-Version: 1.0

Re: dependency:tree not working in maven 2.0.7

2007-11-27 Thread Wayne Fay
Assuming the plugin has been released, you have two options: 1. Specify the plugin version in your pom. 2. Use the "full" name of the plugin on the command line: mvn groupId:artifactId:version:goal eg mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5:tree Unfortunately, this plugin

The specified resource isn't a file or the protocol used isn't allowed - Please Help

2007-11-27 Thread I am Who i am
Hi All I just installed continuum-1.1 and trying to setup maven2 project with clearcase 1. i created pom.xml with entry scm:clearcase|buildsvr_myview|/home/me/config_spec.txt|My_VOB|STREAM saved it to /home/me/pom.xml 2. opened continuum in browser went thru creatin

Re: dependency:tree not working in maven 2.0.7

2007-11-27 Thread bryan ward
I looked in my local repository and it currently has version 2.0-alpha-4 of the dependency plugin. Do you know how A) it chose to use 2.0-alpha-4 and B) how do I change it to use alpha-5 (or the latest available). Thanks! Bryan dennisl-2 wrote: > > You need at least version 2.0-alpha-5 of t

Re: dependency:tree not working in maven 2.0.7

2007-11-27 Thread Siarhei Dudzin
I simply generate site to see the dependency tree... On Nov 27, 2007 7:40 PM, Dennis Lundberg <[EMAIL PROTECTED]> wrote: > You need at least version 2.0-alpha-5 of the dependency-plugin. The tree > goal was introduced in that version as indicated here: > > http://maven.apache.org/plugins/maven-de

Re: Javadocs during install phase

2007-11-27 Thread Antonio Petrelli
2007/11/27, Dennis Lundberg <[EMAIL PROTECTED]>: > Antonio Petrelli wrote: > > 2007/11/27, rmatthews <[EMAIL PROTECTED]>: > >> > >> true > > > > > > > > This is the problem :-( > > http://jira.codehaus.org/browse/MJAVADOC-116 > > 22 votes and 15 watches, and no one that takes care of it :-( > > Ple

Re: maven-archetype-webapp Directory Structure?

2007-11-27 Thread Siarhei Dudzin
It is also JEE standard to include jars in WEB-INF/lib. There is a difference between a standard and recommendation. Another possible perspective for you is avoiding potential classloading problems. If you work with various vendors you may notice not all vendors are as moderate to how your archives

Re: Include source, javadocs, etc in installed artifact

2007-11-27 Thread Dennis Lundberg
lightbulb432 wrote: From where can I download maven-javadoc-plugin 2.4? There's a documented IBM JVM-specific bug that's fixed in 2.4 that I need to download. Unfortunately, it doesn't look like it's released yet (is it?), with the latest version being 2.3 (see http://repo1.maven.org/maven2/org/

Re: HTTP 500 on proxyConnectors.action

2007-11-27 Thread Julien CARSIQUE
Ok, it's fixed removing the proxy connectors def and redo it via the web interface. Re, I've updated to archiva 1.0 and still have the same issue Julien CARSIQUE a écrit : Hello, I get an error going on archiva/admin/proxyConnectors.action Here's what I see on the client side in Firefox :

Re: maven-archetype-webapp Directory Structure?

2007-11-27 Thread Thomas Van de Velde
That's interesting. Isn't the JEE standard to store servlet classes under WEB-INF/classes? What's the value of creating a separate JAR file for servlets? It seems to me that this adds unnecessary complexity. Having worked on several large projects, I've never seen servlets being packaged in multipl

finding the dependency artifact name for filtering

2007-11-27 Thread deckrider
Hello, I have the following dependency on a war artifact (contains a bundle of jnlp/webstart apps): foo.bar webstart-apps [8,) war runtime I'm planning to use the assembly plugin to bundle some files, including one that will provide a URL to these webstart

Re: Best way of changing project version

2007-11-27 Thread Arnaud HERITIER
I forgot to add : If you have an inheritence, you don't have to define the version in each submodule (just the parent) and for dependencies you can use ${pom.version} in each dependency or in the dependencyManagement of the parent like Kalle proposed. The problem is with the parent part of the

Re: Best way of changing project version

2007-11-27 Thread Nick Stolwijk
Best way of changing the project version is by not doing it (yourself). Please have a look at the maven release plugin, which will make a tag in your scm and change the version number. So for example, if your trunk is at version 0.1.0-SNAPSHOT. When you run mvn release:prepare and mvn release

Re: Best way of changing project version

2007-11-27 Thread Kalle Korhonen
Is there a reason why you just don't set the versions of the child modules in the dependencyManagement section of the parent pom? Kalle On 11/27/07, Enrique Gaona <[EMAIL PROTECTED]> wrote: > > > > Greets, > > I have a big maven project that has about 300 pom files in > it. Currently, > the is

Re: Best way of changing project version

2007-11-27 Thread Arnaud HERITIER
Can't you use the release plugin ? It will automatically update it for you Arnaud On Nov 27, 2007 7:41 PM, Enrique Gaona <[EMAIL PROTECTED]> wrote: > > > Greets, > > I have a big maven project that has about 300 pom files in it. > Currently, > the is hardcoded on all the pom.xml files an

Re: HTTP 500 on proxyConnectors.action

2007-11-27 Thread Julien CARSIQUE
Re, I've updated to archiva 1.0 and still have the same issue Julien CARSIQUE a écrit : Hello, I get an error going on archiva/admin/proxyConnectors.action Here's what I see on the client side in Firefox : | HTTP ERROR: 500| |Exception in JSP: /WEB-INF/jsp/admin/proxyConnectors.jsp:12

Best way of changing project version

2007-11-27 Thread Enrique Gaona
Greets, I have a big maven project that has about 300 pom files in it. Currently, the is hardcoded on all the pom.xml files and moving from one version to another is a PITA. My question is, what's the best way of doing away with the hardcoded value and moving to a variable where it can be s

Re: dependency:tree not working in maven 2.0.7

2007-11-27 Thread Dennis Lundberg
You need at least version 2.0-alpha-5 of the dependency-plugin. The tree goal was introduced in that version as indicated here: http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html bryan ward wrote: Hi, I would like to run some of the dependency goals listed in the documenta

Re: Version moving up fast

2007-11-27 Thread Borut Bolčina
Hello, 2007/11/27, [EMAIL PROTECTED] <[EMAIL PROTECTED] >: > > It sounds odd to have that many release version per day. Yes indeed. Well, not per day, but per week. Nevertheless, it is odd. Version range > notation would be perfect for what you need.. The first thing we will try is to use ran

dependency:tree not working in maven 2.0.7

2007-11-27 Thread bryan ward
Hi, I would like to run some of the dependency goals listed in the documentation http://maven.apache.org/plugins/maven-dependency-plugin/ however when I do, I get an error stating that the goal cannot be found? Does anyone know why this is? /cygdrive/c/hasdev/servicesImpl$ mvn -e dependenc

Re: maven-archetype-webapp Directory Structure?

2007-11-27 Thread Wendy Smoak
On 11/27/07, Thomas Van de Velde <[EMAIL PROTECTED]> wrote: > I was trying out maven-archetype-webapp with Maven 2.0.7 and maven-archetype > 1.0-alpha-7 and noticed that the following directory structure is created: ... > Is there not supposed to be a directory structure for Java source code and >

Re: maven-archetype-webapp Directory Structure?

2007-11-27 Thread Wayne Fay
I think you probably should use maven-archetype-quickstart for a standard Java app. Wayne On 11/27/07, Thomas Van de Velde <[EMAIL PROTECTED]> wrote: > Hey, > > I was trying out maven-archetype-webapp with Maven 2.0.7 and maven-archetype > 1.0-alpha-7 and noticed that the following directory stru

maven-archetype-webapp Directory Structure?

2007-11-27 Thread Thomas Van de Velde
Hey, I was trying out maven-archetype-webapp with Maven 2.0.7 and maven-archetype 1.0-alpha-7 and noticed that the following directory structure is created: /src /main /resources /webapp However I was expecting this: /src /main

Re: How to deploy a zip produce with the assempbly plugin ?

2007-11-27 Thread mxmtycoder
For me, for some reason using just the assembly plugin didn't work. I solved using the http://mojo.codehaus.org/build-helper-maven-plugin/ build-helper-maven-plugin JC Walmetz wrote: > > So simple. I missed that in the doc. Thanks > > Antonio Petrelli-3 wrote: >> >> 2007/11/27, Wendy Smoak

Re: Interpolation of Pom Properties in Assembly Descriptor

2007-11-27 Thread Wayne Fay
I've seen that mentioned on this list a couple times, and I generally use this notation myself as well for no particular reason. Wayne On 11/27/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote: > Some time back I encountered a problem with properties in the pom using > a dot-notation. I solved that

Re: Javadocs during install phase

2007-11-27 Thread Dennis Lundberg
Antonio Petrelli wrote: 2007/11/27, rmatthews <[EMAIL PROTECTED]>: true This is the problem :-( http://jira.codehaus.org/browse/MJAVADOC-116 22 votes and 15 watches, and no one that takes care of it :-( Please, feel free to attach a patch to that issue ;-) Antonio -- Dennis Lundber

Re: Interpolation of Pom Properties in Assembly Descriptor

2007-11-27 Thread Dennis Lundberg
Some time back I encountered a problem with properties in the pom using a dot-notation. I solved that by using camelHump-notation instead. In your case that would mean replacing "my.path" with "myPath". Not sure if it will work in this case, but it's worth a try. Mark Reynolds wrote: I was us

Re: Adding a folder to the surefire classpath

2007-11-27 Thread Doug Douglass
Similar to what Trent described... We add src/main/webapp as a test resource in the parent pom of all our web applications so we can render our view templates (Freemarker) via unit tests -- very, very handy! You could do something similar in your pom: ... ... src/main/co

Wrong behavior of notifactions

2007-11-27 Thread Martin Alejandro Villalobos
Hi, I have a list of notifiers in my project. When the false ,Continuum send emails to the notifiers in each status change, sending in success/error/warning in the right way. However, if I set true, continuum send a email in each build, but in a wrong way, sending for all events (success,/erro

Re: Adding a folder to the surefire classpath

2007-11-27 Thread Trent Rosenbaum
Hi Nathan, I had a similar issue when I wanted to run seam integration tests from within Maven. I needed to add the web.xml file onto the classpath. In the end I configured up the maven antrun plugin to copy my seam configuration files to the test-classes directory under target. I bound this plu

Re: latest version of maven-dependency-plugin - missing excludes on ArtifactItem

2007-11-27 Thread Erez Nahir
Thank you. Any plans to publish 2.0-alpha-5 soon? On Nov 27, 2007 6:17 PM, Brian E. Fox <[EMAIL PROTECTED]> wrote: > The excludes is used for unpacking and it's available in > 2.0-alpha-5-SNAPSHOT > > > -Original Message- > From: Erez Nahir [mailto:[EMAIL PROTECTED] > Sent: Monday, Novem

Re: Maven release plugin: Address already in use!

2007-11-27 Thread Wayne Fay
It might be nice if Maven could be coded to watch for/parse this exception and provide a more user-friendly error message, though. Wayne On 11/27/07, Jorg Heymans <[EMAIL PROTECTED]> wrote: > It is not a maven limitation, but a java one. I would like the embedded > maven to still be launched with

RE: latest version of maven-dependency-plugin - missing excludes on ArtifactItem

2007-11-27 Thread Brian E. Fox
The excludes is used for unpacking and it's available in 2.0-alpha-5-SNAPSHOT -Original Message- From: Erez Nahir [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 2:53 AM To: users@maven.apache.org Subject: latest version of maven-dependency-plugin - missing excludes on ArtifactI

Re: How to deploy a zip produce with the assempbly plugin ?

2007-11-27 Thread JC Walmetz
So simple. I missed that in the doc. Thanks Antonio Petrelli-3 wrote: > > 2007/11/27, Wendy Smoak <[EMAIL PROTECTED]>: >> >> On Nov 27, 2007 7:18 AM, JC Walmetz <[EMAIL PROTECTED]> wrote: >> >> > Is it possible to configure the assembly plugin in order that the zip >> > produced will be deploye

Re: How to deploy a zip produce with the assempbly plugin ?

2007-11-27 Thread Antonio Petrelli
2007/11/27, Wendy Smoak <[EMAIL PROTECTED]>: > > On Nov 27, 2007 7:18 AM, JC Walmetz <[EMAIL PROTECTED]> wrote: > > > Is it possible to configure the assembly plugin in order that the zip > > produced will be deployed in repo during install or deploy ?? > > I think you want the 'attached' goal. Se

Re: How to deploy a zip produce with the assempbly plugin ?

2007-11-27 Thread Wendy Smoak
On Nov 27, 2007 7:18 AM, JC Walmetz <[EMAIL PROTECTED]> wrote: > Is it possible to configure the assembly plugin in order that the zip > produced will be deployed in repo during install or deploy ?? I think you want the 'attached' goal. See "Building an Assembly as part of the Build Lifecycle" h

How to deploy a zip produce with the assempbly plugin ?

2007-11-27 Thread JC Walmetz
I have a module with a packaging pom. Purpose of this module is to produce a zip assembly and to deploy in the local repo (with mvn install) or in one of my archiva repo (mvn deploy). zip is produced during the package phase. Unfortunately, in the install phase zip is not copied into the local r

Re: Dependency issue (war and jar) in multimodule project

2007-11-27 Thread Juven Xu
Anand: I can't really understand your "dependency". Why not configure dependency like this: test child2 1.0-SNAPSHOT And when you have dependency on war file, you should use maven-warpath-plugin. Thanks, Juven On Nov 27, 2007 4:51 PM, Anand Rathi <[EMAIL PROTECTED

Re: Maven release plugin: Address already in use!

2007-11-27 Thread Jorg Heymans
It is not a maven limitation, but a java one. I would like the embedded maven to still be launched with MAVEN_OPTS in any case. It is up to the developer to not set things in there that cannot be executed concurrently. Jorg On Nov 26, 2007 7:03 PM, Bashar Jawad <[EMAIL PROTECTED]> wrote: > Yup,

junit fails in "install" but not in "test"

2007-11-27 Thread Jan Torben Heuer
Hi, I can test my multimodule-project with mvn test - no problems. However when I run mvn install, it fails. And it fails because resources are not found. What is difference between the two commands, test and install, while testing? Jan --

Re: [ANNOUNCE] Archiva 1.0 Released

2007-11-27 Thread Brett Porter
It will get there eventually - it just takes a little time to sync. out (even to the "backup") - Brett On 27/11/2007, ben short <[EMAIL PROTECTED]> wrote: > Hi, > > None of the mirrors have the war for download > > http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-archiva-1.0.war > > Ben

Re: [ANNOUNCE] Archiva 1.0 Released

2007-11-27 Thread ben short
Hi, None of the mirrors have the war for download http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-archiva-1.0.war Ben On Nov 27, 2007 9:49 AM, Maria Odea Ching <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > The Maven Archiva team is pleased to announce the release of Archiva 1.0final

[ANNOUNCE] Archiva 1.0 Released

2007-11-27 Thread Maria Odea Ching
Hi Everyone, The Maven Archiva team is pleased to announce the release of Archiva 1.0final. Archiva is a build artifact repository manager for use with build tools such as Maven, Continuum and Ant. It has features like repository search and browse, securing repositories, identifying unknown art

Re: Javadocs during install phase

2007-11-27 Thread Antonio Petrelli
2007/11/27, rmatthews <[EMAIL PROTECTED]>: > > > true This is the problem :-( http://jira.codehaus.org/browse/MJAVADOC-116 22 votes and 15 watches, and no one that takes care of it :-( Antonio

Javadocs during install phase

2007-11-27 Thread rmatthews
After adding javadoc plugin to the build plugins section Maven fails to compile my code anymore. Before, with nothing in the local repository, Maven would compile and test each module, and then install it in the repository. Now it state "No goals needed for project - skipping" for each project a

Re: Dependency issue (war and jar) in multimodule project

2007-11-27 Thread Anand Rathi
Yes. I have included war in dependency declaration. Below is a pom snapshot. * POM - START * http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0

Re: overriding jspc-maven-plugin

2007-11-27 Thread Stephen Connolly
Put your config in a and that way the war projects need only specify org.codehaus.mojo.jspc jspc-maven-plugin and they'll pick up the config from the plugin management section. Alternatively, use two parent poms, one for the jars and the other for the wars These need not requir