When Maven says "For more information, run Maven with the -e switch", it means that you should run "mvn clean install -e", not "mvn -e switch" ;-)
Andreas On Sat, Aug 7, 2010 at 07:20, Eranda Sooriyabandara <[email protected]> wrote: > Hi, > Sorry for being late for reply. > I used mvn clean install and got an exception. To track it I used mvn -e > switch and got the above stack trace. When I try it today it works and I > have a synapse build now. > Thanks > > On Sat, Aug 7, 2010 at 6:55 AM, Rajika Kumarasiri <[email protected]> wrote: >> >> Yes, it's not the same command that you have pasted was executed. >> >> Rajika >> >> On Fri, Aug 6, 2010 at 11:05 PM, Andreas Veithen >> <[email protected]> wrote: >>> >>> That is not possible. Maven will only print the stack trace if you >>> added "-e" to the command line, and the only way to get the exception >>> is to have "switch" in the command line. The output you have shown is >>> certainly not the result of a simple "mvn clean install". >>> >>> Andreas >>> >>> On Fri, Aug 6, 2010 at 10:50, Eranda Sooriyabandara >>> <[email protected]> wrote: >>> > Hi Andreas, >>> > mvn clean install >>> > Thanks >>> > >>> > On Fri, Aug 6, 2010 at 1:12 PM, Andreas Veithen >>> > <[email protected]> >>> > wrote: >>> >> >>> >> What is the command line you use to invoke Maven? >>> >> >>> >> Andreas >>> >> >>> >> On Fri, Aug 6, 2010 at 08:10, Eranda Sooriyabandara >>> >> <[email protected]> wrote: >>> >> > Hi, >>> >> > I try to build the synapse and I got the following exception. >>> >> > [INFO] Trace >>> >> > org.apache.maven.BuildFailureException: Invalid task 'switch': you >>> >> > must >>> >> > specify a valid lifecycle phase, or a goal in the format plugin:goal >>> >> > or >>> >> > pluginGroupId:pluginArtifactId:pluginVersion:goal >>> >> > at >>> >> > >>> >> > >>> >> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1830) >>> >> > at >>> >> > >>> >> > >>> >> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462) >>> >> > at >>> >> > >>> >> > >>> >> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175) >>> >> > at >>> >> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) >>> >> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) >>> >> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) >>> >> > at >>> >> > >>> >> > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) >>> >> > 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:597) >>> >> > 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) >>> >> > >>> >> > What do I need to do? >>> >> > Thanks >>> >> > >>> >> >>> >> --------------------------------------------------------------------- >>> >> 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]
