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

Trying to understand how maven finds source

2013-10-24 Thread Robert Dailey
Hey everyone, I'm trying to understand something basic, I haven't been able to find the answer through Google surprisingly (maybe my searching abilities suck today). How is it that Maven is able to find source code to compile? What I would expect is the pom.xml to refer to some *.java path

Re: Trying to understand how maven finds source

2013-10-24 Thread Paul Benedict
You are likely not see src/main/java in POMs because that is the default path. Unless you want to change the source directory, you can omit it altogether. On Thu, Oct 24, 2013 at 3:04 PM, Robert Dailey rcdailey.li...@gmail.comwrote: Hey everyone, I'm trying to understand something basic, I

RE: Trying to understand how maven finds source

2013-10-24 Thread randysr
Maven has a 'convention over configuration' philosophy, which means that the pom.xml doesn't need to specify paths that are in the conventional places. So unless otherwise configured, it will look in src/main/java for all of it's (non-test) source code. You should be able to find the

Re: Trying to understand how maven finds source

2013-10-24 Thread Anders Hammar
If you have a look at the effective pom, which is what Maven uses, you will see a sourceDirectory element in the build section. The default path is defined in the Super-POM. You can view the effective pom in m2e or with mvn help:effective-pom. /Anders On Thu, Oct 24, 2013 at 10:08 PM, Paul

Re: Trying to understand how maven finds source

2013-10-24 Thread Laird Nelson
mvn help:effective-pom will spit out the pom made up of the defaults plus anything you've overridden or added. Stand back; it's huge. Best, Laird On Thu, Oct 24, 2013 at 1:21 PM, rand...@kamradtfamily.net wrote: Maven has a 'convention over configuration' philosophy, which means that the

Re: Trying to understand how maven finds source

2013-10-24 Thread Robert Dailey
Thanks everyone, super helpful information. I'm still learning so I appreciate you putting up with my silly newbie questions :) I'll try to ramp up on the conventional aspects of maven, that seems to be the missing piece. On Thu, Oct 24, 2013 at 3:24 PM, Anders Hammar and...@hammar.net wrote:

Re: Trying to understand how maven finds source

2013-10-24 Thread Robert Dailey
I tried your command and I got this: C:\Work\mavenmvn help:effective-pom [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO]

Re: Trying to understand how maven finds source

2013-10-24 Thread Anders Hammar
No, but it requires a project (a pom.xml) to be able to calculate an effective pom. /Anders On Thu, Oct 24, 2013 at 10:33 PM, Robert Dailey rcdailey.li...@gmail.comwrote: I tried your command and I got this: C:\Work\mavenmvn help:effective-pom [INFO] Scanning for projects... [INFO]

Re: Trying to understand how maven finds source

2013-10-24 Thread Robert Dailey
Oh I understand now, sorry I thought it was a sample POM or something :-) Works when I step into my project directory and run it. Thanks! On Thu, Oct 24, 2013 at 3:37 PM, Anders Hammar and...@hammar.net wrote: No, but it requires a project (a pom.xml) to be able to calculate an effective pom.

Re: Trying to understand how maven finds source

2013-10-24 Thread Ron Wheeler
The easy way to figure out what is happening is to use Eclipse/STS as your IDE and then you have nice gui tools that will tell you where your sources are supposed to be. It is free and comes ready to build with maven. It has a nice editor for pom files and a window that shows you what you

RE: Re: Trying to understand how maven finds source

2013-10-24 Thread randysr
I think I speak for most of us when I say: after mastering maven, we find plenty of other things to be newbies at. So we're all in different instances of the same boat class - Original Message - Subject: Re: Trying to understand how maven finds source From: Robert Dailey

Getting restSQL to work with maven

2013-10-24 Thread Robert Dailey
So my goal right now is to generate an Eclipse project for my maven project. I successfully have done this using: mvn eclipse:eclipse Now in my Activator.java file I am adding a new dependency: import org.restsql.core.Config; Eclipse tells me it cannot resolve org.restsql. So what I did was

Re: Getting restSQL to work with maven

2013-10-24 Thread Russell Gold
Hi Robert, Did you add this to your POM? If so, Eclipse should try to download the jar from maven central into your local repo. If you didn't, just putting it in the repo probably won't do much. - Russ On Oct 24, 2013, at 5:47 PM, Robert Dailey wrote: So my goal right now is to generate an

Re: Getting restSQL to work with maven

2013-10-24 Thread Adrien Rivard
Also you should not use eclipse:eclipse , this is the old way to work with eclipse. Just run eclipse:clean to remove the generated files, and then in eclipse, import the project as existing maven project. If it has a valid pom.xml, it will generate and manage the appropriate eclipse files. On

Re: Trying to understand how maven finds source

2013-10-24 Thread Robert Dailey
I do happen to use Eclipse, and all I've installed is the m2e plugin from Help menu. Is this what you are talking about? On Thu, Oct 24, 2013 at 3:48 PM, Ron Wheeler rwhee...@artifact-software.com wrote: The easy way to figure out what is happening is to use Eclipse/STS as your IDE and then you

Re: Getting restSQL to work with maven

2013-10-24 Thread Robert Dailey
Should I import it using General Existing Projects into Workspace? Or should I use the m2e plugin? Which will be Maven Existing Maven Projects? On Thu, Oct 24, 2013 at 5:22 PM, Adrien Rivard adrien.riv...@gmail.com wrote: Also you should not use eclipse:eclipse , this is the old way to work

Re: Getting restSQL to work with maven

2013-10-24 Thread Robert Dailey
Thanks!! That was it... I'm missing obvious stuff :( I should have remembered to do that. Thanks for the reminder! On Thu, Oct 24, 2013 at 5:07 PM, Russell Gold russell.g...@oracle.com wrote: Hi Robert, Did you add this to your POM? If so, Eclipse should try to download the jar from maven

Re: Trying to understand how maven finds source

2013-10-24 Thread Mark Eggers
I'm not much of an Eclipse user, but if I remember correctly Kepler comes with Maven out of the box. Your mileage may vary (I mostly use NetBeans). Mark /mde/ On 10/24/2013 3:37 PM, Robert Dailey wrote: I do happen to use Eclipse, and all I've installed is the m2e plugin from Help menu. Is

Re: Trying to understand how maven finds source

2013-10-24 Thread Ron Wheeler
Eclipse/STS from the Spring guys (VMWare now) is an Eclipse IDE with all of the plug-ins that you need to develop Java (and more). We started with pure Eclipse but spent so much time fixing up the plug-ins with each new version that it affected our productivity. Once we found the Spring Tool

Re: Trying to understand how maven finds source

2013-10-24 Thread Curtis Rueden
Hi, if I remember correctly Kepler comes with Maven out of the box. See this chart for which Eclipse packages include Maven integration: http://www.eclipse.org/downloads/compare.php?release=kepler Personally I use the Eclipse IDE for Java Developers which comes with support for both Maven

Re: Trying to understand how maven finds source

2013-10-24 Thread Barrie Treloar
On 25 October 2013 06:34, Robert Dailey rcdailey.li...@gmail.com wrote: I'm trying to understand something basic, I haven't been able to find Also, Please have a look at the freely available books at http://maven.apache.org/articles.html

Re: Getting restSQL to work with maven

2013-10-24 Thread Anders Hammar
Import Existing Maven project. /Anders (mobile) Den 25 okt 2013 00:41 skrev Robert Dailey rcdailey.li...@gmail.com: Should I import it using General Existing Projects into Workspace? Or should I use the m2e plugin? Which will be Maven Existing Maven Projects? On Thu, Oct 24, 2013 at 5:22