Maven webapp and extreme complexity

2008-12-16 Thread Joey Krane
Hello, I'm exploring Maven and hence started to work with a simple web application. I used the one I had already (mywebapp) with the following directory structure. mywebapp/ login.html wEB-INF/ src/LoginServlet.java src/EmailServlet.java web.xml I

Re: Maven webapp and extreme complexity

2008-12-16 Thread Nick Stolwijk
Maven is not that much more difficult then ant, it is different. Please take a look at the maven book [1], this explains everything in a very good way! Oh, and for your compile problem. Put your java sources in src/main/java, your resources in src/main/resources, your unit tests in

Re: Maven webapp and extreme complexity

2008-12-16 Thread Nick Stolwijk
And you are completely right. :) Thanks, a quick c/p error. With regards, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Tue, Dec 16, 2008 at 10:38 AM, Martin Höller mar...@xss.co.at wrote: On Tuesday 16 December 2008 Nick Stolwijk wrote:

Re: Maven webapp and extreme complexity

2008-12-16 Thread Martin Höller
On Tuesday 16 December 2008 Nick Stolwijk wrote: Maven is not that much more difficult then ant, it is different. Please take a look at the maven book [1], this explains everything in a very good way! Oh, and for your compile problem. Put your java sources in src/main/java, your resources

Re: Maven webapp and extreme complexity

2008-12-16 Thread Nick Stolwijk
You created your project with the sample webapp as archetype. It is recommended to seperate your java files and your webapp in seperate modules and add a dependency between the modules. For your first maven project you can simply create the src/main/java yourself (it is just a directory) and put

Re: Running selective reports causes site/index.html to dissapear?!?

2008-12-16 Thread Kent Närling
2008/12/16 Jörg Schaible joerg.schai...@gmx.de Hi Kent, Kent Närling wrote at Dienstag, 16. Dezember 2008 13:14: I am trying to customize the site generation and only want to generate selected reports... however when I do this as described in the examples: plugins plugin

Trying to deploy site...

2008-12-16 Thread Kent Närling
I am trying to deploy a project site, but it seems that the deployment possibilities are very limited? eg. I am trying this: distributionManagement site idproject-site/id urlscp://localhost/home/admin/test/url /site /distributionManagement But then I get: Embedded error:

Re: Trying to deploy site...

2008-12-16 Thread Mick Knutson
scp is using ssh so you need a key generated. If you are building and deploying locally, try to just stage the site to the directory you want. site-stage --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411:

enforcer and components.

2008-12-16 Thread Nord, James
Hi all, I have the following in a custom enforcer rule ScmManager scmManger = (ScmManager) helper.getComponent(ScmManager.class); Which fails with Component descriptor cannot be found in the component repository: org.apache.maven.scm.manager.ScmManager. My rule has dependencies on

Re: Trying to deploy site...

2008-12-16 Thread Kent Närling
So, you are saying that only signature/key-based SSH works with deployment? not simply username+password? (that was what I tried) I do make site-stage too, just wanted to test the first deployment against a port-forwarded port to another host ... //Kent 2008/12/16 Mick Knutson

Re: Trying to deploy site...

2008-12-16 Thread Mick Knutson
You could try the ftp deployment instead of scp, that might work. But if you are staying local, use site-stage will solve your issue. if not local to the box, then you need a deployment declaration like you are using. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise

Re: Are Maven profiles like Ant targets?

2008-12-16 Thread Geoffrey Wiseman
On Tue, Dec 16, 2008 at 10:27 AM, Trevor Harmon tre...@vocaro.com wrote: I'm coming from the Ant world, where targets are fundamental. Need to generate the JavaDocs and a JAR? Write targets called javadoc and jar then do: ant javadoc ant jar In Maven, these particular tasks have

Re: Are Maven profiles like Ant targets?

2008-12-16 Thread Martin Höller
On Tuesday 16 December 2008 Trevor Harmon wrote: [...] So... am I doing this right? Are profiles intended to play the role of Ant targets? Or is there some other mechanism for that? You are doing it wrong. Maven has no targets like ant has. Maven has lifecylces [0] which is built of phases

Re: MAVEN certifications

2008-12-16 Thread mohan_IBM
thnx for ur reply, can u provide more information on the online tests -- View this message in context: http://www.nabble.com/MAVEN-certifications-tp21028497p21035523.html Sent from the Maven - Users mailing list archive at Nabble.com.

RE: Are Maven profiles like Ant targets?

2008-12-16 Thread Todd Thiessen
You probably want to use a plugin. For instance you could use the DocBook plugin. http://maven-plugins.sourceforge.net/maven-sdocbook-plugin/index.html Once you have this plugin you can simply run the command: mvn sdocbook You will also want to get a better understanding of Maven's build

Re: Maven webapp and extreme complexity

2008-12-16 Thread Martin Höller
On Tuesday 16 December 2008 Joey Krane wrote: On Tue, Dec 16, 2008 at 3:28 PM, Nick Stolwijk nick.stolw...@gmail.com wrote: Take a look at chapter 5 of the book. It creates a simple webapp. In chapter 5.5 it adds a servlet to src/main/java. Thanks for your patience. Creating the java

Running selective reports causes site/index.html to dissapear?!?

2008-12-16 Thread Kent Närling
I am trying to customize the site generation and only want to generate selected reports... however when I do this as described in the examples: plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-project-info-reports-plugin/artifactId

Using variable in : resourcefiltering${filterConfig}/filteringresource

2008-12-16 Thread mustaghattack
I'd like to define in a parent pom resources like that : resources resource directory${configDirectory}/directory filtering${filterConfig}/filtering

Re: Maven webapp and extreme complexity

2008-12-16 Thread Nick Stolwijk
Take a look at chapter 5 of the book. It creates a simple webapp. In chapter 5.5 it adds a servlet to src/main/java. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Tue, Dec 16, 2008 at 10:56 AM, Nick Stolwijk nick.stolw...@gmail.com wrote:

Re: MAVEN certifications

2008-12-16 Thread Wendy Smoak
On Tue, Dec 16, 2008 at 12:32 AM, mohan_IBM mohanda...@gmail.com wrote: I am new to MAVEN, and just started using it. Is there any certifications to MAVEN or ANT build tools? There are some online certification tests at Java Black Belt. -- Wendy

Re: Running selective reports causes site/index.html to dissapear?!?

2008-12-16 Thread Jörg Schaible
Hi Kent, Kent Närling wrote at Dienstag, 16. Dezember 2008 13:14: I am trying to customize the site generation and only want to generate selected reports... however when I do this as described in the examples: plugins plugin groupIdorg.apache.maven.plugins/groupId

Re: Maven webapp and extreme complexity

2008-12-16 Thread Joey Krane
On Tue, Dec 16, 2008 at 3:28 PM, Nick Stolwijk nick.stolw...@gmail.com wrote: Take a look at chapter 5 of the book. It creates a simple webapp. In chapter 5.5 it adds a servlet to src/main/java. Thanks for your patience. Creating the java directory and copying the sources fixed the problem.

Resource Filtering - property not defined?

2008-12-16 Thread David C. Hicks
I encountered a situation this morning in which a very strange bug showed up in the system I'm working on - caused by the fact that we were filtering our resources. The particular substitution in question, however, was not a defined value at build time. It was in a Struts package file and in

Re: Maven webapp and extreme complexity

2008-12-16 Thread Joey Krane
Thanks for the response. On Tue, Dec 16, 2008 at 3:03 PM, Nick Stolwijk nick.stolw...@gmail.com wrote: Maven is not that much more difficult then ant, it is different. Please take a look at the maven book [1], this explains everything in a very good way! Yes, I did refer to this as well. It

Are Maven profiles like Ant targets?

2008-12-16 Thread Trevor Harmon
I'm coming from the Ant world, where targets are fundamental. Need to generate the JavaDocs and a JAR? Write targets called javadoc and jar then do: ant javadoc ant jar In Maven, these particular tasks have built-in plugins, so there's no need to write a target. Instead you just

mvn eclipse:eclipse throws NPE

2008-12-16 Thread Mark Hansen
When I run eclipse:eclipse on my multi-projece maven directory structure, I get this error message. Does anybody know what the problem might be? C:\slbr\loggingmvn eclipse:eclipse [INFO] Scanning for projects... [WARNING] Overriding profile: 'os-specific-settings' (source: pom) with new inst

Deploy a POM with Properties Filterred/interpolated

2008-12-16 Thread Trevor Paterson
I can't find any response on the list to the problem of how to prefilter/interpolate properties ( such as version numbers ) in an artifact's POM upon Deploying to a repository. The default is for the unfilterred project POM to be uploaded. we have many variable properties in our POMs to control

Re: MAVEN certifications

2008-12-16 Thread Kalle Korhonen
http://letmegooglethatforyou.com/?q=maven+Java+Black+Belt On Tue, Dec 16, 2008 at 7:42 AM, mohan_IBM mohanda...@gmail.com wrote: thnx for ur reply, can u provide more information on the online tests -- View this message in context:

RE: MAVEN certifications

2008-12-16 Thread Brian E. Fox
Ahaha, my new favorite site. -Original Message- From: Kalle Korhonen [mailto:kalle.o.korho...@gmail.com] Sent: Tuesday, December 16, 2008 1:35 PM To: Maven Users List Subject: Re: MAVEN certifications http://letmegooglethatforyou.com/?q=maven+Java+Black+Belt On Tue, Dec 16, 2008 at

Site XSD

2008-12-16 Thread Todd Thiessen
Does anyone know if there is an XSD file for the site.xml file and if so where I could get it ;-). I can't seem to find it anywhere. --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional

Re: MAVEN certifications

2008-12-16 Thread Mick Knutson
Just out of curiosity, why is this your new favorite site? So to take this off topic, but I saw this and wonder where the use case for this site is? i think I might be missing something --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile

Re: Final Memory

2008-12-16 Thread Anil-C
Hi Paul, I was looking exactly for the same question. Did you get an answer to this? Thanks Anil Paul Benedict-2 wrote: What does the Final Memory detail represent when Maven finishes? I can't find any documentation on what the two numbers mean. [INFO] Final Memory: 1M/4M Paul

Re: Are Maven profiles like Ant targets?

2008-12-16 Thread Trevor Harmon
On Dec 16, 2008, at 10:43 AM, Todd Thiessen wrote: You probably want to use a plugin. For instance you could use the DocBook plugin. http://maven-plugins.sourceforge.net/maven-sdocbook-plugin/index.html The sdocbook plugin does not work with Maven 2. I also tried the more recent docbook

Re: MAVEN certifications

2008-12-16 Thread Wayne Fay
Just out of curiosity, why is this your new favorite site? So to take this off topic, but I saw this and wonder where the use case for this site is? i think I might be missing something LetMeGoogleThatForYou.com provides a means of teaching someone how to use Google, in case they don't

Re: Are Maven profiles like Ant targets?

2008-12-16 Thread Trevor Harmon
On Dec 16, 2008, at 10:42 AM, Martin Höller wrote: You are doing it wrong. Maven has no targets like ant has. Maven has lifecylces [0] which is built of phases (e.g. 'compile', package', 'install'). Plugins are attached to phases and are executed whenever a phase is executed. Well, without

RE: Are Maven profiles like Ant targets?

2008-12-16 Thread Todd Thiessen
They are more powerful in the sense that you can still call any goal independantly, but still have the flexibility to bind it to a phase which is part of a well defined life cycle. You get the best of both worlds this way. Perhaps the doxia plugin would work?

Re: Final Memory

2008-12-16 Thread Wayne Fay
What does the Final Memory detail represent when Maven finishes? I can't find any documentation on what the two numbers mean. [INFO] Final Memory: 1M/4M I'm not certain, but I'd expect the first number to be amount of memory currently consumed when this INFO log was generated and the second

Re: MAVEN certifications

2008-12-16 Thread Mick Knutson
LOL. Now I get it... I can now see how I will love this as well --- 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:

Resport of Junit tests in other folder

2008-12-16 Thread JJ__
Hello, I am trying to compile and test a program and it works, but the report of the tests are stored in target\surefire-reports the default directory. I have changed it with the following pom.xml changing outputDirectory of both plugins maven-surefire-report-plugin and maven-site-plugin but it

Re: Re: MAVEN certifications

2008-12-16 Thread martijnverburg
As opposed to www.just^%^inggoogleit.com which is the blatantly rude way :) On Dec 16, 2008 7:50pm, Wayne Fay wayne...@gmail.com wrote: Just out of curiosity, why is this your new favorite site? So to take this off topic, but I saw this and wonder where the use case for this site is? i

Re: Are Maven profiles like Ant targets?

