AW: Integration testing best practices

2009-04-08 Thread Rouvinez, Jean-Claude
Hi, We use the solution 3 suggested under http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing?focusedCommentId=114787113#comment-114787113 and it works for us. This article is not so old (Jan 09). Best Regards Jean-Claude -Ursprüngliche Nachricht- Von: Jason Voegel

Using buildnumber-maven-plugin together with jetty plugin

2009-04-08 Thread nodje
Hi, I've just setup config with buildnumber-maven-plugin using ${project.artifactId}-${project.version}-r${buildNumber} as name for my artifacts. But now when I try to run 'mvn jetty:run-exploded', I get a message from Jetty stating it can't find appname-1.1-rnull. So it seems Jetty isn't a

Re: eclipse:eclipse suddenly adding including="**/*.java" to .classpath

2009-04-08 Thread Arnaud HERITIER
1) The Maven convention and good practice is to put ressources files like *.txt in src/main/resources. 2) The change you have is due to the new version 2.6 of the plugin which was released few days ago. To avoid such a surprise in the future, the good practice is to set the version of each plugin y

eclipse:eclipse suddenly adding including="**/*.java" to .classpath

2009-04-08 Thread Zach Cox
Before this week, running "mvn eclipse:eclipse" would put a line like this in .classpath: Now this week it is putting this line in .classpath instead: We have some .txt files that sit alongside .java files in the package structure in src/main/java. When running "mvn compile" all of those .tx

Re: LATEST version

2009-04-08 Thread Sudhakar Kanagarajan
Do someone know the solution for this? I am facing the same issue where I was able to work for RELEASE but LATEST version identifier is not working. -- View this message in context: http://www.nabble.com/LATEST-version-tp19874662p22963778.html Sent from the Maven - Users mailing list archive at

Re: Equivalent of latest.integration in maven ?

2009-04-08 Thread Brett Porter
I believe that is the equivalent that Ivy used, yes. - Brett On 09/04/2009, at 7:12 AM, huser wrote: Hi, The developers setup the rev number in ivy.xml as "latest.integration" for project dependencies. Is there an equivalent of this in Maven ? Revision always pointing to latest SNAPSHOT

Re: Does Maven specify that groupId values will be period-separated components?

2009-04-08 Thread Brett Porter
It relies on the period to do the path changes. That's not to say that it's required - you can have groups and paths that are some-other- value for example, but the convention is to use reverse-domain syntax like Java packages, which should be more easily recognised by a regular Maven user.

Re: archetype-metadata optional filesets?

2009-04-08 Thread Lachlan Deck
Anyone? On 07/04/2009, at 8:56 AM, Lachlan Deck wrote: Hi there, Just a quick question: say I've got a fileset in the archetype descriptor like so: ... src/main/java

Does Maven specify that groupId values will be period-separated components?

2009-04-08 Thread David M. Karr
I would never consider defining a groupId value that didn't look like a package name, but does Maven specify that groupId values have to be a set of period-separated components? Apparently groupId values are "translated" to directory paths, but is that because of a convention, or a restriction

Equivalent of latest.integration in maven ?

2009-04-08 Thread huser
Hi, The developers setup the rev number in ivy.xml as "latest.integration" for project dependencies. Is there an equivalent of this in Maven ? Revision always pointing to latest SNAPSHOT version (coming from Nexus) ? Thanks, -- View this message in context: http://www.nabble.com/Equivalent-of-

RE: m2eclipse and crashing on any access to pom.xml

2009-04-08 Thread Brian E. Fox
The m2eclipse user list is more appropriate for this, but Igor found these links: http://www.mail-archive.com/ubuntu-b...@lists.ubuntu.com/msg728168.html http://dev.eclipse.org/newslists/news.eclipse.newcomer/msg21845.html so it doesn't seem specific to M2e. -Original Message- From: sean

m2eclipse and crashing on any access to pom.xml

2009-04-08 Thread Sean Davis
I am running eclipse under: > java -version java version "1.6.0_04" Java(TM) SE Runtime Environment (build 1.6.0_04-b12) Java HotSpot(TM) 64-Bit Server VM (build 10.0-b19, mixed mode) When I do anything to add a dependency, I get a crash of the VM: # # An unexpected error has been detected by Ja

Re: Integration testing best practices

