[m2 ant tasks] How do I supress logging?
In my build.xml, I have the following (outside of any targets): typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpath pathelement location=${basedir}/lib/maven-artifact-ant-2.0-beta-3-dep.jar / /classpath /typedef artifact:pom file=pom.xml id=maven.project/ artifact:dependencies pathId=compile.classpath filesetId=compile.fileset useScope=compile pom refid=maven.project/ /artifact:dependencies artifact:dependencies pathId=test.classpath filesetId=test.fileset useScope=test pom refid=maven.project/ /artifact:dependencies artifact:dependencies pathId=runtime.classpath filesetId=runtime.fileset useScope=runtime pom refid=maven.project/ /artifact:dependencies When I run any targets in my project, I get the following: [artifact:dependencies] Resolving dependencies... [artifact:dependencies] Resolving dependencies... [artifact:dependencies] Resolving dependencies... Is it possible to supress these messages? Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m102]: Suppresing download progress etc.
'maven -q' makes it worse: it suppresses other useful info, continues to display artifact download progress but without listing the name of the artifact being downloaded: $ cd acceptance; /vob/enm_jdk/maven1.0.2/bin/maven -q Directory /vob/nm_dcm/acceptance/../maven/repository does not exist. Attempting to create. 56/13877K 60/13877K //... 13877/13877K downloaded 10/47K //... Response content length is not known //... rest of it Thanks, Rk x77309 On Sat, 15 Oct 2005, Brett Porter wrote: I think maven -q will do this, though it does suppress much of the other output too. - Brett On 10/15/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there anyway to suppress the artifact download progress messages issued by Maven? This looks fine on a console; but in build reports, takes up reams of space: $ maven __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 Directory /vob/nm_dcm/acceptance/../maven/repository does not exist. Attempting to create. Attempting to download my-component-1.0.jar. 56/13877K 60/13877K 61/13877K 63/13877K 64/13877K 65/13877K 66/13877K //... zillion more lines Thanks, Rk x77309 On Wed, 12 Oct 2005 [EMAIL PROTECTED] wrote: Env: JDK 5.0 Maven 1.0.2 Multiproject plugin: 1.3.1 Context: I have setup a multiproject dependency as follows: (rh (common) (cs) (dal) ) where both cs and dal extend ${basedir}common/project.xml. Problem: (0) How do I suppress the download progress messages printed by Maven? While this looks fine in real-time, in batched reports, these incremental progress updates are listed on separate lines (probably becuase CR/LF is used instead of just CR), building up a huge preface to the build of a project. So how do I tell Maven not to print these messages? (1) When triggering the build of dal (either locally or thru the multi-project plugin), cs-1.0.jar is built deposited into the repository but the build of dal fails with the message that cs-SNAPSHOT.jar could not be located. The dependency specs in dal POM identifies cs-${pomVersion}.jar as shown below; why is this lookinh for the SNAPSHOT version? dependencies dependency groupIddcm/groupId artifactIdcs/artifactId version${pom.currentVersion}/version typejar/type /dependency /dependencies Thanks, Rk x77309 - 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: Maven 2 Ant Tasks - how do I include only runtime dependencies
On 10/15/05, Matt Raible [EMAIL PROTECTED] wrote: This seems to work, but I've had to exclude a lot of dependencies in order to trim the JARs down to what I had previous with all-jars-in-CVS. The one I can't seem to get rid of is servlet-api-2.4.jar. Is there a quick way to find out which dependency is causing it to be included? verbose=true shows the dependency tree. Probably what you want to do is use it for compiling, so you should explicitly include it, but set the scope as provided. We're aware there are plenty of optional dependencies listed in the repository for projects previously built with Maven 1.x. We're steadily improving them, and have one big set of changes to apply. We figured starting with that and excluding was a better alternative to starting with nothing - thanks for your help in reporting the issues. Cheers, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2 ant tasks] How do I supress logging?
It has been lowered to verbose level in the next release. - Brett On 10/15/05, Matt Raible [EMAIL PROTECTED] wrote: In my build.xml, I have the following (outside of any targets): typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpath pathelement location=${basedir}/lib/maven-artifact-ant-2.0-beta-3-dep.jar / /classpath /typedef artifact:pom file=pom.xml id=maven.project/ artifact:dependencies pathId=compile.classpath filesetId=compile.fileset useScope=compile pom refid=maven.project/ /artifact:dependencies artifact:dependencies pathId=test.classpath filesetId=test.fileset useScope=test pom refid=maven.project/ /artifact:dependencies artifact:dependencies pathId=runtime.classpath filesetId=runtime.fileset useScope=runtime pom refid=maven.project/ /artifact:dependencies When I run any targets in my project, I get the following: [artifact:dependencies] Resolving dependencies... [artifact:dependencies] Resolving dependencies... [artifact:dependencies] Resolving dependencies... Is it possible to supress these messages? Thanks, Matt - 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: [m102]: Suppresing download progress etc.
Sorry about that. I remember what it was - set the property: maven.download.meter=bootstrap On 10/15/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 'maven -q' makes it worse: it suppresses other useful info, continues to display artifact download progress but without listing the name of the artifact being downloaded: $ cd acceptance; /vob/enm_jdk/maven1.0.2/bin/maven -q Directory /vob/nm_dcm/acceptance/../maven/repository does not exist. Attempting to create. 56/13877K 60/13877K //... 13877/13877K downloaded 10/47K //... Response content length is not known //... rest of it Thanks, Rk x77309 On Sat, 15 Oct 2005, Brett Porter wrote: I think maven -q will do this, though it does suppress much of the other output too. - Brett On 10/15/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there anyway to suppress the artifact download progress messages issued by Maven? This looks fine on a console; but in build reports, takes up reams of space: $ maven __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 Directory /vob/nm_dcm/acceptance/../maven/repository does not exist. Attempting to create. Attempting to download my-component-1.0.jar. 56/13877K 60/13877K 61/13877K 63/13877K 64/13877K 65/13877K 66/13877K //... zillion more lines Thanks, Rk x77309 On Wed, 12 Oct 2005 [EMAIL PROTECTED] wrote: Env: JDK 5.0 Maven 1.0.2 Multiproject plugin: 1.3.1 Context: I have setup a multiproject dependency as follows: (rh (common) (cs) (dal) ) where both cs and dal extend ${basedir}common/project.xml. Problem: (0) How do I suppress the download progress messages printed by Maven? While this looks fine in real-time, in batched reports, these incremental progress updates are listed on separate lines (probably becuase CR/LF is used instead of just CR), building up a huge preface to the build of a project. So how do I tell Maven not to print these messages? (1) When triggering the build of dal (either locally or thru the multi-project plugin), cs-1.0.jar is built deposited into the repository but the build of dal fails with the message that cs-SNAPSHOT.jar could not be located. The dependency specs in dal POM identifies cs-${pomVersion}.jar as shown below; why is this lookinh for the SNAPSHOT version? dependencies dependency groupIddcm/groupId artifactIdcs/artifactId version${pom.currentVersion}/version typejar/type /dependency /dependencies Thanks, Rk x77309 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 1.0.2 project dependencies
If you don't want to use your local repository to get a dependency you can override this one : http://maven.apache.org/using/managing-dependencies.html Is it what you are looking for ? Arnaud -Message d'origine- De : Adrian Zaharie [mailto:[EMAIL PROTECTED] Envoyé : vendredi 14 octobre 2005 22:10 À : users@maven.apache.org; dev@maven.apache.org Objet : 1.0.2 project dependencies how can I specify project specific dependencies without having to dump it into maven repo..., or have maven expect to find it in the default repo working with maven 1.0.2 dependencies are in the form of jar files; thanks Regards, Adrian Zaharie ParaSoft Corporation (888) 305-0041 x 1229 - 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: 1.0.2 project dependencies
AND PLEASE. DO NOT CROSS POST YOUR MESSAGES in DEV and USERS ML Arnaud (Sorry for the previous reply-all) -Message d'origine- De : Arnaud HERITIER [mailto:[EMAIL PROTECTED] Envoyé : samedi 15 octobre 2005 09:54 À : 'Maven Users List' Objet : RE: 1.0.2 project dependencies If you don't want to use your local repository to get a dependency you can override this one : http://maven.apache.org/using/managing-dependencies.html Is it what you are looking for ? Arnaud -Message d'origine- De : Adrian Zaharie [mailto:[EMAIL PROTECTED] Envoyé : vendredi 14 octobre 2005 22:10 À : users@maven.apache.org; dev@maven.apache.org Objet : 1.0.2 project dependencies how can I specify project specific dependencies without having to dump it into maven repo..., or have maven expect to find it in the default repo working with maven 1.0.2 dependencies are in the form of jar files; thanks Regards, Adrian Zaharie ParaSoft Corporation (888) 305-0041 x 1229 - 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: Proxy Properties in Maven1.0.2 for GridPort3.5.1
In your ~/build.properties (you must create it the first time) you add maven.proxy.host=... maven.proxy.port=... maven.proxy.username=... maven.proxy.password=... http://maven.apache.org/reference/properties.html#Proxy_Properties Arnaud -Message d'origine- De : F-a-r-h-a-n-a [mailto:[EMAIL PROTECTED] Envoyé : samedi 15 octobre 2005 00:05 À : Maven Users List; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Objet : [urgent] Proxy Properties in Maven1.0.2 for GridPort3.5.1 There are already 2-3 mirror sites defined wat I want to know is how to set Proxy properties using maven1.0.2 like : (maven.proxy.host . maven.proxy.port) in ${user.home}/build.properties file. Plz specify the location of this ${user.home}/build.properties file Im unable to find it ...HELP!!! Farhana BS(CS) //final year Dept of Computer Science IT Jinnah University for Women www.juw.edu.pk Karachi, Pakistan . Carlos Sanchez [EMAIL PROTECTED] wrote: ${user.home} is your $HOME in linux maven always checks first local repo under ${user.home}/.maven/repository your proxy properties depend on your network, you must find out. On 10/14/05, F-a-r-h-a-n-a wrote: Ok now I understand about reference properties since im new to MAVEN 1.0.2 can u plz tell me where do I 'll find ${user.home}/build.properties file to make proxy changes or is there any way through which I can direct MAVEN to use local repository instead of remote one . I have downloaded all the dependency jar files separately in the local repo ..How can I use local repo Also plz plz specify how do I make changes in proxy properties ? In which file ? also specify the location of that file on Redhat Linux 9 ..online or offline I have to settle this repo and jar file problem before Monday ..i've got project to submit plz HELP! Farhana Brett Porter wrote:http://maven.apache.org/reference/properties.html#Proxy_ Properties On 10/14/05, F-a-r-h-a-n-a wrote: i didnt get it ur pointplz tell me how do i configure proxy for these serverplz be more specifici have downloaded these jar files separately but how do i copied them in repository...how do i know about groupID/artifactID/version/plz Help looking forward for the response Farhana BS(CS) //final year Dept of Computer Science IT Jinnah University for Women www.juw.edu.pk Karachi, Pakistan . Brett Porter wrote: Your host can't reach these servers: On 10/14/05, F-a-r-h-a-n-a wrote: Error retrieving artifact from [http://cuero.tacc.utexas.edu/maven/maven/plugins/maven-artifact-p lugin-1.5.2.jar]: java.net.UnknownHostException: cuero.tacc.utexas.edu Error retrieving artifact from [http://www.ibiblio.org/maven/maven/plugins/maven-artifact-plugin- 1.5.2.jar]: java.net.UnknownHostException: www.ibiblio.org Perhaps you need to configure a proxy? See the FAQ for details. -Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] O assembly of jinn and men, if you are able to pass through the confines of the heavens and the earth, pass through; but you shall not pass through except with authority _(33)so which your Lord's bounties will you two deny? (34) [Surah Ar-Rehman] - Yahoo! Music Unlimited - Access over 1 million songs. Try it free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] O assembly of jinn and men, if you are able to pass through the confines of the heavens and the earth, pass through; but you shall not pass through except with authority _(33)so which your Lord's bounties will you two deny? (34) [Surah Ar-Rehman] - Yahoo! Music Unlimited - Access over 1 million songs. Try it free. O assembly of jinn and men, if you are able to pass through the confines of the heavens and the earth, pass through; but you shall not pass through except with authority _(33)so which your Lord's bounties will you two deny? (34) [Surah Ar-Rehman] - Yahoo! Music Unlimited - Access over 1 million songs. Try it free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Fwd: Re: [m2] NetBeans Plugin - M2 Subversion and Ibiblio Repository]
Ok, it appears that somebody else ([EMAIL PROTECTED]) has already created something. I lost track of the plugin matrix a couple of months ago. It seems that this plugin does most of what I have done, plus a couple of additional things. I'll ping Raphael to hear about the status of his work. Jason offered to add another project for my plugin, but that doesn't make a lot of sense of course. Cheers, Wilfred -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ---BeginMessage--- On Fri, 2005-10-14 at 19:10 +0200, wilfred springer wrote: To whom it concerns: I would (still) really like to know what I need to do to get my NetBeans plugin into the Maven 2 repository. It won't go into the SVN repository @ Apache but we can get you setup at the Mojo project. I know there is another netbeans plug-in there that you might want to look at that too: http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/netbeans-freeform- maven-plugin/ And I mean both the Maven 2 subversion and the Maven artifacts repository. http://blogs.sun.com/roller/page/wilfred?entry=maven_2_netbeans_plugin Easiest thing would be to get it setup at the Mojo project and then we can build it and deploy it from there. Thanks, Wilfred -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
M2: is there a way to generate docs out of the modello descriptor?
hello, in my plugin I use the modello tool for generating descriptor. Inoticed the modello's descriptor xml file has entries like description of fields etc. Is there a way to generate some documentation out if this xml file? Regards Milos Kleint
[m2] Resolved version of plugin is a snapshot...
Hi, I'm building m2 from svn (yeah I know...but I'm testing the release plugin) but when I run m2 release:prepare on my project (using the built m2 from svn), I get: [ERROR] BUILD FAILURE [INFO] [INFO] Resolved version of plugin is a snapshot. Please release this plugin before releasing this project. GroupId: org.apache.maven.plugins ArtifactId: maven-compiler-plugin Resolved Version: 2.0-beta-2-SNAPSHOT I can see the logic here, that released poms shouldn't rely on snapshots (build reproducability) but, while developing, is there an easy way to disable this (without tinkering with the code, that is...)? Thanks, Arik. Here's the full output with -e: [EMAIL PROTECTED]:~/projects/template m2 -e release:prepare + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'release'. [INFO] [INFO] Building Template POM [INFO]task-segment: [release:prepare] (aggregator-style) [INFO] [INFO] [release:prepare] [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Resolved version of plugin is a snapshot. Please release this plugin before releasing this project. GroupId: org.apache.maven.plugins ArtifactId: maven-compiler-plugin Resolved Version: 2.0-beta-2-SNAPSHOT [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Resolved version of plugin is a snapshot. Please release this plugin before releasing this project. GroupId: org.apache.maven.plugins ArtifactId: maven-compiler-plugin Resolved Version: 2.0-beta-2-SNAPSHOT at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:452) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:214) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoFailureException: Resolved version of plugin is a snapshot. Please release this plugin before releasing this project. GroupId: org.apache.maven.plugins ArtifactId: maven-compiler-plugin Resolved Version: 2.0-beta-2-SNAPSHOT at org.apache.maven.plugins.release.PrepareReleaseMojo.generateReleasePoms(PrepareReleaseMojo.java:960) at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:234) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519) ... 16 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Sat Oct 15 12:54:22 IST 2005 [INFO] Final Memory: 2M/4M [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Ejb and Jonas
Hi, I just start try to use maven to build my J2EE application. And for create an ejb-jar, I think that the maven-ejb-plugin is the best solution.. But I don't find how to create an ejb-jar for Jonas. In a build.xml I use the ejbjar task of jonas.. Somebody have a solution ? Or I have to do a maven-jonas-plugin ?? Thanks Samuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Resolved version of plugin is a snapshot...
You can use the non-snapshots (fix the versions in the pom, or remove your snapshot builds from the repository) for those particular plugins. Perhaps worth addinga feature request to allow snapshots though. - Brett On 10/15/05, Arik Kfir [EMAIL PROTECTED] wrote: Hi, I'm building m2 from svn (yeah I know...but I'm testing the release plugin) but when I run m2 release:prepare on my project (using the built m2 from svn), I get: [ERROR] BUILD FAILURE [INFO] [INFO] Resolved version of plugin is a snapshot. Please release this plugin before releasing this project. GroupId: org.apache.maven.plugins ArtifactId: maven-compiler-plugin Resolved Version: 2.0-beta-2-SNAPSHOT I can see the logic here, that released poms shouldn't rely on snapshots (build reproducability) but, while developing, is there an easy way to disable this (without tinkering with the code, that is...)? Thanks, Arik. Here's the full output with -e: [EMAIL PROTECTED]:~/projects/template m2 -e release:prepare + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'release'. [INFO] [INFO] Building Template POM [INFO]task-segment: [release:prepare] (aggregator-style) [INFO] [INFO] [release:prepare] [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Resolved version of plugin is a snapshot. Please release this plugin before releasing this project. GroupId: org.apache.maven.plugins ArtifactId: maven-compiler-plugin Resolved Version: 2.0-beta-2-SNAPSHOT [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Resolved version of plugin is a snapshot. Please release this plugin before releasing this project. GroupId: org.apache.maven.plugins ArtifactId: maven-compiler-plugin Resolved Version: 2.0-beta-2-SNAPSHOT at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:452) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:214) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoFailureException: Resolved version of plugin is a snapshot. Please release this plugin before releasing this project. GroupId: org.apache.maven.plugins ArtifactId: maven-compiler-plugin Resolved Version: 2.0-beta-2-SNAPSHOT at org.apache.maven.plugins.release.PrepareReleaseMojo.generateReleasePoms(PrepareReleaseMojo.java:960) at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:234) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519) ... 16 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Sat Oct 15 12:54:22 IST 2005 [INFO] Final Memory: 2M/4M [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Re: M2: is there a way to generate docs out of the modello descriptor?
Yes, modello:xdoc followed by site:site will work. (It has not yet been converted to a report to run as part of the site process). - Brett On 10/15/05, Milos Kleint [EMAIL PROTECTED] wrote: hello, in my plugin I use the modello tool for generating descriptor. Inoticed the modello's descriptor xml file has entries like description of fields etc. Is there a way to generate some documentation out if this xml file? Regards Milos Kleint - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: howto release/deploy an m2 plugin?
m2 deploy is for copying to the repo. We should talk about setting up a sync process. For now, create a repository in the m2 layout for yourself - you can add that to your POM to use the plugin, and later we will get them synced to ibiblio. Does this relate to the Netbeans project generator plugins by Wilfred and Raphael? Cheers, Brett On 10/15/05, Milos Kleint [EMAIL PROTECTED] wrote: hello, I have the maven-nbm-plugin (to create netbeans module artifacts) converted from m1 to m2. I would like to release it now but I'm actually clueless howto do it. My plugin is located at mevenide.codehaus.orghttp://mevenide.codehaus.org(like the m1 version was). Is there a m2 repository synchronization in place like there is for m1? or shall I copy the repository related pom elements from poms at mojo.codehaus.org http://mojo.codehaus.org? will I have enough privileges to perform the deploy? and the release is done by running m2 deploy i suppose. Or is there more to do? Regards, Milos Kleint - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2 Ant Tasks - how do I include only runtime dependencies
On 10/15/05, Brett Porter [EMAIL PROTECTED] wrote: On 10/15/05, Matt Raible [EMAIL PROTECTED] wrote: This seems to work, but I've had to exclude a lot of dependencies in order to trim the JARs down to what I had previous with all-jars-in-CVS. The one I can't seem to get rid of is servlet-api-2.4.jar. Is there a quick way to find out which dependency is causing it to be included? verbose=true shows the dependency tree. Probably what you want to do is use it for compiling, so you should explicitly include it, but set the scope as provided. Thanks, that's a useful setting to see everything. I do have the scope set to provided. My guess is the following copy task ignores this setting. mkdir dir=${build.dir}/jars/ copy todir=${build.dir}/jars fileset refid=compile.fileset/ fileset refid=runtime.fileset/ mapper type=flatten/ /copy As far as the pom.xml, I can't seem to figure out how to exclude certain classes in my test tree from running. I have a base class that I changed to abstract (didn't help) and a jWebUnit test that I want to exclude during normal testing. How do I exclude the classes? Their patterns are *TestCase and *WebTest - where as the rest end in *Test. Lastly, is it possible to include XML from another file in a POM, or is the easiest way to use entity includes? I have a base pom.xml that will need manipulation when other packages are installed (i.e. persistence framework or web framework). I figure the easy way to do this is to separate those out into separate files and allow the installer to overwrite them. Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: howto release/deploy an m2 plugin?
On 10/16/05, Milos Kleint [EMAIL PROTECTED] wrote: hmmm.. ok i will try, that came to my mind as well, just wanted to make it easier to use the plugin. any non-central repository plugin's usability is seriously hurt IMHO. Can you elaborate? Adding a new update center to netbeans is not that big of a problem... well, netbeans project generator creates netbeans project related files in the project's directory (the funny part about it is that it creates an ant-based build out of the maven based setup :) my nbm plugin allows to build netbeans modules (like eclipse plugins) using maven. Ok. They sound best as separate plugins. one more question. how do I create another template for the maven-archetype-plugin? I'd like to create a template for creating the netbeans modules. Will you accept it as contribution? or does it have some kind of registration mechanism to find templates elsewhere? I'm hoping there is some docs on this in the new site, but if not you can use the existing ones as an example. There's nothing special about publishing them, they just need to be a jar in the repository with the appopriate template files within them. eg. m2 archetype:create -DarchetypeGroupId=org.codehaus.mevenide -DarchetypeArtifactId=mevenide-nbm-archetype [-DarchetypeVersion=...] Cheers, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: howto release/deploy an m2 plugin?
On 10/15/05, Brett Porter [EMAIL PROTECTED] wrote: On 10/16/05, Milos Kleint [EMAIL PROTECTED] wrote: hmmm.. ok i will try, that came to my mind as well, just wanted to make it easier to use the plugin. any non-central repository plugin's usability is seriously hurt IMHO. Can you elaborate? Adding a new update center to netbeans is not that big of a problem... oh, now we probably misunderstood each other. I was talking about the m2 plugin. there seem to be multiple levels of citizenship in the m2's plugin enviroment. first clas citizens like site, eclipse or war plugins get recognized easily, so you just type m2 site:site and it works. with a second class citizen you need to type the groupId:artifactId:version:goal combo to make it run. I do understand the reasoning here and it makes perfect sense, but from useability point of view it's a complication. now if I don't have my plugin in the central repository I become even 3rd class citizen, because someone wanting to use the plugin needs to specify the additional repository in the pom of the project (Am I correct here?) I guess I can overcome that by creating the archetype template and make the setup work correctly. Then everything should work alost out of the box for everyone. Cheers Milos
Wanted: How to get minimal and first maven project working
I see I jumped the gun a little. Let me concentrate on just getting a simple maven project to work and then come back to importing it into eclipse. I have a simple minimal hello world! application generated by maven genapp version 1.1. It works. As per http://jakarta.apache.org/commons/httpclient/downloads.html I experiment with adding one,the other or both dependencies. Nothing worked. I expected that it would work if I only downloaded 3.0. However, after more experimentation, I discovered I could successfully manually compile (and run) the sample code at http://jakarta.apache.org/commons/httpclient/tutorial.html if I added both jar files (hiding in my maven repository) to my class path. Here is my latest attempted at adding both to the project.xml file: dependencies dependency idcommons-httpclient/id version2.0.2/version urlhttp://jakarta.apache.org/commons/httpclient//url /dependency dependency idcommons-httpclient/id version3.0-rc4/version urlhttp://jakarta.apache.org/commons/httpclient/3.0//url /dependency /dependencies I compile and run again. I see that maven sees the new dependencies and downloads httpclient (which is odd, since it already downloaded them a couple of days ago). The program runs. Now, as per http://jakarta.apache.org/commons/httpclient/tutorial.html I enhance hello world with some minimal code: package mdn.testapp; import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.methods.*; import org.apache.commons.httpclient.params.HttpMethodParams; public class App { public static void main( String[] args ) { System.out.println( Hello World! ); HttpClient client = new HttpClient(); System.out.println( Goodbye World! ); } } I see hello world. It dies on the new HttpClient. Why? java is obviously not seeing those libraries. Maven is supposed to take care of that, however! What am I doing wrong? Thanks, Siegfried - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wanted: How to get minimal and first maven project working
How do you *run* your program? Maven doesn't control your program execution, just the creation of the binaries (like 'make'). If you run from the commandline, make sure you specify the appropriate classpath. If you run from inside an IDE, make sure it is configured to add the classpath. P.S. When you say it dies - what do you mean? Do you get an exception? The devil is in the details ;-) On 10/15/05, Siegfried Heintze [EMAIL PROTECTED] wrote: I see I jumped the gun a little. Let me concentrate on just getting a simple maven project to work and then come back to importing it into eclipse. I have a simple minimal hello world! application generated by maven genapp version 1.1. It works. As per http://jakarta.apache.org/commons/httpclient/downloads.html I experiment with adding one,the other or both dependencies. Nothing worked. I expected that it would work if I only downloaded 3.0. However, after more experimentation, I discovered I could successfully manually compile (and run) the sample code at http://jakarta.apache.org/commons/httpclient/tutorial.html if I added both jar files (hiding in my maven repository) to my class path. Here is my latest attempted at adding both to the project.xml file: dependencies dependency idcommons-httpclient/id version2.0.2/version urlhttp://jakarta.apache.org/commons/httpclient//url /dependency dependency idcommons-httpclient/id version3.0-rc4/version urlhttp://jakarta.apache.org/commons/httpclient/3.0//url /dependency /dependencies I compile and run again. I see that maven sees the new dependencies and downloads httpclient (which is odd, since it already downloaded them a couple of days ago). The program runs. Now, as per http://jakarta.apache.org/commons/httpclient/tutorial.html I enhance hello world with some minimal code: package mdn.testapp; import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.methods.*; import org.apache.commons.httpclient.params.HttpMethodParams; public class App { public static void main( String[] args ) { System.out.println( Hello World! ); HttpClient client = new HttpClient(); System.out.println( Goodbye World! ); } } I see hello world. It dies on the new HttpClient. Why? java is obviously not seeing those libraries. Maven is supposed to take care of that, however! What am I doing wrong? Thanks, Siegfried - 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 2.0 RC now available
Hi, Do you plan to release the core before the final plugins versions? IMO it would be best to release final versions of the plugins (atleast the core plugins like compiler,sources,resources, etc) before the final m2 release. Or perhaps I just misunderstood? :D On 10/15/05, Brett Porter [EMAIL PROTECTED] wrote: Hi, The release candidate build of Maven is now available here: http://people.apache.org/~brett/maven-2.0-RC/ We'd appreciate testing for any blocking bugs. This should only be issues with core features - plugin issues will be addressed by separate releases. I'd strongly encourage everyone to run using the RC instead of bootstrapping (you can build individual plugins as needed). For particular attention in testing: - deployment using scp - error handling Barring any blocking issues, we should aim to promote the RC to final next Monday. Happy testing! Cheers, Brett - 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 2.0 RC now available
Arik Kfir wrote: Hi, Do you plan to release the core before the final plugins versions? IMO it would be best to release final versions of the plugins (atleast the core plugins like compiler,sources,resources, etc) before the final m2 release. Or perhaps I just misunderstood? :D Nope, you got it in one. - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2.0 RC now available
Is there a new antlib JAR to accompany this release? Matt On 10/15/05, Brett Porter [EMAIL PROTECTED] wrote: Hi, The release candidate build of Maven is now available here: http://people.apache.org/~brett/maven-2.0-RC/ We'd appreciate testing for any blocking bugs. This should only be issues with core features - plugin issues will be addressed by separate releases. I'd strongly encourage everyone to run using the RC instead of bootstrapping (you can build individual plugins as needed). For particular attention in testing: - deployment using scp - error handling Barring any blocking issues, we should aim to promote the RC to final next Monday. Happy testing! Cheers, Brett - 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 2.0 RC now available
I've copied it up there now. sorry for the omission. - Brett On 10/16/05, Matt Raible [EMAIL PROTECTED] wrote: Is there a new antlib JAR to accompany this release? Matt On 10/15/05, Brett Porter [EMAIL PROTECTED] wrote: Hi, The release candidate build of Maven is now available here: http://people.apache.org/~brett/maven-2.0-RC/ We'd appreciate testing for any blocking bugs. This should only be issues with core features - plugin issues will be addressed by separate releases. I'd strongly encourage everyone to run using the RC instead of bootstrapping (you can build individual plugins as needed). For particular attention in testing: - deployment using scp - error handling Barring any blocking issues, we should aim to promote the RC to final next Monday. Happy testing! Cheers, Brett - 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]
Classpath for ant task
I'm trying to put an ant:sql task in my maven.xml (maven 1.0.2). I get a class not found exception because the ant task cannot find the jdbc driver, although the jdbc driver is listed as a depency in my project.xml, and has been downloaded to the local repository. If I use a jelly's sql library, the driver is found without any problem, so this seems specific to ant. Is there any config setting in my project.xml / project.properties / maven.xml that will allow the ant:sql task to find the driver as it exists in my dependency classpath? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with m2 clean:clean package
I am new user of Maven 2 (and have only dabbled with Maven 1). I was following the instructions from the getting started page and ran into the following error when I tried to run 'm2 clean:clean package' on the webapp archetype I created. I am using the maven-2.0-beta-3. Here's the stack trace ... Exception in thread main java.lang.NoSuchMethodError: org.codehaus.plexus.util.FileUtils.getDefaultExcludesAsList()Ljava/ util/List; at org.apache.maven.plugin.war.AbstractWarMojo.getExcludes (AbstractWarMojo.java:157) at org.apache.maven.plugin.war.AbstractWarMojo.getWarFiles (AbstractWarMojo.java:310) at org.apache.maven.plugin.war.AbstractWarMojo.copyResources (AbstractWarMojo.java:227) at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp (AbstractWarMojo.java:196) at org.apache.maven.plugin.war.WarMojo.performPackaging (WarMojo.java:108) at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:86) at org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPluginManager.java:417) This would seem to be from an incorrect jar for Plexus. Any help would be appreciated. -Bill Siggelkow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]