Debug project?

2006-10-29 Thread jiangshachina
Hello, Currently, I use an Eclipse plugin(WTP) to create a Web application. And I use the plugin to export(deploy) the Web application to an Web/Application Server(JBoss)'s deploy directory. Then I can debug the application when the server is running. The function is provided by the plugin. If

RE: Puzzles on Standard Directory Structure?

2006-10-29 Thread jiangshachina
Web application project has following conventional directory structure. myapp |--pom.xml |--LICENSE.txt |--README.txt |--target/ |--src |--main |--java/ |--myapp |--WEB-INF/ |--test |--java/ |--resources/ myapp

Re: Debug project?

2006-10-29 Thread Max Cooper
It sounds like your primary requirement is how can I debug my webapp. My project uses Maven to build and deploy a webapp to a server running on the local machine, and then we connect the Eclipse debugger to the local server via the standard Java remote debugging interface. -Max On Sun,

How do I use the 'short name' of a plugin?

2006-10-29 Thread Stefan Arentz
I am working on a little hack, a plugin to 'run' a spring context. The code is at: https://www.sateh.com/svn/stefan/polarrose-maven-spring-plugin/trunk/ And I execute it like: mvn com.polarrose.maven:maven-spring-plugin:run \

Re: How do I use the 'short name' of a plugin?

2006-10-29 Thread Tom Huybrechts
You need to add a plugin group for com.polarrose.com in your settings.xml. See http://codehaus.org/~jvanzyl/maven2/guides/plugin/guide-java-plugin-development.html Tom On 10/29/06, Stefan Arentz [EMAIL PROTECTED] wrote: I am working on a little hack, a plugin to 'run' a spring context. The

Re: How do I use the 'short name' of a plugin?

2006-10-29 Thread Edwin Punzalan
That is correct. More info can be found here: http://maven.apache.org/guides/introduction/introduction-to-plugin-prefix-mapping.html Tom Huybrechts wrote: You need to add a plugin group for com.polarrose.com in your settings.xml. See

Re: Will an open source java make it possible to distribute Sun's jar files via ibiblio?

2006-10-29 Thread Tim Moloney
Thanks, everyone, for the latest status. Tim Moloney - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

excluding/including tests in surefire-plugin in different phases