2009-04-08 Thread Wendy Smoak
On Wed, Apr 8, 2009 at 10:22 AM, Jason Voegele wrote: > I'm interested in knowing the current thinking on best practices for > integration testing in Maven projects.  I did find a few articles on the Web > that discuss this issue, but they all are a bit old now.  The most relevant > article appear

Re: Looking for a Maven report

2009-04-08 Thread Kyle Bober
Just noticed there is a plugin maven-overview-pluing at http://code.google.com/p/maven-overview-plugin/ Looks like it creates a graphic report of the dependencies. Not sure if it supports the version numbers yet. Also, the m2Eclipse plugin has a nice view that shows the dependency graph of artifact

Integration testing best practices

2009-04-08 Thread Jason Voegele
I'm interested in knowing the current thinking on best practices for integration testing in Maven projects. I did find a few articles on the Web that discuss this issue, but they all are a bit old now. The most relevant article appears to be this one: http://docs.codehaus.org/display/MAVENUSE

Re: How to include extra files with maven-source-plugin?

2009-04-08 Thread Eric B.
> "Wayne Fay" wrote in message > news:52bab8690904071513q6dc03722tbf6c57a788458...@mail.gmail.com... > > I'm not quite sure I understand what you mean... It's not really sample > > code; it is the jsp code for the application that I am building. > > Currently > > just the compiled jsp's are bein

Looking for a Maven report

2009-04-08 Thread solo1970
Hello everyone, I am looking for a reposrt that could provide me with the following functionality: ->In a multimodule project, list all the artifacts of the project with their version ->Be able to filter that list based on classifier, groupId, Anything of the sort out there??? Sonia -- Vie

Re: Maven Overview Plugin version 1.4 has been released

2009-04-08 Thread Dan Tran
Stephen, as long as the plugin has its own groupId, the artifactId can be any thing. -D On Wed, Apr 8, 2009 at 8:43 AM, Stephen Connolly wrote: > Ehhh, > > FYI, AFAIK > > maven-_-plugin is reserved for o.a.m.p plugins > > all other plugins are supposed to use the pattern > > _-maven-pl

RE: Understanding SNAPSHOTS

2009-04-08 Thread Sergey Shcherbakov
My original question was >>1. How to distinguish snapshot build versions correctly? So that one >>snapshot build would not overwrite previous one in the repository. > >You don't, that's not the purpose. If you truly care about a particular >snapshot version, then it should have been a release. I

Re: Maven Overview Plugin version 1.4 has been released

2009-04-08 Thread Stephen Connolly
Ehhh, FYI, AFAIK maven-_-plugin is reserved for o.a.m.p plugins all other plugins are supposed to use the pattern _-maven-plugin -Stephen 2009/4/8 Hubert Iwaniuk > Maven Overview Plugin version 1.4 has been released. > > http://code.google.com/p/maven-overview-plugin/ > > Maven Over

Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-08 Thread Tim
My coworker just found out that version 2.0 of surefire shows the correct error msgs.So it seems that error handling was changed between them and now it swallows the correct exceptions :-/ That would have saved a lot of time debugging this lol. On Wed, Apr 8, 2009 at 7:45 AM, Tim wrote: > That's

Re: Question concerning settings-security.xml location

2009-04-08 Thread Brett Porter
I think this is best discussed with the corresponding Archiva issue rather than on the Maven end. On 09/04/2009, at 12:33 AM, solo1970 wrote: I nede to investigate the run-around you proposed, but by doing that won't I disable "Delete Artifact" for ALL the users I would need to dis

Re: JSP Precompile and WebSphere

2009-04-08 Thread Robert Einsle
Hy Jerry, this is my only war-Project in Workspace. I'ts the only maven-Project in Workspace. Robert Jerry Thome schrieb: > We have a simple web app. We test locally using Tomcat and then deploy > through various lifecycles which run WebSphere 6.1. Our JSP precompile > process doesn't do any

RE: JSP Precompile and WebSphere

2009-04-08 Thread Jerry Thome
We have a simple web app. We test locally using Tomcat and then deploy through various lifecycles which run WebSphere 6.1. Our JSP precompile process doesn't do anything IBM / WAS specific. Some of our JSPs are very simple, and some are used by Spring. We followed the instructions exactly as

Re: Packaging of "provided" Dependencie in war

2009-04-08 Thread Jörg Schaible
Hi Robert, Robert Einsle wrote at Mittwoch, 8. April 2009 15:39: > Hy Kyle, > > i tried it several Times. > > But i will try again *gg* > > and ... mail-1.4.jar, activation-1.1.jar and servlet-api-2.2.jar are in > WEB-INF/lib-directory ob war-File. > > I tried this time run Mavon from outside

RE: mirrors, oh mirrors

2009-04-08 Thread Brian E. Fox
Yes, Nexus 1.3 supports true mirrors. http://www.sonatype.com/people/2009/03/new-feature-in-nexus-13-mirror-su pport/ -Original Message- From: CemKoc [mailto:cem.koc.fwd+nbl...@gmail.com] Sent: Wednesday, April 08, 2009 7:05 AM To: users@maven.apache.org Subject: Re: mirrors, oh mirrors

Re: Specify text in Maven site generated pages

2009-04-08 Thread Stefano Fornari
Hi Hervé and All, what's the best way to add a new report? I would like to run some integration tests and generate a report to be added to the site. How can I do it? Thanks in advance, Ste On Fri, Sep 12, 2008 at 2:53 PM, Hervé BOUTEMY wrote: > Le vendredi 12 septembre 2008, Junco Hueco a écrit

Re: Question concerning settings-security.xml location

2009-04-08 Thread solo1970
I need to investigate the work-around you proposed, but by doing that won't I disable "Delete Artifact" for ALL the users I would need to disable it only for one user, because we need the "Delete Artifact" functionality for a group of us who are SCMs. Sonia brettporter wrote: > > > O

How to create zip of all project artifact binaries?

2009-04-08 Thread David Hoffer
I would like to create a zip of my complete project binary artifacts. (Also one of sources and javadocs would be a bonus.) The project has many modules and I need the resulting zip to structure the contents so each module has its own folder containing it's artifact (jar, swc, etc) plus any runtime

RE: Understanding SNAPSHOTS

2009-04-08 Thread Todd Thiessen
> In a previous company, the snapshots were not used by qa, all > deliveries to qa where release builds. We used a 4 digit > versioning where the last number was just a build number. We > did this because it wasn't known ahead of time if a given > build would pass qa and be officially release

RE: buildpath probleme with eclipse:eclipse goal

2009-04-08 Thread florian.cavagnini
That's work! Thanks for the help Florian Cavagnini IT / Gestion de Configuration Immeuble Lumière 40 avenue des Terroirs de France 75012 Paris T +33 1 57 22 55 83 E florian.cavagn...@ingdirect.fr -Message d'origine- De : Robert Hanson [mailto:iamroberthan...@gmail.com] Envoyé : mercred

RE: Understanding SNAPSHOTS

2009-04-08 Thread Todd Thiessen
>So your formal releases are produced by manually running the release > >plugin? And if it fails, you manually do a rollback, > depending on the > >failure? > > Yes, we manually roll it back. It's not too bad with svn, but > a bit annoying I'll admit. We haven't tackled the release tools yet.

Re: Packaging of "provided" Dependencie in war

2009-04-08 Thread Robert Einsle
Hy Kyle, i tried it several Times. But i will try again *gg* and ... mail-1.4.jar, activation-1.1.jar and servlet-api-2.2.jar are in WEB-INF/lib-directory ob war-File. I tried this time run Mavon from outside of eclipse on command-line. Robert Kyle Bober schrieb: > Restarting you development

RE: Understanding SNAPSHOTS

2009-04-08 Thread Brian Fox
>Regarding snapshots and the way your QA works it all looks like you have >adjusted your team workflow to the features the maven tool provides. Yes, this comes from years of using the tool, but is also adapted to our current environment. >And >these features are not so flexible to cover all re

Re: Packaging of "provided" Dependencie in war

2009-04-08 Thread Kyle Bober
Restarting you development environment will not remove the maven target directory and artifacts. Try running the following Maven command 'mvn clean package' and check the contents of the target//WEB-INF/lib -Kyle On Wed, Apr 8, 2009 at 9:27 AM, Robert Einsle wrote: > Hy, > > i think i run it s

Re: Packaging of "provided" Dependencie in war

2009-04-08 Thread Robert Einsle
Hy, i think i run it several times, incl restart of my Developementenvironment. Robert Kyle Bober schrieb: > That should work the way you have it configured. Did you run the clean > goal after you changed the dependency scope to provided. This will > make sure that a previous build that may have

Re: Packaging of "provided" Dependencie in war

2009-04-08 Thread Kyle Bober
That should work the way you have it configured. Did you run the clean goal after you changed the dependency scope to provided. This will make sure that a previous build that may have contained the dependencies is completely removed. -Kyle On Wed, Apr 8, 2009 at 5:22 AM, Robert Einsle wrote: >

Maven Overview Plugin version 1.4 has been released

2009-04-08 Thread Hubert Iwaniuk
Maven Overview Plugin version 1.4 has been released. http://code.google.com/p/maven-overview-plugin/ Maven Overview Plugin graphs your Maven dependencies. You can use it in plugin or report mode to generate just graph or integrate with site generated by Maven respectively. This release improves

Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-08 Thread Tim
That's good to know :) I can double check but that is probably not what is happening here since it is defined in the parent pom as junit 4. On Wed, Apr 8, 2009 at 7:15 AM, Jörg Schaible wrote: > Hi Tim, > > Tim wrote at Mittwoch, 8. April 2009 14:05: > > > Unfortunately not. It seems however tha

Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-08 Thread Jörg Schaible
Hi Tim, Tim wrote at Mittwoch, 8. April 2009 14:05: > Unfortunately not. It seems however that surefire is actually giving the > wrong stacktrace. > When I run this via the cli using the classpath that surefire says it is > using I get a different exception. > It seems that a dependency was missi

Re: Surefire forking using junit 3 even with junit 4 dependency?

2009-04-08 Thread Tim
Unfortunately not. It seems however that surefire is actually giving the wrong stacktrace. When I run this via the cli using the classpath that surefire says it is using I get a different exception. It seems that a dependency was missing at that point. When I added it, I got a new exception instead

Re: Ear plugin & EJB module

2009-04-08 Thread CemKoc
Thanks for clear explanation. I have updated my maven to 2.1.0 a few minutes ago. (I was using 2.0.9) Now, I have tried it again, and result is same. It tries to fetch from local repository. I will submit a bug in JIRA tonight. Thank you It depends. Maven is supposed to provide that base

Re: LATEST and RELEASE release version management

2009-04-08 Thread Tim
It does but that actually includes all SNAPSHOT versions. If you aren't interested in snapshot versions as well that that will break. On Wed, Apr 8, 2009 at 2:16 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > sounds like you want version ranges > > [1.0,2.0-!) > > Sent from my [

RE: LATEST and RELEASE release version management

2009-04-08 Thread Hayes, Peter
Version ranges seem to totally break reproducibility of released builds. Personally, I'd like to see these eliminated from Maven altogether and replaced with a separate version compatibility field that indicates which versions of a dependency you are compatible with but still have a specific vers

Re: Ear plugin & EJB module

2009-04-08 Thread Stephane Nicoll
On Wed, Apr 8, 2009 at 1:28 PM, CemKoc > wrote: > > Hi Stephane, > > I have some questions for you. > > 1 - Why are the default locations of war and ejb projects. It depends. Maven is supposed to provide that based of your environment. If you're running a reactor project, it will fetch the buil

Re: Ear plugin & EJB module

2009-04-08 Thread CemKoc
I mean 1 - What are the default locations of war and ejb projects. Sorry for typo Thanks Hi Stephane, I have some questions for you. 1 - Why are the default locations of war and ejb projects. 2 - In this scenario, without installing to a local repository and ejb project we can not pro

Re: Ear plugin & EJB module

2009-04-08 Thread CemKoc
Hi Stephane, I have some questions for you. 1 - Why are the default locations of war and ejb projects. 2 - In this scenario, without installing to a local repository and ejb project we can not produce an ear file. Is it normal? Thanks The ear plugin just uses the standard maven API. It r

Re: Ear plugin & EJB module

2009-04-08 Thread Stephane Nicoll
The ear plugin just uses the standard maven API. It relies on the Artifact interface that should return the location of the file (target of the module, local repository, etc). I don't see much trouble here but if you can confirm this scenario with EJB modules only, just file an issue with a projet

Re: Understanding SNAPSHOTS

2009-04-08 Thread Stephen Connolly
2009/4/8 Sergey Shcherbakov > Thank you Brian, > > The way we currently prevent developers from deploying their local > builds to the repo are the security permissions. But I have understood, > that some kind of a repo-managing system should be used for more > flexibility. > > Regarding snapshots

Re: mirrors, oh mirrors

2009-04-08 Thread CemKoc
Is there any solution about this problem? I'd like mirrors to provide multiple alternate locations. I put the improvement request here: http://jira.codehaus.org/browse/MNG-3772 Cheers, Szczepan -- View this message in context: http://n2.nabble.com/mirrors%2C-oh-mirrors-tp1125603p260456