2008-12-16 Thread Trevor Harmon
On Dec 16, 2008, at 2:54 PM, Todd Thiessen wrote: They are more powerful in the sense that you can still call any goal independantly But if I have two tasks implemented with AntRun, there's no way to call them independently because there's only one goal: run. I guess most of my problems

setting ant attribute with value from pom

2008-12-16 Thread cause
Hello, I'm having problem setting ant attribute with a property passed from pom file. Here is the pom part where I call ant target: ant antfile=build.xml target=update-dependencies-in-shared-repository property name=shared-repo

Re: Resport of Junit tests in other folder

2008-12-16 Thread Baptiste MATHUS
After reading the documentation here: http://maven.apache.org/plugins/maven-surefire-report-plugin/examples/report-custom-location.html It seems like outputDirectory customization is only designed to generate the html file somewhere else. Generating xml/txt files in a custom directory seems not

Re: Resport of Junit tests in other folder

2008-12-16 Thread JJ__
Thank you very much. I needed it because I wanted to integrate tests results with other tools and I prefered to change maven folder rather than changing the folder of all the other tools. Baptiste MATHUS-4 wrote: After reading the documentation here:

Re: Tests run fine in NetBeans, but fail using command line Maven

2008-12-16 Thread Geoffrey Wiseman
On Tue, Dec 16, 2008 at 12:48 AM, Marat Radchenko slonopotamusor...@gmail.com wrote: They should. Unless you managed to write them in such way that they don't. So it could be: - Issues with the isolation of your tests from each other - Issues with your Maven project configuration -

RE: Are Maven profiles like Ant targets?

2008-12-16 Thread Todd Thiessen
--- Todd Thiessen -Original Message- From: Trevor Harmon [mailto:tre...@vocaro.com] Sent: Tuesday, December 16, 2008 3:59 PM To: Maven Users List Subject: Re: Are Maven profiles like Ant targets? On Dec 16, 2008, at 2:54 PM, Todd Thiessen wrote: They are more powerful in

Re: Tests run fine in NetBeans, but fail using command line Maven

2008-12-16 Thread James Adams
The tests run fine when I run them individually using Maven at the command line (or from within NetBeans or Eclipse -- I don't think the IDE is an issue since the same thing happens in the IDE as at the command line): $ mvn -Dtest=MultipleDaoTest test-compile surefire:test [INFO] Scanning for

RE: Are Maven profiles like Ant targets?

2008-12-16 Thread Todd Thiessen
Bah. Ignore last. Hit send by mistake. --- Todd Thiessen Let me use a different plugin as an example. Let's say I'm developing a desktop application, and it runs in two different modes depending on the command-line options. I don't want to keep typing in the same long string of options

Re: Tests run fine in NetBeans, but fail using command line Maven

2008-12-16 Thread Geoffrey Wiseman
On Tue, Dec 16, 2008 at 5:20 PM, James Adams monoco...@gmail.com wrote: The tests run fine when I run them individually using Maven at the command line (or from within NetBeans or Eclipse -- I don't think the IDE is an issue since the same thing happens in the IDE as at the command line):

Re: Tests run fine in NetBeans, but fail using command line Maven

2008-12-16 Thread James Adams
Geoffrey Wiseman wrote: On Tue, Dec 16, 2008 at 5:20 PM, James Adams monoco...@gmail.com wrote: The tests run fine when I run them individually using Maven at the command line (or from within NetBeans or Eclipse -- I don't think the IDE is an issue since the same thing happens in the

Re: Are Maven profiles like Ant targets?

2008-12-16 Thread Ed Hillmann
On Wed, Dec 17, 2008 at 6:58 AM, Trevor Harmon tre...@vocaro.com wrote: That plugin is fine if you want to use DocBook as a source for Doxia, but it's not designed for stand-alone documentation created using DocBook and the DocBook XSL stylesheets. The Xslt task in Ant works great for that,

maven 2.0.9+ and windows absolute paths

2008-12-16 Thread Dmitry Beransky
Hi, It seems that Maven 2.0.9 has introduced a bug where Windows absolute paths aren't being properly resolved. A project that builds just fine with 2.0.8 produces this error under 2.0.9: [INFO] An Ant BuildException has occured: Failed to copy E:\svn\team\csa\main\re

Re: Are Maven profiles like Ant targets?

2008-12-16 Thread Trevor Harmon
On Dec 16, 2008, at 5:24 PM, Todd Thiessen wrote: I believe there is. Plugin can have different executions. There is some documentation about that here: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl e.html#Plugins But that doesn't work for the exec plugin. I'd be

Re: maven 2.0.9+ and windows absolute paths

2008-12-16 Thread Jörg Schaible
Dmitry Beransky wrote: Hi, It seems that Maven 2.0.9 has introduced a bug where Windows absolute paths aren't being properly resolved. [snip] Are you running Maven under Cygwin? - Jörg - To unsubscribe, e-mail:

How do I build one jar per class file controlling the name of the jar?

2008-12-16 Thread CheapLisa
I am using an open source product that requires a jar to be built for every single .java file. The java files are all in the same directory like so: src/main/java/com/acme/product/Name1.java src/main/java/com/acme/product/Name2.java

Re: How do I build one jar per class file controlling the name of the jar?

2008-12-16 Thread Mick Knutson
You need to create individual jar modules for each class, then use the assembly plugin to group them together. --- 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:

Re: Re: MAVEN certifications

2008-12-16 Thread Brett Randall
http://letmegooglethatforyou.com/?q=letmegooglethatforyou Sweet sweet recursion :). On Wed, Dec 17, 2008 at 7:02 AM, martijnverb...@gmail.com wrote: As opposed to www.just^%^inggoogleit.com which is the blatantly rude way :) On Dec 16, 2008 7:50pm, Wayne Fay wayne...@gmail.com wrote:

Re: Tests run fine in NetBeans, but fail using command line Maven

2008-12-16 Thread Geoffrey Wiseman
On Tue, Dec 16, 2008 at 5:45 PM, James Adams monoco...@gmail.com wrote: Yes I get the same thing from within the IDE -- a full build fails with the same errors as when using command line. So, if you can run the same tests without Maven and get the same errors, that seems to point pretty

Re: MAVEN certifications

2008-12-16 Thread Josh Suereth
Here's a fun one for you: http://letmegooglethatforyou.com/?q=jfgi Combines the indirectly and directly rude methods of suggesting someone performs their own search before pegging the list-serve. On Tue, Dec 16, 2008 at 2:50 PM, Wayne Fay wayne...@gmail.com wrote: Just out of curiosity, why

Re: MAVEN certifications

2008-12-16 Thread Mick Knutson
I love this group!! --- 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 Rental:

RE: Enforce plugin versions and reporting plugins

2008-12-16 Thread Brian E. Fox
This was the analysis I did that the time: http://www.nabble.com/releasing-the-enforcer-tt18419873.html#a18419873 -Original Message- From: Nick Stolwijk [mailto:nick.stolw...@gmail.com] Sent: Saturday, December 13, 2008 11:35 AM To: Maven Users List Subject: Re: Enforce plugin versions

RE: Using a SNAPSHOT version for a parent

2008-12-16 Thread Brian E. Fox
Yes what you have done is right. Can you show your settings so I can see how you're telling Maven about Nexus? -Original Message- From: Todd Thiessen [mailto:thies...@nortel.com] Sent: Thursday, December 11, 2008 8:45 AM To: Maven Users List Subject: RE: Using a SNAPSHOT version for a

RE: MAVEN certifications

2008-12-16 Thread Brian E. Fox
Phew. I was wondering how to explain it to you ;-) -Original Message- From: mknut...@baselogic.com [mailto:mknut...@baselogic.com] On Behalf Of Mick Knutson Sent: Tuesday, December 16, 2008 3:07 PM To: Maven Users List Subject: Re: MAVEN certifications LOL. Now I get it... I can now see

[2.0.10 RC6] please test

2008-12-16 Thread Brian E. Fox
Hello, Thanks everyone for sticking with us this far. I have high hopes of this being the last RC. This RC fixes MNG-3898 and updates the default plugin versions in the super pom. You can see the changes to the super pom and specific versions used here:

Version ranges

2008-12-16 Thread Bracewell, Robert
Hi, Do version ranges work across Maven plugins or are they limited to Maven core functionality? As an example I defined a dependency with a range of version [4.4.2.01,)/version and all was well. But when I tried to use the same notation with the maven-dependency-plugin 2.0 it results in a