Re: Maven - slf4j noclassdeffound error

2013-10-24 Thread Russell Gold
Did you by any chance install using apt-get? I've seen a number of cases where doing so leads to errors like this. Try installing manually from the website. On Oct 24, 2013, at 12:31 AM, gunrock seenu gunrockse...@gmail.com wrote: ~/M101J$ mvn --version Apache Maven 3.0.4 Maven home:

Re: Maven - slf4j noclassdeffound error

2013-10-24 Thread Wayne Fay
Did you by any chance install using apt-get? I've seen a number of cases where doing so leads to errors like this. Try installing manually from the website. To be clear, Russell is asking if you installed Maven using apt-get rather than downloading the tarball from the Maven website and

Re: Maven - slf4j noclassdeffound error

2013-10-24 Thread Wayne Fay
dependency groupIdorg.slf4j/groupId artifactIdslf4j-api/artifactId version1.7.5/version Exception in thread main java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory At this point (with the dependency specifically declared in the pom), you have to

Re: Maven - slf4j noclassdeffound error

2013-10-24 Thread Curtis Rueden
Hi all, 5. consider if you really want the API or an implementation package for runtime use The typical pattern with SLF4J is to depend only on org.slf4j:slf4j-api at compile time, and then add an implementation binding at runtime. For SLF4J 1.6+, you don't even need an implementation at

Maven - slf4j noclassdeffound error

2013-10-23 Thread Seenu
I am using intellij and maven, I have used the following pom.xml : project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd;

Re: Maven - slf4j noclassdeffound error

2013-10-23 Thread Kevin Krumwiede
I don't see any reference to slf4j in your pom or your code. Are you sure you posted the right thing? On 10/23/13, Seenu gunrockse...@gmail.com wrote: I am using intellij and maven, I have used the following pom.xml : project xmlns=http://maven.apache.org/POM/4.0.0;

Re: Maven - slf4j noclassdeffound error

2013-10-23 Thread Thomas Broyer
None of the transitive dependencies of spark are in the classpath. It generally happens if the POM is invalid. What does mvn dependency:tree says? Is there any error/warning in IDEA? Le 23 oct. 2013 14:28, Seenu gunrockse...@gmail.com a écrit : I am using intellij and maven, I have used the

Re: Maven - slf4j noclassdeffound error

2013-10-23 Thread Seenu
It is referenced by spark core I can see slf4j-API getting pulled by the project in IntelliJ I also tried including the dependency in the Pom.xml. The noclassdeffound is still showing. Sent from my iPhone On Oct 23, 2013, at 10:22 AM, Kevin Krumwiede kjk...@gmail.com wrote: I don't see

Re: Maven - slf4j noclassdeffound error

2013-10-23 Thread gunrock seenu
I tried this pom.xml, that did not help either its just seems to be missing something . project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;

Re: Maven - slf4j noclassdeffound error

2013-10-23 Thread gunrock seenu
Also here is the source I see for RouteMatchFactory /* * Copyright 2011- Per Wendel * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * *

Re: Maven - slf4j noclassdeffound error

2013-10-23 Thread gunrock seenu
~/M101J$ mvn dependency:tree [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building M101J 1.0-SNAPSHOT [INFO] [INFO] [INFO] ---

Re: Maven - slf4j noclassdeffound error

2013-10-23 Thread gunrock seenu
~/M101J$ mvn --version Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.7.0_40, vendor: Oracle Corporation Java home: /usr/lib/jvm/jdk1.7.0_40/jre Default locale: en_US, platform encoding: UTF-8 OS name: linux, version: 3.8.0-31-generic, arch: amd64, family: unix strange thing I