Issue 15359

ala-portal-from-ala/ala-names-generator - svn version 4272 - Exception in thread "main" java.lang.NoClassDefFoundError: scala/Option

15359
Reporter: pfilipak
Type: Bug
Summary: ala-portal-from-ala/ala-names-generator - svn version 4272 - Exception in thread "main" java.lang.NoClassDefFoundError: scala/Option
Priority: Blocker
Status: InProgress
Created: 2014-03-12 14:20:51.097
Updated: 2014-03-17 14:47:19.194
        
        
Description: Issue:

When I run ala-names-generator. It throws an exception.

java -Xmx1G -Xms1G -cp .:ala-names-generator-1.0-SNAPSHOT-assembly.jar au.org.ala.names.NamesGenerator --all
Exception in thread "main" java.lang.NoClassDefFoundError: scala/Option
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
	at java.lang.Class.getMethod0(Class.java:2774)
	at java.lang.Class.getMethod(Class.java:1663)
	at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: scala.Option
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	... 6 more


My pom.xml file was changed for build.


	4.0.0
	au.org.ala
	ala-names-generator
	1.0-SNAPSHOT
	${project.artifactId}
	Generates a names list from the NSL and CoL to be used as the backbone to the ALA BIE and biocache.
	2012


	
		UTF-8
		2.9.1
		UTF-8
	


	
		
			scala-tools.org
			Scala-Tools Maven2 Repository
			https://oss.sonatype.org/content/groups/scala-tools/
		
		
			bonecp-repo
			BoneCP Repository
			http://jolbox.com/bonecp/downloads/maven
		

   cloudera-repo
   Cloudera Repository
   https://repository.cloudera.com/artifactory/jolbox-cache


 
      gbif-all
      Gbif Repository
      http://repository.gbif.org/content/groups/gbif
    
	
alaOrg
CVSReader Maven Repository
http://maven.ala.org.au/repository

	

	
		
			scala-tools.org
			Scala-Tools Maven2 Repository
			http://scala-tools.org/repo-releases
		
	

	
       
            org.gbif
            dwca-reader
            1.14-SNAPSHOT
            
                
                    commons-io
                    commons-io
                
            
        
		
		
			au.org.ala
			ala-name-matching
			1.1-SNAPSHOT
			
				
					org.gbif
					dwc-archive
				
				
					jaxen
					jaxen
				
				
					org.apache.lucene
					lucene-core
				
				
					org.apache.lucene
					lucene-analyzers
				
				
					org.slf4j
					slf4j-api
				
			
		
		
			org.slf4j
			slf4j-log4j12
			1.6.1
		
		
		
			com.jolbox
			bonecp
			0.6.5
			compile
		

		
			mysql
			mysql-connector-java
			5.1.6
		

		
		
			au.org.ala
			ala-nsl-taxamatch
			1.0

		
		
			jdbm
			jdbm
			1.0

		
		
		
			org.scalatest
			scalatest
			1.3
			compile
		
		
			org.apache.lucene
			lucene-core
			3.1.0
			compile
		


		
			org.scalaquery
			scalaquery_2.9.0-1
			0.9.5
		
		
			commons-collections
			commons-collections
			3.1
		

	

	
		src/main/scala
		src/test/scala
		
			
				org.scala-tools
				maven-scala-plugin
				2.15.2
				
					
						scala-compile-first
						process-resources
						
							add-source
							compile
						
					
					
						scala-test-compile
						process-test-resources
						
							testCompile
						
					
				
				
					${scala.version}
					
						-target:jvm-1.5
					
					
						-Xmx1024m
					
				
			
			
				org.apache.maven.plugins
				maven-surefire-plugin
				2.6
				
					false
					true
					
					
					
						**/*Test.*
						**/*Suite.*
					
				
			
			
				org.apache.maven.plugins
				maven-assembly-plugin
				
					
						src/assembly/assembly.xml
					
					
						
							true
							lib/
							au.org.ala.util.CommandLineTool
						
					
				
				
					
						package
						
							single
						
					
				
			
			
				org.apache.maven.plugins
				maven-eclipse-plugin
				
					true
					
						ch.epfl.lamp.sdt.core.scalabuilder
					
					
						ch.epfl.lamp.sdt.core.scalanature
					
					
						org.eclipse.jdt.launching.JRE_CONTAINER
						ch.epfl.lamp.sdt.launching.SCALA_CONTAINER
					
					
						org.scala-lang:scala-compiler
					
					
						**/*.scala
					
				
			
		
	

]]>
    


Author: pfilipak
Created: 2014-03-17 14:47:19.194
Updated: 2014-03-17 14:47:19.194
        
[Resolved]

I changed pom.xml file to: