Online Poll for Maven Cookbook

2009-07-13 Thread Peter Horlock
Hi guys, in case you haven't voted which Maven book you want to see more of next, you can do it here: http://www.doodle.com/p42ebutub2zx4kb4 Thanks, Peter

Re: maven spring eclipse and properties/spring config

2009-07-13 Thread Brett Randall
Hi Justin, What is the license? http://www.box-spring.org/license.html doesn't yet list one . Brett Edelson, Justin wrote: This is getting a little off-topic, but I feel obliged to mention that we recently open sourced our generalized solution for dealing with the problem of

Re: Examples of multi-module site generation?

2009-07-13 Thread Roman Kournjaev
Hi Dave I dont think you are the only person that does not want to know the absolute URL of your pages, I think that absolutely OK. :-) Here is what i have that actually works sometimes and generates a parent link from the child projects. What you will have to do is to point the maven site

Re: Hi, guys! I am a new one in Maven. I try to run maven .but get the error message .

2009-07-13 Thread Dirk Olmes
白鹏 wrote: + Error stacktraces are turned on. Apache Maven 2.1.0 (r755702; 2009-03-19 03:10:27+0800) Java version: 1.6.0_05 Java home: C:\Program Files\Java\jdk1.6.0_05\jre Default locale: zh_CN, platform encoding: GBK OS name: windows xp version: 5.1 arch: x86 Family: windows [...] I'd

maven project with j2me

2009-07-13 Thread rizzz86
Hi, I have created a maven project with j2me-archetype using netbeans. It creates a project with a default MIDLet (SampleMIDlet.java). But when I try to run the project it says that No Main Class Found. Can anyone tell that why it is going for Main class instead of existing Midlet ? The

RE: Examples of multi-module site generation?

2009-07-13 Thread Mohan KR
Do you have the following element in your child modules site.xml? menu ref=parent / Thanks, mohan kr -Original Message- From: David C. Hicks [mailto:dhi...@i-hicks.org] Sent: Sunday, July 12, 2009 9:54 PM To: Maven Users Subject: Examples of multi-module site generation? Can anyone

[ANN] Build Helper Maven Plugin 1.4 Released

2009-07-13 Thread Paul Gier
The Mojo team is pleased to announce the release of the Build Helper Maven Plugin version 1.4. http://mojo.codehaus.org/build-helper-maven-plugin/ This is mainly a bug fix release. To get this update, simply specify the version in your project's plugin configuration: plugin

Re: maven project with j2me

2009-07-13 Thread mkleint
rizzz86 wrote: Hi, I have created a maven project with j2me-archetype using netbeans. It creates a project with a default MIDLet (SampleMIDlet.java). But when I try to run the project it says that No Main Class Found. Can anyone tell that why it is going for Main class instead of existing

Re: Examples of multi-module site generation?

2009-07-13 Thread Jacob Robertson
Are you seeing this problem after running site:deploy, or are you seeing it inside of target? These links will only hook together properly after a site:deploy.

RE: maven spring eclipse and properties/spring config

2009-07-13 Thread Edelson, Justin
ASL 2. Listed correctly here: http://kenai.com/projects/boxspring, but didn't make it into the site build. Justin -Original Message- From: Brett Randall [mailto:javabr...@gmail.com] Sent: Monday, July 13, 2009 2:51 AM To: Maven Users List Subject: Re: maven spring eclipse and

error with maven-metadata-Agile Java.xml

2009-07-13 Thread tubin gen
All of a sudden I started getting this error Error message: Unable to get dependency information: Unable to read local copy of metadata: Cannot read metadata from 'C:\Documents and Settings\sairamm\.m2\repository\commons-collections\commons-collections\maven-metadata-Agile Java.xml': end tag name

Deploy plugin 2.5 release? when?

2009-07-13 Thread Jeudy, Guillaume
Hi guys, Anyone know when maven deploy 2.5 plugin is due out? We are waiting on http://jira.codehaus.org/browse/MDEPLOY-78 Thanks! Guillaume Jeudy - Sr. Java developer Java and Open Source Application Development - Montreal Solutions Centre 1801, McGill College Avenue, Suite 1100

Re: Hi,guys! I am a new one in Maven. I try to run maven .but get the error message .

2009-07-13 Thread David Weintraub
Try: *C:\DOCUME~1\ADMINI~1 mvn archetype:generate * * *Instead of the archetype:create. The archetype:generate is the newer plugin, and you don't need to worry about providing it with any command line parameters that might cause errors. There could be several issues. Are you using Java 1.5 or

Re: Hi,guys! I am a new one in Maven. I try to run maven .but get the error message .

2009-07-13 Thread Mick Knutson
Where is your JAVA_HOME installed to? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation

Failed to resolve child

2009-07-13 Thread daniel.green
When I try to mvn eclipse:m2eclipse, I get a Failed to resolve artifact referring to two of the children of the parent (the directory I'm running the command from). Is this to be expected? Must I have to mvn install before these are resolved? I run into the same issue when I try to compile a

RE: Exclude subversion files in war

2009-07-13 Thread Damon Silver
I'm not sure why you're replying to threads from three years ago, but I've used the packagingExcludes directive to successfully exclude unwanted files and directories from our war files. The excludes/exclude mechanism seems spotty at best at the moment, see

Re: Examples of multi-module site generation?

2009-07-13 Thread David C. Hicks
Hi Roman, Thanks for the example, but I think I've already got that stuff covered. Here is my sub-module site.xml... project name=Module A version position=navigation-top/ publishDate position=right/ bannerLeft nameAllure Global Solutions/name

Re: How to use maven-scm-plugin with subversion and without a command line

2009-07-13 Thread Dave Levitt
On Fri, Jul 10, 2009 at 8:19 AM, Benson Marguliesbimargul...@gmail.com wrote: The doc for the svn piece of the scm-plugin has several tantalizing hints that suggest that there is some way to use an API to svn instead of running commands. Since I've got some people on Windows with cygwin, where

version separator: dash instead of dot

2009-07-13 Thread Ilya Kazakevich
Hello all, Is it possible to configure Maven to use dash instead of dot in version numbering? For the historical reasons our software versions look like this: 1-199-25. But maven needs 1.199.25. I wonder if there is some config in Maven, or we have to change our versioning policy? thanks

Re: How to use maven-scm-plugin with subversion and without a command line

2009-07-13 Thread Benson Margulies
We didn't understand each other, but I can now post the answer for the record. If you look at http://maven.apache.org/scm/plugins/update-mojo.html#privateKey, you will see a reference to 'javasvn'. It turns out that this is a separate plugin: http://code.google.com/p/maven-scm-provider-svnjava/

Re: version separator: dash instead of dot

2009-07-13 Thread Stephen Connolly
if you want to use version ranges, then you have to change your version number policy if you are fine without version ranges, then your non standard version numbers will be compared as a major number + qualifier only which should just about work, but ymmv Sent from my [rhymes with myPod]

Unexpected copying of classes from dependencies

2009-07-13 Thread Yang Zhang
For some reason, Maven is pulling in classes from the jar of a dependency and putting them into my target/test-classes/ directory, causing mvn test to fail (since extra Test* classes from that package are getting picked up). Why are these classes being copied? Thanks in advance for any

Re: Unexpected copying of classes from dependencies

2009-07-13 Thread Anders Hammar
What happens if you execute $ mvn clean test /Anders On Mon, Jul 13, 2009 at 21:27, Yang Zhangyanghates...@gmail.com wrote: For some reason, Maven is pulling in classes from the jar of a dependency and putting them into my target/test-classes/ directory, causing mvn test to fail (since extra

Re: Unexpected copying of classes from dependencies

2009-07-13 Thread Yang Zhang
I had tried cleaning already; I get the same thing. Anders Hammar wrote: What happens if you execute $ mvn clean test /Anders On Mon, Jul 13, 2009 at 21:27, Yang Zhangyanghates...@gmail.com wrote: For some reason, Maven is pulling in classes from the jar of a dependency and putting them into

Re: Unexpected copying of classes from dependencies

2009-07-13 Thread Anders Hammar
Ok, I was thinking that maybe your were using some IDE that interfered (i.e. copied the classes). Posting your pom.xml is probably necessary to figure this one out. You should also execute Maven in debug mode (mvn -X test) and do a grep on the output for test class. If nothing found, I would go

Re: Unexpected copying of classes from dependencies

2009-07-13 Thread Yang Zhang
pom.xml is attached. I ran with -X but I wasn't sure what I'm looking for - it didn't seem to trace anything about specific class files being produced. Anders Hammar wrote: Ok, I was thinking that maybe your were using some IDE that interfered (i.e. copied the classes). Posting your

Re: Unexpected copying of classes from dependencies

2009-07-13 Thread Anders Hammar
I suspect the use of descriptor ref jar-with-dependencies of maven-assembly-plugin. Try removing that one an see what happens. /Anders On Mon, Jul 13, 2009 at 23:51, Yang Zhangyanghates...@gmail.com wrote: pom.xml is attached.  I ran with -X but I wasn't sure what I'm looking for - it didn't

Re: Unexpected copying of classes from dependencies

2009-07-13 Thread Yang Zhang
I just tried this out (removed that line), to no avail. Anders Hammar wrote: I suspect the use of descriptor ref jar-with-dependencies of maven-assembly-plugin. Try removing that one an see what happens. /Anders On Mon, Jul 13, 2009 at 23:51, Yang Zhangyanghates...@gmail.com wrote: pom.xml

Re: Unexpected copying of classes from dependencies

2009-07-13 Thread Yang Zhang
Also tried removing that entire plugin - same results. Yang Zhang wrote: I just tried this out (removed that line), to no avail. Anders Hammar wrote: I suspect the use of descriptor ref jar-with-dependencies of maven-assembly-plugin. Try removing that one an see what happens. /Anders On

Re: 2.0.9-2.1.0 change/regression in relocation WARNING?

2009-07-13 Thread javabrett
Further, a build in m2eclipse 0.9.8.200905041414 using the Embedded mvn (which version is that?), _does_ throw the WARNING (which is what I want). Does anyone know how these warnings are supposed to work and whether their behaviour has changed recently? It's a shame if you can't force a

Re: Unexpected copying of classes from dependencies

2009-07-13 Thread Anders Hammar
Ok. Maybe there is something in your parent pom? Are other test classes copied as well, or just this? This is what I would try: remove all plugin confguration, so that you're running defaultMaven plugin mappings. Try to get something running, and then add the extra stuff. /Anders On Tue, Jul