Maven 3 Shell CLI: how to use?
How can I use the Maven Shell in Maven 3? It's not stated here: http://mvnsh.sonatype.org/faq.html Here: http://mvnsh.sonatype.org/index.html it states you need to download the Maven Shell CLI. Is it not already included in Maven 3.0-BETA1? I have used maven-cli-plugin as documented in Dan Allen's blog with Maven 2.x. thx. -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-Shell-CLI-how-to-use-tp512715p512715.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven 3 Shell CLI: how to use?
So I actually had already downloaded and extracted the zip file for mavensh: C:\java\mvnsh-0.10\bin In that directory there is a mvn.bat and mvnsh.bat for Windows. How do I use this CLI tool? The readme.txt points to the website and no specific instructions. thx. -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-Shell-CLI-how-to-use-tp512715p512719.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven 3 Shell CLI: how to use?
C:\java\mvnsh-0.10\binjava -version java version 1.5.0_22 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03) Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode) C:\java\mvnsh-0.10\binmvn --version [ERROR] CommandRegistrarImpl - Failed to register command: org.sonatype.maven.ar chetype.commands.CreateCommand com.google.inject.internal.ComputationException: java.lang.NoClassDefFoundError: org/apache/maven/project/ProjectBuildingRequest at com.google.inject.internal.MapMaker$StrategyImpl.compute (MapMaker.java:5 53) at com.google.inject.internal.MapMaker$StrategyImpl.compute (MapMaker.java:4 19) at com.google.inject.internal.CustomConcurrentHashMap$ComputingImpl.get (Cus tomConcurrentHashMap.java:2041) at com.google.inject.internal.FailableCache.get (FailableCache.java:46) at com.google.inject.ConstructorInjectorStore.get (ConstructorInjectorStore. java:52) at com.google.inject.ConstructorBindingImpl.initialize (ConstructorBindingIm pl.java:57) at com.google.inject.InjectorImpl.initializeBinding (InjectorImpl.java:377) at com.google.inject.InjectorImpl.createJustInTimeBinding (InjectorImpl.java :645) at com.google.inject.InjectorImpl.createJustInTimeBindingRecursive (Injector Impl.java:581) at com.google.inject.InjectorImpl.getJustInTimeBinding (InjectorImpl.java:17 2) at com.google.inject.InjectorImpl.getBindingOrThrow (InjectorImpl.java:132) at com.google.inject.InjectorImpl.getInternalFactory (InjectorImpl.java:651) at com.google.inject.InjectorImpl.getProviderOrThrow (InjectorImpl.java:747) at com.google.inject.InjectorImpl.getProvider (InjectorImpl.java:780) at com.google.inject.InjectorImpl.getProvider (InjectorImpl.java:743) at com.google.inject.InjectorImpl.getInstance (InjectorImpl.java:793) C:\projects\clean\com.echo.cis.guimvn --version Apache Maven 3.0-beta-1 (r935667; 2010-04-19 10:00:39-0700) Java version: 1.5.0_22 Java home: C:\Program Files\Java\jdk1.5.0_22\jre Default locale: en_US, platform encoding: Cp1252 OS name: windows xp version: 5.1 arch: x86 Family: windows -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-Shell-CLI-how-to-use-tp512715p512723.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven 3 Shell CLI: how to use?
:581) at com.google.inject.InjectorImpl.getJustInTimeBinding (InjectorImpl.java:17 2) at com.google.inject.InjectorImpl.getBindingOrThrow (InjectorImpl.java:132) at com.google.inject.InjectorImpl.getInternalFactory (InjectorImpl.java:651) at com.google.inject.InjectorImpl.getProviderOrThrow (InjectorImpl.java:747) at com.google.inject.InjectorImpl.getProvider (InjectorImpl.java:780) at com.google.inject.InjectorImpl.getProvider (InjectorImpl.java:743) at com.google.inject.InjectorImpl.getInstance (InjectorImpl.java:793) at org.sonatype.gshell.guice.CommandRegistrarImpl.createAction (CommandRegis trarImpl.java:144) at org.sonatype.gshell.guice.CommandRegistrarImpl.registerCommand (CommandRe gistrarImpl.java:131) at org.sonatype.gshell.command.registry.CommandRegistrarSupport.registerComm and (CommandRegistrarSupport.java:129) at org.sonatype.gshell.command.registry.CommandRegistrarSupport.registerComm andSet (CommandRegistrarSupport.java:111) at org.sonatype.gshell.guice.CommandRegistrarImpl.registerCommandSet (Comman dRegistrarImpl.java:80) at org.sonatype.gshell.command.registry.CommandRegistrarSupport.registerComm ands (CommandRegistrarSupport.java:96) at org.sonatype.maven.shell.Main.createShell (Main.java:62) at org.sonatype.gshell.MainSupport.boot (MainSupport.java:269) at org.sonatype.maven.shell.Main.main (Main.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke (Method.java:592) at org.sonatype.gshell.launcher.Launcher.launch (Launcher.java:76) at org.sonatype.gshell.launcher.Launcher.run (Launcher.java:48) at org.sonatype.gshell.launcher.Launcher.main (Launcher.java:39) java.lang.NoClassDefFoundError: org/apache/maven/cli/CLIReportingUtils at org.sonatype.maven.shell.maven.MavenSystemImpl.getVersion(MavenSystem Impl.java:92) at org.sonatype.maven.shell.commands.maven.MavenCommand.execute(MavenCom mand.java:270) at org.sonatype.gshell.execute.CommandExecutorImpl.execute(CommandExecut orImpl.java:175) at org.sonatype.gshell.execute.CommandExecutorImpl.execute(CommandExecut orImpl.java:116) at org.sonatype.gshell.shell.ShellImpl.execute(ShellImpl.java:225) at org.sonatype.gshell.MainSupport.boot(MainSupport.java:276) at org.sonatype.maven.shell.Main.main(Main.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.sonatype.gshell.launcher.Launcher.launch(Launcher.java:76) at org.sonatype.gshell.launcher.Launcher.run(Launcher.java:48) at org.sonatype.gshell.launcher.Launcher.main(Launcher.java:39) WARNING: Abnormal JVM shutdown detected -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-Shell-CLI-how-to-use-tp512715p512722.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven 3 Shell CLI: how to use?
Maven Shell != Maven 3 The Maven Shell is not something Sonatype is supporting yet. On Jul 2, 2010, at 1:05 PM, asookazian wrote: How can I use the Maven Shell in Maven 3? It's not stated here: http://mvnsh.sonatype.org/faq.html Here: http://mvnsh.sonatype.org/index.html it states you need to download the Maven Shell CLI. Is it not already included in Maven 3.0-BETA1? I have used maven-cli-plugin as documented in Dan Allen's blog with Maven 2.x. thx. -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-Shell-CLI-how-to-use-tp512715p512715.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - Simplex sigillum veri. (Simplicity is the seal of truth.)
Re: Maven 3 Shell CLI: how to use?
http://www.parleys.com/#sl=34st=5id=1630 see 32:05! -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-Shell-CLI-how-to-use-tp512715p512748.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven 3 Shell CLI: how to use?
Open source project plans always change. Maven 3.x itself is the priority, full support for the shell will come when that's finished first. On Jul 2, 2010, at 3:53 PM, asookazian wrote: http://www.parleys.com/#sl=34st=5id=1630 see 32:05! -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-Shell-CLI-how-to-use-tp512715p512748.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - We know what we are, but know not what we may be. -- Shakespeare
Re: Maven 3 Shell CLI: how to use?
And given that the reporting stuff is baked into the pom, I'd consider that stuff to be part of Maven, but apparently you folks disagree. I think you're very wrong. Not about the shell, but about site, etc. -K On Jul 2, 2010, at 2:56 PM, Jason van Zyl wrote: Open source project plans always change. Maven 3.x itself is the priority, full support for the shell will come when that's finished first. On Jul 2, 2010, at 3:53 PM, asookazian wrote: http://www.parleys.com/#sl=34st=5id=1630 see 32:05! -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-Shell-CLI-how-to-use-tp512715p512748.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - We know what we are, but know not what we may be. -- Shakespeare - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven 3 Shell CLI: how to use?
On Jul 2, 2010, at 4:15 PM, Kathryn Huxtable wrote: And given that the reporting stuff is baked into the pom, I'd consider that stuff to be part of Maven, but apparently you folks disagree. I think you're very wrong. We emphatically disagree. But we've put in all the hooks so that it can remain in the POM so that the folks who want to maintain the site plugin can preserve backward compatibility for users. You're more then welcome to support the site plugin effort. Reporting is a separate concern from building which is why we separated them. That they are decoupled is a good thing. I believe it should be removed from the POM and all the configuration should go to the site plugin. This way other implementations for producing sites can also follow the same pattern. Not about the shell, but about site, etc. -K On Jul 2, 2010, at 2:56 PM, Jason van Zyl wrote: Open source project plans always change. Maven 3.x itself is the priority, full support for the shell will come when that's finished first. On Jul 2, 2010, at 3:53 PM, asookazian wrote: http://www.parleys.com/#sl=34st=5id=1630 see 32:05! -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-Shell-CLI-how-to-use-tp512715p512748.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - We know what we are, but know not what we may be. -- Shakespeare - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - Our achievements speak for themselves. What we have to keep track of are our failures, discouragements and doubts. We tend to forget the past difficulties, the many false starts, and the painful groping. We see our past achievements as the end result of a clean forward thrust, and our present difficulties as signs of decline and decay. -- Eric Hoffer, Reflections on the Human Condition
Re: Maven 3 Shell CLI: how to use?
If it had been that way from the start, I suppose I'd agree. But it wasn't. If it had changed with Maven 2, I suppose I'd agree. Well, we'll see what happens. -K On Jul 2, 2010, at 3:21 PM, Jason van Zyl wrote: On Jul 2, 2010, at 4:15 PM, Kathryn Huxtable wrote: And given that the reporting stuff is baked into the pom, I'd consider that stuff to be part of Maven, but apparently you folks disagree. I think you're very wrong. We emphatically disagree. But we've put in all the hooks so that it can remain in the POM so that the folks who want to maintain the site plugin can preserve backward compatibility for users. You're more then welcome to support the site plugin effort. Reporting is a separate concern from building which is why we separated them. That they are decoupled is a good thing. I believe it should be removed from the POM and all the configuration should go to the site plugin. This way other implementations for producing sites can also follow the same pattern. Not about the shell, but about site, etc. -K On Jul 2, 2010, at 2:56 PM, Jason van Zyl wrote: Open source project plans always change. Maven 3.x itself is the priority, full support for the shell will come when that's finished first. On Jul 2, 2010, at 3:53 PM, asookazian wrote: http://www.parleys.com/#sl=34st=5id=1630 see 32:05! -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-Shell-CLI-how-to-use-tp512715p512748.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - We know what we are, but know not what we may be. -- Shakespeare - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - Our achievements speak for themselves. What we have to keep track of are our failures, discouragements and doubts. We tend to forget the past difficulties, the many false starts, and the painful groping. We see our past achievements as the end result of a clean forward thrust, and our present difficulties as signs of decline and decay. -- Eric Hoffer, Reflections on the Human Condition - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven 3 Shell CLI: how to use?
I think it is more important to put a proper structure in that can be used going forward with Maven 3 that works better than the current site plugin than to maintain backwards compatibility form a pom perspective. As I understand it maven 3 will have on par support for the site plugin in terms of features, but rely on a better way of configuring it in the pom. Since there are enough hooks in maven to make sure the right maven version is used I think this is a totally reasonable approach. It will be good to be rid of the reporting section in the pom. I can wait for maven 3 with working reporting - exciting. But until then sonar it pretty damn awesome to play with too ;-) manfred If it had been that way from the start, I suppose I'd agree. But it wasn't. If it had changed with Maven 2, I suppose I'd agree. Well, we'll see what happens. -K On Jul 2, 2010, at 3:21 PM, Jason van Zyl wrote: On Jul 2, 2010, at 4:15 PM, Kathryn Huxtable wrote: And given that the reporting stuff is baked into the pom, I'd consider that stuff to be part of Maven, but apparently you folks disagree. I think you're very wrong. We emphatically disagree. But we've put in all the hooks so that it can remain in the POM so that the folks who want to maintain the site plugin can preserve backward compatibility for users. You're more then welcome to support the site plugin effort. Reporting is a separate concern from building which is why we separated them. That they are decoupled is a good thing. I believe it should be removed from the POM and all the configuration should go to the site plugin. This way other implementations for producing sites can also follow the same pattern. Not about the shell, but about site, etc. -K On Jul 2, 2010, at 2:56 PM, Jason van Zyl wrote: Open source project plans always change. Maven 3.x itself is the priority, full support for the shell will come when that's finished first. On Jul 2, 2010, at 3:53 PM, asookazian wrote: http://www.parleys.com/#sl=34st=5id=1630 see 32:05! -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-Shell-CLI-how-to-use-tp512715p512748.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - We know what we are, but know not what we may be. -- Shakespeare - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - Our achievements speak for themselves. What we have to keep track of are our failures, discouragements and doubts. We tend to forget the past difficulties, the many false starts, and the painful groping. We see our past achievements as the end result of a clean forward thrust, and our present difficulties as signs of decline and decay. -- Eric Hoffer, Reflections on the Human Condition - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org