[cosmo-dev] Maven errors while setting up developement server

Travis Vachon travis at osafoundation.org
Mon Apr 28 16:01:11 PDT 2008


Hi Avner

What working directory are you running mvn package in? I get the same  
error when running 'mvn package' in the root directory of the cosmo  
bundle checkout (the directory that contains snarf, cosmo-js, etc). If  
this is the case, do 'cd cosmo; mvn package' to package just the cosmo  
webapp.

Also, it looks like you ran mvn -e with no build target (install,  
package, etc). Generally when debugging with -e you should run the  
last command, but append -e. In this case, for example, you wanted to  
run 'mvn -e package'

-Travis

On Apr 28, 2008, at 3:35 PM, Avner Shanan wrote:

> After giving the command 'mvn package' I get the following error:
>
> [INFO] [assembly:attached {execution: make-assembly}]
> [INFO] ------------------------------
> ------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Error adding file to archive: /home/avner/Cosmo/cosmo/target/ 
> cosmo-0.15-SNAPSHOT.war isn't a file.
>
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Total time: 4 minutes 35 seconds
> [INFO] Finished at: Mon Apr 28 17:01:51 CDT 2008
> [INFO] Final Memory: 24M/54M
> [INFO]  
> ------------------------------------------------------------------------
>
> After running 'mvn -e' I get this:
>
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException:
>
> You must specify at least one goal. Try 'mvn install' to build or  
> 'mvn -?' for options
> See http://maven.apache.org for more information.
>
>
>         at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:134)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 
> 336)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 
> 129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         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)
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Mon Apr 28 17:30:34 CDT 2008
> [INFO] Final Memory: 1M/3M
> [INFO]  
> ------------------------------------------------------------------------
>
> I didn't want to try 'mvn install' until I had the chance to ask  
> someone what was going on.  Anybody have any ideas?  I am using  
> Ubuntu 6.06.  Let me know if more information about my sytem is  
> required.
>
> -Avner Shanan-
> _______________________________________________
> cosmo-dev mailing list
> cosmo-dev at lists.osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/cosmo-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/cosmo-dev/attachments/20080428/380cc8f6/attachment.html


More information about the cosmo-dev mailing list