Re: Release Plugin scmCommentPrefix issues

2009-04-08 Thread Heinrich Nirschl
On Tue, Apr 7, 2009 at 5:12 PM, Mykel Alvis wrote: > When performing a release, I want to place an identifier into the release > tag commit message (in subversion, in my case). > > Pasted directly from my command line running maven 2.0.9 with release plugin > 2.0-beta-9: > > $ mvn -B -DscmCommentP

Re: Ear plugin & EJB module

2009-04-08 Thread CemKoc
I have checked source of ear plugin in limited time, I noticed in EarMojo class: public void execute() final File sourceFile = module.getArtifact().getFile(); final File destinationFile = buildDestinationFile( getWorkDirectory(), module.getUri() ); ... ... ... unpack( sourceFi

Ear plugin & EJB module

2009-04-08 Thread CemKoc
Hi all, We have a project consisting an ear, a web module and a ejb module. Project POM | |EJB POM | |WAR POM | |EAR POM We are calling "mvn clean package" statement for 'Project POM'. I noticed that EAR plugin try to fetch modules from different folders. For, War project it is

RE: Maven 2.1 and Maven 2.0.9 changes

2009-04-08 Thread Nord, James
Strange - I have exactly that and I just did a test with 2.1.0 and it worked just the same as with 2.0.9 (mvn deploy of a snapshot version) com.nds.project runtime ${runtimeVersion} import pom Is it the core or a plug-in that is responsible for this? /James > -

Re: Maven 2.1 and Maven 2.0.9 changes

2009-04-08 Thread Ben Storey
Thanks for the quick update will do that. On Wed, Apr 8, 2009 at 10:21 AM, Brett Porter wrote: > This change was by design in 2.1. You should be overriding the version in > the child by specifying the dependencyManagement section again. > > - Brett > > > On 08/04/2009, at 7:09 PM, Ben Storey wro

Packaging of "provided" Dependencie in war

2009-04-08 Thread Robert Einsle
Hy List, i've configured dependencies (libraries) als Scope "provided", and would aspect they are not packed to the destination war-File. --- cut ---       javax.servlet   servlet-api   2.2   provided           javax.mail   mail   1.4   provided           

Re: Maven 2.1 and Maven 2.0.9 changes

2009-04-08 Thread Brett Porter
This change was by design in 2.1. You should be overriding the version in the child by specifying the dependencyManagement section again. - Brett On 08/04/2009, at 7:09 PM, Ben Storey wrote: Hi, We ran into a problem I thought I would make you aware of one of my colleagues was running maven

[maven-resources-plugin] waiting for 2.4 or a backport

2009-04-08 Thread William Ghelfi
Hi, first time here. I found an issue with the escaping/interpolation of paths under windows, using the goal "copy-resources" Example: ${basedir} ===> C\:\\Some\\Path Where of course the "\:" thing will take down my application A quick test and a quick search revealed that this issue has been f

Maven 2.1 and Maven 2.0.9 changes

2009-04-08 Thread Ben Storey
Hi, We ran into a problem I thought I would make you aware of one of my colleagues was running maven 2.1 and we were all running maven 2.0.9 When deploying with version 2.1.0 and you have properties setup like the following in the root project. 1.1 …

[M2.1.0] property not found in the plugin

2009-04-08 Thread Tobias Rübner
Hi, I'm using profiles to define properties in a project. I defined a property in each profile. Now I added this property to the maven-assembly-plugin as value for the goal. This worked fine in Maven 2.0.10 but in Maven 2.1.0 it gives me an error: [ERROR] BUILD ERROR [INFO] -

RE: Understanding SNAPSHOTS

2009-04-08 Thread Sergey Shcherbakov
Thank you Brian, The way we currently prevent developers from deploying their local builds to the repo are the security permissions. But I have understood, that some kind of a repo-managing system should be used for more flexibility. Regarding snapshots and the way your QA works it all looks like

Re: LATEST and RELEASE release version management

2009-04-08 Thread Stephen Connolly
sounds like you want version ranges [1.0,2.0-!) Sent from my [rhymes with myPod] ;-) On 8 Apr 2009, at 01:39, Tim wrote: http://jira.codehaus.org/browse/MNG-4089 I need to read over the bug that was linked as a duplicate more closely but I don't think it's the same thing. What I asked for