Re: running app
Pretty simple. I'll use exactly that. Thanks Craig. -Adam Craig S.Cottingham wrote: On Sep 14, 2004, at 23:37, Adam Fisk wrote: It seems like there must be a simple way to actually run my app using Maven, but I can't seem to track it down. Is there anything like a "maven run" command where I can specify a "maven.mainclass" property to just run a main class in my program, something like that? Seems like a silly question, but I've had a heck of a time figuring out how to do this! There's nothing built in that I'm aware of, but I've done something similar by adding a goal to maven.xml: -- Craig S. Cottingham [EMAIL PROTECTED] OpenPGP key available from: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7977F79C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running app
On Sep 14, 2004, at 23:37, Adam Fisk wrote: It seems like there must be a simple way to actually run my app using Maven, but I can't seem to track it down. Is there anything like a "maven run" command where I can specify a "maven.mainclass" property to just run a main class in my program, something like that? Seems like a silly question, but I've had a heck of a time figuring out how to do this! There's nothing built in that I'm aware of, but I've done something similar by adding a goal to maven.xml: -- Craig S. Cottingham [EMAIL PROTECTED] OpenPGP key available from: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7977F79C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
running app
It seems like there must be a simple way to actually run my app using Maven, but I can't seem to track it down. Is there anything like a "maven run" command where I can specify a "maven.mainclass" property to just run a main class in my program, something like that? Seems like a silly question, but I've had a heck of a time figuring out how to do this! Thanks. -Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiproject eclipse
My Eclipse projects map directly to my Maven projects. To me, this makes a lot of sense because if you want your dependencies to be a certain way in Maven, you probably want them to be the same way in Eclipse and vice versa. This allows Eclipse to properly recognize build errors if you attempt to access code in a project you maybe should not be creating a dependency on, for example. This also makes it really easy for other programmers to get the code up and running in Eclipse with minimal configuration. Use the "maven -Dgoal=eclipse multiproject:goal" command, and then use the Eclipse multiproject plugin to import all of the projects directly into Eclipse. You can find this here: http://eclipse-tools.sourceforge.net/projecttransfer/ Finally, it's useful to use the "eclipse.dependency" property in your project.xml, notifying Maven to make the dependency between Eclipse projects and not to a jar. This way, code changed in one Eclipse project will depend on the code in the other project instead of the jar. You can do this like the following, for example: myapp myapp-client-util 0.1 jar true ***true*** Hope that helps. -Adam Ricardo de Souza Moura wrote: How are you doing to organize your eclipse projects to mapping your maven multiprojects ? Are you doing one eclipse project for each maven subproject ? Are you organizing the maven subprojects inside subdirectories on only one eclipse project ? Does anybody use the mevenide eclipse plugin with mutliproject ? How are organized the projetc(s) ? Thanks in advance _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiproject eclipse
Ricardo, See http://wiki.codehaus.org/maven/CreatingEjbApplications . It addresses specifically how to create a multiproject structure compatible with Eclipse. The net net is that both the parent and the children directories are at the same level (as opposed to the children being subdirectories of the parent): ./parent ./child1 ./child2 The project.xml of the children refers to the parent using a relative path (../parent) Philippe Ricardo de Souza Moura wrote: How are you doing to organize your eclipse projects to mapping your maven multiprojects ? Are you doing one eclipse project for each maven subproject ? Are you organizing the maven subprojects inside subdirectories on only one eclipse project ? Does anybody use the mevenide eclipse plugin with mutliproject ? How are organized the projetc(s) ? Thanks in advance _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven and Web Service ???
If anyone is interested, I couldn't get the ant task to work, but the tool class seems to work with ant:java. Haven't test thoroughly yet. -E -Original Message- From: Eric White [mailto:[EMAIL PROTECTED] Sent: Monday, September 13, 2004 11:33 AM To: Maven Users List Subject: RE: Maven and Web Service ??? Has anyone had success with maven and wscompile/wsdeploy? I keep getting NPE's. -E -Original Message- From: Ewan Harrow [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 7:09 AM To: [EMAIL PROTECTED] Subject: Re: Maven and Web Service ??? Not the samples but I have tried to use maven with the wscompile ant task which is part of the JAXRPC bit of JWSDP. I could not get it to work though - classloader issues I seem to recall. I did post to this list about it but got no reponse. Sorry I can't be of more help. ewan --- "Eric Chow echow-at-macaucabletv.com |newsgroups|" <[EMAIL PROTECTED]> wrote: > Hi, > > Anybody tried to use the Maven to build the samples in JWSDP-1.3 ??? > > Eric > > > == > If you know what you are doing, > it is not called RESEARCH! > == > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.X/download/index.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to schedule a nightly build in Maven
CruiseControl does that automatically if it can use the CVS id as an email address. Otherwise you have to map them for it. > -Original Message- > From: Peter Melling [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 14, 2004 1:23 PM > To: 'Maven Users List' > Subject: RE: How to schedule a nightly build in Maven > > > > > -Original Message- > From: STRAYER, JON (SBCSI) [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 09, 2004 10:40 AM > To: 'Maven Users List' > Subject: RE: How to schedule a nightly build in Maven > > > Anytime a build fails I and whoever checked in > > code since the last build get notified. The notification > includes the > > entire Maven log (so it's pretty easy to tell what failed). > > How do you get it to send an email to the person who last > checked in code??? > > > Peter > Sinex Aviation Technologies > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiproject eclipse
How are you doing to organize your eclipse projects to mapping your maven multiprojects ? Are you doing one eclipse project for each maven subproject ? Are you organizing the maven subprojects inside subdirectories on only one eclipse project ? Does anybody use the mevenide eclipse plugin with mutliproject ? How are organized the projetc(s) ? Thanks in advance _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I upgrade to multiproject snapshot plugin?
You must checkout maven-plugins module and build the multiproject project. maven clean:clean plugin:install Emmanuel - Original Message - From: "Helck, Christopher" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Tuesday, September 14, 2004 10:54 PM Subject: How do I upgrade to multiproject snapshot plugin? I would like to upgrade to the multiproject 1.4-SNAPSHOT. How do I do this? I tried Maven -DartifactId=maven-multiproject-plugin -DgroupId=maven-plugins -Dversion=1.4-SNAPSHOT plugin:download But maven was unable to find the snapshot. Thanks, C. Helck The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system. EBS Dealing Resources International Limited. Registered address: 55-56 Lincoln's Inn Fields, London WC2A 3LJ, United Kingdom. Registered number 2633663. EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA. EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku, Tokyo 104-0033, Japan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I upgrade to multiproject snapshot plugin?
I would like to upgrade to the multiproject 1.4-SNAPSHOT. How do I do this? I tried Maven -DartifactId=maven-multiproject-plugin -DgroupId=maven-plugins -Dversion=1.4-SNAPSHOT plugin:download But maven was unable to find the snapshot. Thanks, C. Helck The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system. EBS Dealing Resources International Limited. Registered address: 55-56 Lincoln's Inn Fields, London WC2A 3LJ, United Kingdom. Registered number 2633663. EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA. EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku, Tokyo 104-0033, Japan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Local Repository contents
I asked the same question a while back, and the basic answer was no. I am currently working on a plug-in that extracts project dependencies to a database and validates them against an "approved" list. In addition I'm setting up an internal "remote" repository to contain our releases and snapshots. This approach allows us to allow open remote repository use but still control what gets introduced into our code bases. Craig -Original Message- From: Peter Melling [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 3:47 PM To: 'Maven Users List' Subject: Local Repository contents Hello everyone, I am concerned about the fact that Maven periodically attempts to download jars that I have not specified in my dependencies. I will run maven knowing that all the dependencies needed to compile my project are in my own repository, and Maven will say that it needs, for example, "Attempting to download commons-io-20030203.000550.jar." I don't need that commons-io! What is going on here? I assume these jars are needed for certain Maven plugins to run, but I don't want and can't afford to have some unknown jars in my repository. I have built my own "remote repository" which I maintain and solely use to download decencies to local machines. Is there any way to keep the jars that Maven needs to run from contaminating my local repository?? Can I separate them?? Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Local Repository contents
Hello everyone, I am concerned about the fact that Maven periodically attempts to download jars that I have not specified in my dependencies. I will run maven knowing that all the dependencies needed to compile my project are in my own repository, and Maven will say that it needs, for example, "Attempting to download commons-io-20030203.000550.jar." I don't need that commons-io! What is going on here? I assume these jars are needed for certain Maven plugins to run, but I don't want and can't afford to have some unknown jars in my repository. I have built my own "remote repository" which I maintain and solely use to download decencies to local machines. Is there any way to keep the jars that Maven needs to run from contaminating my local repository?? Can I separate them?? Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to schedule a nightly build in Maven
Use cruisecontrol (http://cruisecontrol.sourceforge.net/). | -Original Message- | From: Peter Melling [mailto:[EMAIL PROTECTED] | Sent: Tuesday, September 14, 2004 2:23 PM | To: 'Maven Users List' | Subject: RE: How to schedule a nightly build in Maven | | | | -Original Message- | From: STRAYER, JON (SBCSI) [mailto:[EMAIL PROTECTED] | Sent: Thursday, September 09, 2004 10:40 AM | To: 'Maven Users List' | Subject: RE: How to schedule a nightly build in Maven | | > Anytime a build fails I and whoever checked in code since the last | > build get notified. The notification includes the entire Maven log | > (so it's pretty easy to tell what failed). | | How do you get it to send an email to the person who last | checked in code??? | | | Peter | Sinex Aviation Technologies | | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to schedule a nightly build in Maven
-Original Message- From: STRAYER, JON (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 10:40 AM To: 'Maven Users List' Subject: RE: How to schedule a nightly build in Maven > Anytime a build fails I and whoever checked in > code since the last build get notified. The notification includes the > entire Maven log (so it's pretty easy to tell what failed). How do you get it to send an email to the person who last checked in code??? Peter Sinex Aviation Technologies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Proxy not working
For my host/domain in Win2000, I used the "My Computer/Properties/Network ID" info. My hostname is a.b.c.d.e and domain b.c.d.e so I used a.b.c.d.e for maven.proxy.ntlm.host, and b.c.d.e for maven.proxy.ntlm.domain. I even tried just "a" for host. ... Yvon -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 9:23 AM To: Maven Users List Subject: Re: Proxy not working are you sure you have the host/domain right? Have you successfully used the proxy through any other Java based applications? Cheers, Brett On Tue, 14 Sep 2004 09:19:14 -0400, Yvon Leclerc <[EMAIL PROTECTED]> wrote: > I'm trying to get maven to work behind my firewall (it's been one > week). > > Here's my build.properties: >maven.proxy.host=proxy.ca.mycompany.com >maven.proxy.port=8080 >maven.username=myuserid >maven.password=mypassword > > When I "maven jar" I get: >Attempting to download commons-jelly-tags-jsl-20030211.143151.jar. >No credentials available for the '' authentication realm at > proxy.ca.mycompany.com > >Error retrieving artifact from > [http://www.ibiblio.org/maven/commons-jelly/jars/ >commons-jelly-tags-jsl-20030211.143151.jar]: java.io.IOException: > Not authorized by proxy. > > So, just in case we use NTLM I added the following: >maven.proxy.ntlm.host=myhost >maven.proxy.ntlm.domain=mydomain.domain.domain > > . and got: > >Attempting to download commons-jelly-tags-jsl-20030211.143151.jar. >Error retrieving artifact from > [http://www.ibiblio.org/maven/commons-jelly/jars/ >commons-jelly-tags-jsl-20030211.143151.jar]: java.io.IOException: > Not authorized by proxy. > > I have a dot in my password, would it be the issue? > > Help! > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting plugin version
:) How nice. thx Brett! Eric. Brett Porter wrote: maven --info On Tue, 14 Sep 2004 09:17:20 -0400, Eric Giguere <[EMAIL PROTECTED]> wrote: Hi all Anybody knows if there is a way to print out on the console the active version of a plugin? Could usefull when environment checks are required. Ex.: one of my team members have a problem building, first check to do the version of the plugin used to see if its up to date. thx Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting plugin version
maven --info On Tue, 14 Sep 2004 09:17:20 -0400, Eric Giguere <[EMAIL PROTECTED]> wrote: > Hi all > > Anybody knows if there is a way to print out on the console the active > version of a plugin? > Could usefull when environment checks are required. Ex.: one of my team > members have a problem building, first check to do the version of the > plugin used to see if its up to date. > > thx > Eric. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Proxy not working
are you sure you have the host/domain right? Have you successfully used the proxy through any other Java based applications? Cheers, Brett On Tue, 14 Sep 2004 09:19:14 -0400, Yvon Leclerc <[EMAIL PROTECTED]> wrote: > I'm trying to get maven to work behind my firewall (it's been one week). > > Here's my build.properties: >maven.proxy.host=proxy.ca.mycompany.com >maven.proxy.port=8080 >maven.username=myuserid >maven.password=mypassword > > When I "maven jar" I get: >Attempting to download commons-jelly-tags-jsl-20030211.143151.jar. >No credentials available for the '' authentication realm at > proxy.ca.mycompany.com > >Error retrieving artifact from > [http://www.ibiblio.org/maven/commons-jelly/jars/ >commons-jelly-tags-jsl-20030211.143151.jar]: java.io.IOException: Not > authorized by proxy. > > So, just in case we use NTLM I added the following: >maven.proxy.ntlm.host=myhost >maven.proxy.ntlm.domain=mydomain.domain.domain > > . and got: > >Attempting to download commons-jelly-tags-jsl-20030211.143151.jar. >Error retrieving artifact from > [http://www.ibiblio.org/maven/commons-jelly/jars/ >commons-jelly-tags-jsl-20030211.143151.jar]: java.io.IOException: Not > authorized by proxy. > > I have a dot in my password, would it be the issue? > > Help! > > Yvon Leclerc > R&I Security Group - http://aww.alcatel.com/ri/SEC > 600 March Road > Kanata, ON K2K 2E6 > Direct #: 1-613-784-3258 > Direct Fax # - 1-613-784-8944 > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting plugin version
Hi all Anybody knows if there is a way to print out on the console the active version of a plugin? Could usefull when environment checks are required. Ex.: one of my team members have a problem building, first check to do the version of the plugin used to see if its up to date. thx Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Proxy not working
I'm trying to get maven to work behind my firewall (it's been one week). Here's my build.properties: maven.proxy.host=proxy.ca.mycompany.com maven.proxy.port=8080 maven.username=myuserid maven.password=mypassword When I "maven jar" I get: Attempting to download commons-jelly-tags-jsl-20030211.143151.jar. No credentials available for the '' authentication realm at proxy.ca.mycompany.com Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/ commons-jelly-tags-jsl-20030211.143151.jar]: java.io.IOException: Not authorized by proxy. So, just in case we use NTLM I added the following: maven.proxy.ntlm.host=myhost maven.proxy.ntlm.domain=mydomain.domain.domain . and got: Attempting to download commons-jelly-tags-jsl-20030211.143151.jar. Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/ commons-jelly-tags-jsl-20030211.143151.jar]: java.io.IOException: Not authorized by proxy. I have a dot in my password, would it be the issue? Help! Yvon Leclerc R&I Security Group - http://aww.alcatel.com/ri/SEC 600 March Road Kanata, ON K2K 2E6 Direct #: 1-613-784-3258 Direct Fax # - 1-613-784-8944
RE: How to create my own genapp template?
Gisbert Amm wrote on Tuesday, September 14, 2004 12:41 PM: [snip] >> Hmm. This should work. Can you give it a try and define >> "maven.genapp.template.repository" manually (remember it points to >> the root of the templates)? > > When I call > > $> maven -b genapp > -Dmaven.genapp.template.repository=/path_to_my_home/.maven/templates > > all works fine. This should have been worked by default. Can you file an issue in JIRA for this case? [snip] > Never mind, that was my own (sort of stupid) mistake. > > When I called Maven I was actually *within* the template > directory. Then > it is not such a big surprise that the structure of the new > project was > generated within the template directory (probably the > software should be > aware of this possibility and warn the user about it - this > could be an > issue or enhancement report, if you like). > > So the step-by-step guide for the creation of a new project would say: > > 1. Create a new directory (e.g. within your eclipse > workspace) 2. Go *into* this directory 3. Call maven genapp ... and > so on > > I could write some of this documentation for the genapp > plugin site if > you like. I am quite sure, that anyone accepts patches for documentation :) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create my own genapp template?
Jörg Schaible wrote: Gisbert Amm wrote on Tuesday, September 14, 2004 11:32 AM: By default Maven searches also templates in the directory ${maven.local.home}/templates i.e. $HOME/.maven/templates. Create subdirectories there (the name of the template equals the directory name), that have own template.jelly scripts. Have a look at the resources of genapp itself to see how a template is written. But when I call $> maven -b genapp Enter a project template to use: [default] myapp I get: BUILD FAILED File.. /path_to_my_home/.maven/cache/maven-genapp-plugin-2.2/plugin.jelly Element... fail Line.. 64 Column 15 Unable to locate a template named myapp Hmm. This should work. Can you give it a try and define "maven.genapp.template.repository" manually (remember it points to the root of the templates)? When I call $> maven -b genapp -Dmaven.genapp.template.repository=/path_to_my_home/.maven/templates all works fine. When I try $> maven -b genapp -Dmaven.genapp.template.dir=/path_to_my_home/.maven/templates/myapp at first all seems to work: Please specify an id for your application: [app] hi Please specify a name for your application: [Example Application] Hi Please specify the package for your application: [my.example] build:start: But the files are copied into the template itself: genapp: [copy] Copying 1 file to /path_to_my_home/.maven/templates/myapp /src/java/my/example [copy] Copying 1 file to /path_to_my_home/.maven/templates/myapp /src/test/my/example [copy] Copying 2 files to /path_to_my_home/.maven/templates/myapp /src/test-cactus/my/example [copy] Copying 2 files to /path_to_my_home/.maven/templates/myapp [copy] Copying 5 files to /path_to_my_home/.maven/templates/myapp What am I doing wrong here? I'm using the current binary from the Maven download site with JRE 1.4.2-b28 on a SuSE Linux 8.1 Machine. My MAVEN_HOME is set to /path_to_my_home/maven-1.0 This is wrong also. Please create an issue in JIRA. Never mind, that was my own (sort of stupid) mistake. When I called Maven I was actually *within* the template directory. Then it is not such a big surprise that the structure of the new project was generated within the template directory (probably the software should be aware of this possibility and warn the user about it - this could be an issue or enhancement report, if you like). So the step-by-step guide for the creation of a new project would say: 1. Create a new directory (e.g. within your eclipse workspace) 2. Go *into* this directory 3. Call maven genapp ... and so on I could write some of this documentation for the genapp plugin site if you like. Thanks for your help, Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to create my own genapp template?
Gisbert Amm wrote on Tuesday, September 14, 2004 11:32 AM: [snip] >> By default Maven searches also templates in the directory >> ${maven.local.home}/templates i.e. $HOME/.maven/templates. Create >> subdirectories there (the name of the template equals the directory >> name), that have own template.jelly scripts. Have a look at the >> resources of genapp itself to see how a template is written. > > Thanks for the quick response. Now I understand. > > I did jar -xvf ~/maven-1.0/plugins/maven-genapp-plugin-2.2.jar and do > now find a direcory "web" within "plugin-resources" which > actually *is* > the template for a web application. > > I now can copy this directory to $HOME/.maven/templates/myapp (or > whatever) and then adapt the template.properties according to > http://maven.apache.org/reference/plugins/genapp/properties.ht > ml to meet > my needs and change the content of the template-resources directory > which will actually be the content of each new project based on this > template. > > So far this is straight forward and I just tried it out. > > But when I call > > $> maven -b genapp > Enter a project template to use: [default] > myapp > > I get: > > BUILD FAILED > File.. > /path_to_my_home/.maven/cache/maven-genapp-plugin-2.2/plugin.jelly > Element... fail Line.. 64 > Column 15 > Unable to locate a template named myapp Hmm. This should work. Can you give it a try and define "maven.genapp.template.repository" manually (remember it points to the root of the templates)? > When I try > > $> maven -b genapp > -Dmaven.genapp.template.dir=/path_to_my_home/.maven/templates/myapp > > at first all seems to work: > > Please specify an id for your application: [app] > hi > Please specify a name for your application: [Example > Application] Hi Please specify the package for your > application: [my.example] > > build:start: > > But the files are copied into the template itself: > > genapp: > [copy] Copying 1 file to /path_to_my_home/.maven/templates/myapp > /src/java/my/example [copy] Copying 1 file to > /path_to_my_home/.maven/templates/myapp /src/test/my/example > [copy] Copying 2 files to > /path_to_my_home/.maven/templates/myapp > /src/test-cactus/my/example [copy] Copying 2 files to > /path_to_my_home/.maven/templates/myapp [copy] Copying 5 files to > /path_to_my_home/.maven/templates/myapp > > What am I doing wrong here? I'm using the current binary from > the Maven > download site with JRE 1.4.2-b28 on a SuSE Linux 8.1 Machine. My > MAVEN_HOME is set to /path_to_my_home/maven-1.0 This is wrong also. Please create an issue in JIRA. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CVS checking out stuffed
Hi guys I've got a top level project directory called Support which has the sub-projects Support_Logging, Support_Messaging and Support_Persistence , each with it's own maven and project xml files. In the top level project , i.e Support , I have a maven.xml file that looks like as follows: Support_Logging Support_Messaging Support_Persistence Support_Logging has a maven.xml that looks as follows : Support_Messaging has a maven.xml that looks as follows : and Support_Persistence has a maven.xml that looks as follows : When I run "maven' from the top level ,Support directory , the each subproject is being checked out twice , and to make matter worse , the second time when the sub-projects get checked out , they're all placed under Support_Logging, such that I end up having all sub-projects under Support , plus another set of the same sub-projects under the sub-project Support_Logging(itself also included) , I cant make out what could be the source of the problem.Any ideas? jeff __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
RE: Maven test goal fails (ClassNotFoundException)
Dinko Hadzic wrote on Tuesday, September 14, 2004 9:58 AM: [snip] > The problem: when executing Maven test goal, the process > fails generating an ClassNotFoundException. > > I assume a wrong path was specified "somewhere" in my > configuration files. Any hints at all would be greatly appreciated! Try execute maven with option -X: maven -X test and you might see, what is missing in the classpath. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create my own genapp template?
Jörg Schaible wrote: Gisbert Amm wrote on Monday, September 13, 2004 7:20 PM: I want to create my own customized template based on the web template so that I can call "maven genapp myapp" to create customized projects. Have a look at the properties: http://maven.apache.org/reference/plugins/genapp/properties.html By default Maven searches also templates in the directory ${maven.local.home}/templates i.e. $HOME/.maven/templates. Create subdirectories there (the name of the template equals the directory name), that have own template.jelly scripts. Have a look at the resources of genapp itself to see how a template is written. Thanks for the quick response. Now I understand. I did jar -xvf ~/maven-1.0/plugins/maven-genapp-plugin-2.2.jar and do now find a direcory "web" within "plugin-resources" which actually *is* the template for a web application. I now can copy this directory to $HOME/.maven/templates/myapp (or whatever) and then adapt the template.properties according to http://maven.apache.org/reference/plugins/genapp/properties.html to meet my needs and change the content of the template-resources directory which will actually be the content of each new project based on this template. So far this is straight forward and I just tried it out. But when I call $> maven -b genapp Enter a project template to use: [default] myapp I get: BUILD FAILED File.. /path_to_my_home/.maven/cache/maven-genapp-plugin-2.2/plugin.jelly Element... fail Line.. 64 Column 15 Unable to locate a template named myapp When I try $> maven -b genapp -Dmaven.genapp.template.dir=/path_to_my_home/.maven/templates/myapp at first all seems to work: Please specify an id for your application: [app] hi Please specify a name for your application: [Example Application] Hi Please specify the package for your application: [my.example] build:start: But the files are copied into the template itself: genapp: [copy] Copying 1 file to /path_to_my_home/.maven/templates/myapp /src/java/my/example [copy] Copying 1 file to /path_to_my_home/.maven/templates/myapp /src/test/my/example [copy] Copying 2 files to /path_to_my_home/.maven/templates/myapp /src/test-cactus/my/example [copy] Copying 2 files to /path_to_my_home/.maven/templates/myapp [copy] Copying 5 files to /path_to_my_home/.maven/templates/myapp What am I doing wrong here? I'm using the current binary from the Maven download site with JRE 1.4.2-b28 on a SuSE Linux 8.1 Machine. My MAVEN_HOME is set to /path_to_my_home/maven-1.0 Regards, Gisbert Amm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven test goal fails (ClassNotFoundException)
Hi, Since I started working with Maven few days ago, I have come a long way - however not all the way yet ;) To be honest - without the help of the mailing lists I would have probably given up, although Maven is a great tool. The problem: when executing Maven test goal, the process fails generating an ClassNotFoundException. I assume a wrong path was specified "somewhere" in my configuration files. Any hints at all would be greatly appreciated! A screen dump and a part of the project.xml are included below. Regards Dinko Screen dump: maven test | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0 build:start: java:prepare-filesystem: java:compile: [echo] Compiling to C:\teleca\eclipse\JSecurePoll/target/classes [javac] Compiling 10 source files to C:\teleca\eclipse\JSecurePoll\target\cl asses BUILD SUCCESSFUL Total time: 8 seconds Finished at: Tue Sep 14 09:35:48 CEST 2004 C:\teleca\eclipse\JSecurePoll>maven test __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0 build:start: java:prepare-filesystem: java:compile: [echo] Compiling to C:\teleca\eclipse\JSecurePoll/target/classes [javac] Compiling 10 source files to C:\teleca\eclipse\JSecurePoll\target\cl asses java:jar-resources: test:prepare-filesystem: test:test-resources: test:compile: [javac] Compiling 10 source files to C:\teleca\eclipse\JSecurePoll\target\cl asses test:test: [junit] Running RadiusExceptionTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec [junit] Testsuite: RadiusExceptionTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec [junit] [junit] Null Test: Caused an ERROR [junit] RadiusExceptionTest [junit] java.lang.ClassNotFoundException: RadiusExceptionTest [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:199) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:23 2) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:27 9) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.jav a:135) [junit] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.jav a:233) [junit] at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:27 9) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.jav a:135) [junit] at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(Mav enGoalTag.java:79) [junit] at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalActio n.performAction(MavenGoalTag.java:110) [junit] at com.werken.werkz.Goal.fire(Goal.java:639) [junit] at com.werken.werkz.Goal.attain(Goal.java:575) [junit] at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) [junit] at com.werken.werkz.Goal.attain(Goal.java:573) [junit] at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:19 3) [junit] at org.apache.maven.plugin.PluginManager.attainGoals(PluginManag er.java:634) [junit] at org.apache.maven.MavenSession.attainGoals(MavenSession.java:2 66) [junit] at org.apache.maven.cli.App.doMain(App.java:486) [junit] at org.apache.maven.cli.App.main(App.java:1215) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [junit] at com.werken.forehead.Forehead.run(Forehead.java:551) [junit] at com.werken.forehead.Forehead.main(Forehead.java:581) - In my project.xml: jsecurepoll .. (this part of the file is left out) jsecurepoll jsecurepoll **/*Test.java
RE: How to create my own genapp template?
Gisbert Amm wrote on Monday, September 13, 2004 7:20 PM: > Hi all, > > sorry for the probably newbie question; I didn't find the > answer in the > documentation. > > I want to create my own customized template based on the web template > so that I can call "maven genapp myapp" to create customized projects. > > On http://maven.apache.org/reference/plugins/genapp/faq.html I read: > > "How to add a specific script for my template? > For add a specific script to your template, you should create a > template.jelly file at your template root directory." > > Seems as if this could be the answer to my question. > > But where is my "template root directory"? I have no idea. > And where do I find the existing templates like "web" or "struts" (a > search for *.jelly gives no results)? > Or am I totally wrong with this idea and have to do something > completely different? Have a look at the properties: http://maven.apache.org/reference/plugins/genapp/properties.html By default Maven searches also templates in the directory ${maven.local.home}/templates i.e. $HOME/.maven/templates. Create subdirectories there (the name of the template equals the directory name), that have own template.jelly scripts. Have a look at the resources of genapp itself to see how a template is written. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]