myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Koci <martin.kocicak.k...@gmail.com>
Subject Re: mvn source compilation problem [Trinidad]
Date Mon, 18 Jul 2011 17:51:07 GMT
Hi, 

you don't have javac on bin path; Does "javac" command output (in bash
shall) anything? Please set up maven according [1], section "Unix-based
Operating Systems (Linux, Solaris and Mac OS X)"


[1] http://maven.apache.org/download.html 

omid p píše v Ne 17. 07. 2011 v 15:28 +0430:
> Hi,
> While i'm compiling trinidad source code with maven i've got thi exception
> 
> omidbiz@linux-gk4q:~/framework/trinidad/trinidad-1.2.13src/src/trinidad-api>
> mvn -e install
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache MyFaces Trinidad API
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [xrts:generate-sources {execution: default}]
> [INFO] Nothing to generate - all XRTS bundles are up to date
> [INFO] [faces:generate-components {execution: default}]
> [INFO] Generated 133 component(s)
> [INFO] [i18n:generate-locale-elements {execution: default}]
> [INFO] Generating LocaleElements
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Compiling 405 source files to
> /home/omidbiz/framework/trinidad/trinidad-1.2.13src/src/trinidad-api/target/classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Fatal error compiling
> 
> Embedded error: Error while executing the external compiler.
> java.io.IOException: error=2, No such file or directory
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Fatal error
> compiling
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>     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)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error
> compiling
>     at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:498)
>     at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
>     at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>     ... 17 more
> Caused by: org.codehaus.plexus.compiler.CompilerException: Error while
> executing the external compiler.
>     at
> org.codehaus.plexus.compiler.javac.JavacCompiler.compileOutOfProcess(JavacCompiler.java:343)
>     at
> org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:137)
>     at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:493)
>     ... 20 more
> Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error while
> executing process.
>     at
> org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:679)
>     at
> org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:69)
>     at
> org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:56)
>     at
> org.codehaus.plexus.compiler.javac.JavacCompiler.compileOutOfProcess(JavacCompiler.java:337)
>     ... 22 more
> Caused by: java.io.IOException: Cannot run program "null/bin/javac" (in
> directory
> "/home/omidbiz/framework/trinidad/trinidad-1.2.13src/src/trinidad-api"):
> java.io.IOException: error=2, No such file or directory
>     at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
>     at java.lang.Runtime.exec(Runtime.java:593)
>     at
> org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:674)
>     ... 25 more
> Caused by: java.io.IOException: java.io.IOException: error=2, No such file
> or directory
>     at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
>     at java.lang.ProcessImpl.start(ProcessImpl.java:65)
>     at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
>     ... 27 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Sun Jul 17 15:23:05 IRDT 2011
> [INFO] Final Memory: 14M/77M
> [INFO]
> ------------------------------------------------------------------------
> omidbiz@linux-gk4q:~/framework/trinidad/trinidad-1.2.13src/src/trinidad-api>
> 
> 
> Am i missing sth ?



Mime
View raw message