2006-10-29 Thread Jan-Olav Eide
Still struggling with this The configuration below runs all my tests in both phases. Nothing is exluded or included :-( As far as I can see, this config is the same as the one recommended on http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion -exclusion.html, where

Re: [CONTINUUM] working copy locked

2006-10-29 Thread Jorg Heymans
Edwin Punzalan wrote: This could be worth a feature... probably a button or link or checkbox to do always do a svn cleanup before checkout. svn cleanup doesn't always bring the local working copy to a clean state, so while you're at it add a button to purge the local working copy

Re: Puzzles on Standard Directory Structure?

2006-10-29 Thread Wayne Fay
I don't honestly understand your question. For a webapp: myapp |--pom.xml |--target/ |--src |--|--main |--|--|--filters/ |--|--|--java/ |--|--|--resources/ |--|--|--|--META-INF/ |--|--|--webapp/ |--|--|--|--WEB-INF/ There's more to it, but that shows webapp, META-INF, and WEB-INF and should

Inherited property resolution

2006-10-29 Thread Morgovsky, Alexander \(US - Glen Mills\)
I have a parent project which defines a test_version property, and a child project which attempts to this property, which is the version of the application in this case. However, when doing a build, the test_version property of the parent element does not get resolved. I get this error. May

toc feature in xdoc?

2006-10-29 Thread Joerg Hohwiller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, in the xdoc format one can create sections and subsections. Is there a simple tag that can cause the automatic generation of a table of contents? I have seen some projets out there that created this manually by adding named anchors and a

Re: java2iiop (Visibroker)

2006-10-29 Thread Dan Tran
Jim, I just cookedup a set of maven wrappers for visibroker tools. Please provide feedbacks, patches, docs if you find it it useful. You will need to check out the source at mojo-sandbox The site is at http://mojo.codehaus.org/visibroker-maven-plugin/ -D On 10/28/06, Jim Bethancourt [EMAIL

Re: Debug project?

2006-10-29 Thread jiangshachina
Hi Max, I think remote debug local server(I'm using JBoss) would be OK. But it there alternative approach for local debugging? If use remote debugging, shall I re-config some parameters in web.xml or other conf files? Thanks! a cup of Java, cheers! Sha Jiang Max Cooper wrote: It sounds

Re: SV: Continuum Startup error even though JAVA_HOME is set up

2006-10-29 Thread datech
I am still strugling to get it run. Thanks a lot for your suggestions. Will try what you have suggested and see if I can through it. Thanks Naess, Ronny wrote: We run Continuum on a unix server and have explicit added JAVA_HOME and added maven and ant into PATH in run.sh. On a Windows

[m2] multiproject that contains a mojo sub-project and sub-projects that rely on that mojo for build

2006-10-29 Thread J. Matthew Pryor
Should I be able to have a multi-project that has a Mojo as one sub-project and then have other sub-projects that use that Mojo in their build? I can't seem to get it to work. the top-level build fails complaining about the plugin not being installed and not downloadable Thanks, Matthew

Re: Puzzles on Standard Directory Structure?

2006-10-29 Thread jiangshachina
Hi Wayne, I may not express my mind clearly. Mergere's book Better Builds with Maven lists the Maven Standard Directory Structure as appendix. But the list is very general, but concrete. The following is the list: pom.xml LICENSE.txt README.txt target/

RE: Inherited property resolution

2006-10-29 Thread Swenson, Eric
I've recently run into the same situation. I think the reason why you are not able to resolve the property value is that in order to do so, the parent POM must be located (because that is where the property is defined). You can't refer to that property in the parent element. If you simply

Re: Puzzles on Standard Directory Structure?

2006-10-29 Thread Wendy Smoak
On 10/29/06, jiangshachina [EMAIL PROTECTED] wrote: I don't get directories src/main/filters and src/main/resources/META-INF when I use the plugin. My command is mvn archetype:create -DgroupId=demo.mvn -DartifactId=demo -Dversion=1.0-SNAPSHOT -DarchetypeArtifactId=maven-archetype-webapp The

Re: Puzzles on Standard Directory Structure?

2006-10-29 Thread jiangshachina
Hi Wendy, Thank your for replying me so quickly ^_^ In fact, I have ever not saw any project have directory filters. Then I cannot understand the functions of the directory. Is there an example about filters? Best Regards! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 10/29/06,

Re: Puzzles on Standard Directory Structure?

2006-10-29 Thread Wendy Smoak
On 10/29/06, jiangshachina [EMAIL PROTECTED] wrote: In fact, I have ever not saw any project have directory filters. Then I cannot understand the functions of the directory. Is there an example about filters? In the first reply to your original message, Adrian referred to to a section in the

Re: Help on junit-report-plugin

2006-10-29 Thread dawn.angelito
Hi jfd, The junit-report-plugin is used in m1. However, it has a counterpart in m2 which is maven-surefire-report-plugin. You can refer to this link: http://people.apache.org/~aramirez/maven-surefire-report-plugin/ for info on how to use this plugin. This doc however isn't released yet. Dawn

Re: Puzzles on Standard Directory Structure?

2006-10-29 Thread Wendy Smoak
On 10/29/06, Wendy Smoak [EMAIL PROTECTED] wrote: In the first reply to your original message, Adrian referred to to a section in the Better Builds with Maven book. You can also ask Google: http://www.google.com/search?q=maven+resource+filtering And the first result is: ... the Getting

Re: Puzzles on Standard Directory Structure?

2006-10-29 Thread jiangshachina
Thanks very much! I must care the section in Better Builds with Maven and the links your gave me. Best regards! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 10/29/06, Wendy Smoak [EMAIL PROTECTED] wrote: In the first reply to your original message, Adrian referred to to a

Modifying a web application's web.xml at build time

2006-10-29 Thread Carlos A. Carnero Delgado
Hello, using Maven the last couple of weeks with the Jetty plugin has provided our team with a huge productivity boost. We use the UrlRewrite servlet[1] in order to generate pretty URLs (from a Spring-backed application.) Currently, during development, this UrlRewrite servlet (which is loaded

Re: Using Cactus with Maven 2

2006-10-29 Thread Jeffrey D. Brekke
If you can get away with just using the Jetty test case that comes with cactus, it works great in maven 2. It isn't optimal, since it only tests inside jetty, but for our purposes we wanted to test our app in any container. Mohan Gopal wrote: Hi, I have been trying to run cactus test cases

Re: Modifying a web application's web.xml at build time

2006-10-29 Thread Wendy Smoak
On 10/29/06, Carlos A. Carnero Delgado [EMAIL PROTECTED] wrote: Is there a way of modifying the web.xml at build time using Maven profiles? Are profiles the solution? I think that the ideal solution would involve maintaining a single web.xml that could be modified at build time. Sure. I do

Dowloading dependencies

2006-10-29 Thread Saminda Abeyruwan
Hi all, I'm in the process of migrating from Maven1 to Maven2. I've being faced the following problem. I have a requirement to download all the dependencies, In Maven1 i just used, deploy:copy-deps todir=target/lib/ How do i do the above with Maven2. Is there a built in plugging for this.

a help option like ant -projecthelp

2006-10-29 Thread 向秦贤
Hi, After checked out MavenCli code and found not projecthelp style option, I supposed there is no one. If this, I wanna know all if need a mvn help option like ant -projecthelp. Maybe there could have a option, listGoals listTasks or projecthelp. There are someones vote this advice? Regards,

Re: Modifying a web application's web.xml at build time

2006-10-29 Thread 向秦贤
Hi, There has a good example, jboss-messaging, which use replace stratedgy. If you wanna check it out, after downloaded a new version, try to see that file: ${jboss-messaging}/util/release-admin.xml. Regards, xy 2006/10/30, Carlos A. Carnero Delgado [EMAIL PROTECTED]: Hello, using Maven

Re: Debug project?

2006-10-29 Thread Max Cooper
To make the JBoss JVM listen for debugger, you set some params in the run.bat script (or run.sh/run.conf on *nix). There should be a section already in the run script to turn debugging on -- look for JPDA options. You just uncomment the lines to enable remote debugging. Note that by default

Re: a help option like ant -projecthelp

2006-10-29 Thread Wendy Smoak
On 10/29/06, 向秦贤 [EMAIL PROTECTED] wrote: After checked out MavenCli code and found not projecthelp style option, I supposed there is no one. If this, I wanna know all if need a mvn help option like ant -projecthelp. Maybe there could have a option, listGoals listTasks or projecthelp. For the

Re: Dowloading dependencies

2006-10-29 Thread Wendy Smoak
On 10/29/06, Saminda Abeyruwan [EMAIL PROTECTED] wrote: I'm in the process of migrating from Maven1 to Maven2. I've being faced the following problem. I have a requirement to download all the dependencies, In Maven1 i just used, deploy:copy-deps todir=target/lib/ How do i do the above with

Re: Modifying a web application's web.xml at build time

2006-10-29 Thread 向秦贤
Hi, Maybe doing conditional subtasks in your case is good idea. And refering to this segment mentioned before has no bad effect.:) which use replaceregexp, with in ant, should available in m2. there are two codes as follows, one in firefox. and one in text. Regards, Qinxian !-- slim down

Re: excluding/including tests in surefire-plugin in different phases

2006-10-29 Thread franz see
Jan-Olav wrote: Still struggling with this The configuration below runs all my tests in both phases. Nothing is exluded or included :-( As far as I can see, this config is the same as the one recommended on http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion

Re: a help option like ant -projecthelp

2006-10-29 Thread 向秦贤
Hi, Thanks hint. Althrough I'm a newbie to maven, I'd to insist on this help option, just like maven scanning. Supposed that a man get a project code, his first work is just to build, and build what, can build what, he thinks, but maven cannot answer. Isn't it? Regards, Qinxian

Re: excluding/including tests in surefire-plugin in different phases

2006-10-29 Thread Wendy Smoak
On 10/29/06, Jan-Olav Eide [EMAIL PROTECTED] wrote: Still struggling with this The configuration below runs all my tests in both phases. Nothing is exluded or included :-( As far as I can see, this config is the same as the one recommended on

Re: Debug project?

2006-10-29 Thread jiangshachina
Hi Max, I suspect that this is what was really happening in your previous setup anyway, and that the Eclipse WTP plugin just took care of the details for you. Really, I always don't care the detail WTP plugin does. But in my memory, it's needn't set any extra statements into

Re: Puzzles on Standard Directory Structure?

2006-10-29 Thread jiangshachina
I just found that src/main/webapp is independent directory in Standard Directory Structure. Please see, http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html Then it's neither assembly nor config. I'm confused by Better Builds with Maven *_* The book

Re: excluding/including tests in surefire-plugin in different phases

2006-10-29 Thread 向秦贤
Hi, Is there a TestNG mvn plugin? TestNG can do test by a failure style. first run all, and run failures. If not, a testng mvn plugin maybe is good idea. Isn't it? Regards, Qinxian 2006/10/30, franz see [EMAIL PROTECTED]: Jan-Olav wrote: Still struggling with this The configuration

Re: checkstyle plugin check goal fails with ugly exception only with eclipse maven plugin

2006-10-29 Thread Rolf Strijdhorst
Hi it seems to work correctly. I had some issues with my maven project so after a few errors I worked only from within eclipse with the maven plugin from codehaus. It looks like the command line execution from maven work fine after all only the execution from within eclipse displays and fails

Re: a help option like ant -projecthelp

2006-10-29 Thread Wayne Fay
Maven does have a help option. It just doesn't list the lifecycles etc that Wendy mentioned. Instead I'd suggest that those responsible for the source code include a README that instructs users where to acquire Maven, what version they require, and what command to run to properly build and

Re: Dowloading dependencies

2006-10-29 Thread Saminda Abeyruwan
Hi Wendy, Yes. Assembly plugging is what I need. Could you please point me to a place where i can find more info. I've already following http://maven.apache.org/guides/mini/guide-assemblies.html. Thank you Saminda On 10/30/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 10/29/06, Saminda

[m2] artifact:create with .cvsignore files on it

2006-10-29 Thread Antonio Parolini
Hello, Is there a way telling the jar:jar plugin to include the .cvsignore files ? I want to include those files in my corporate archetype so that developpers don't need to create them by hand Thanks for any hints. -tony -- View this message in context: