You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by cmoulliard <cm...@gmail.com> on 2009/03/10 12:17:38 UTC

Not possible to build camel-scala (2.0 SNASHOT)

Hi,

When I try to build camel-scala, I receive the following error :

D:\Dvlpt\Java\workspace-ganymede\apache-camel-source\components\camel-scala>mvn
clean install -Dtest=false
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Camel :: Scala
[INFO]    task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory
D:\Dvlpt\Java\workspace-ganymede\apache-camel-source\components\camel-scala\target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [scala:compile {execution: default}]
[ERROR]
D:\Dvlpt\Java\workspace-ganymede\apache-camel-source\components\camel-scala\src\main\scala
[INFO] Compiling 31 source files to
D:\Dvlpt\Java\workspace-ganymede\apache-camel-source\components\camel-scala\target\classes
[WARNING] java.lang.NoClassDefFoundError: scala/tools/nsc/Main
[WARNING] Caused by: java.lang.ClassNotFoundException: scala.tools.nsc.Main
[WARNING]       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[WARNING]       at java.security.AccessController.doPrivileged(Native
Method)
[WARNING]       at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[WARNING]       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[WARNING]       at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[WARNING]       at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[WARNING]       at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[WARNING] Could not find the main class: scala.tools.nsc.Main.  Program will
exit.
[WARNING] Exception in thread "main"
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] command line returned non-zero value:1
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Tue Mar 10 12:11:43 CET 2009
[INFO] Final Memory: 13M/24M
[INFO]
------------------------------------------------------------------------

The jar of scala-compiler (version 2.7.2) containing the class mentioned is
in my maven local repository.

Regards,

-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://www.nabble.com/Not-possible-to-build-camel-scala-%282.0-SNASHOT%29-tp22432177p22432177.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Not possible to build camel-scala (2.0 SNASHOT)

Posted by cmoulliard <cm...@gmail.com>.
Problem sovled. It was due to a bad scala-compiler jar (maven repository)


cmoulliard wrote:
> 
> Hi,
> 
> When I try to build camel-scala, I receive the following error :
> 
> D:\Dvlpt\Java\workspace-ganymede\apache-camel-source\components\camel-scala>mvn
> clean install -Dtest=false
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Camel :: Scala
> [INFO]    task-segment: [clean, install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory
> D:\Dvlpt\Java\workspace-ganymede\apache-camel-source\components\camel-scala\target
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [scala:compile {execution: default}]
> [ERROR]
> D:\Dvlpt\Java\workspace-ganymede\apache-camel-source\components\camel-scala\src\main\scala
> [INFO] Compiling 31 source files to
> D:\Dvlpt\Java\workspace-ganymede\apache-camel-source\components\camel-scala\target\classes
> [WARNING] java.lang.NoClassDefFoundError: scala/tools/nsc/Main
> [WARNING] Caused by: java.lang.ClassNotFoundException:
> scala.tools.nsc.Main
> [WARNING]       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> [WARNING]       at java.security.AccessController.doPrivileged(Native
> Method)
> [WARNING]       at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> [WARNING]       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> [WARNING]       at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> [WARNING]       at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> [WARNING]       at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> [WARNING] Could not find the main class: scala.tools.nsc.Main.  Program
> will exit.
> [WARNING] Exception in thread "main"
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] command line returned non-zero value:1
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 8 seconds
> [INFO] Finished at: Tue Mar 10 12:11:43 CET 2009
> [INFO] Final Memory: 13M/24M
> [INFO]
> ------------------------------------------------------------------------
> 
> The jar of scala-compiler (version 2.7.2) containing the class mentioned
> is in my maven local repository.
> 
> Regards,
> 


-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://www.nabble.com/Not-possible-to-build-camel-scala-%282.0-SNASHOT%29-tp22432177p22496899.html
Sent from the Camel - Users mailing list archive at Nabble.com.