|
|
-
TooManyFilesException.java - cannot find org.slf4j
Kristopher Kane 2012-10-06, 15:23
Please bear with me as I'm cutting teeth on a lot of things to work on ACCUMULO-720... like learning Java. :-)
I did an SVN check out of trunk and compiled/ran it. Then I imported the checkout into Eclipse and noticed that TooManyFilesException.java is complaining about not being able to find org.slf4j.
When I compiled with Maven everything appeared to finish fine. Does mean that Maven ignored the missing import or that it downloaded the dep at compile time?
Thanks for the help,
-Kris
+
Kristopher Kane 2012-10-06, 15:23
-
Re: TooManyFilesException.java - cannot find org.slf4j
Billie Rinaldi 2012-10-06, 23:10
On Sat, Oct 6, 2012 at 11:23 AM, Kristopher Kane <[EMAIL PROTECTED]>wrote:
> Please bear with me as I'm cutting teeth on a lot of things to work on > ACCUMULO-720... like learning Java. :-) > > I did an SVN check out of trunk and compiled/ran it. Then I imported > the checkout into Eclipse and noticed that TooManyFilesException.java > is complaining about not being able to find org.slf4j. >
Did you do Import -> Existing Maven Projects? If the project appears to have imported correctly as a Maven project (it creates a dozen-ish separate Maven projects in your workspace), and it builds fine at the command line, sometimes you just have to refresh and/or clean (Project -> Clean) the workspace to make Eclipse happy. Another sometimes-useful thing is right click -> Maven -> Update Project Configuration (now Update Project in Juno), though that should only be needed if a pom has changed.
Also, if you take a look at a Maven project in Eclipse, it will have a section called Maven Dependencies that you can open and see what jars are actually being pulled in.
Billie
> > When I compiled with Maven everything appeared to finish fine. Does > mean that Maven ignored the missing import or that it downloaded the > dep at compile time? > > Thanks for the help, > > -Kris >
+
Billie Rinaldi 2012-10-06, 23:10
-
Re: TooManyFilesException.java - cannot find org.slf4j
Kristopher Kane 2012-10-07, 02:20
I was not using m2eclipse, but, I am now and have imported the svn copy using maven and it looks clean. "Also, if you take a look at a Maven project in Eclipse, it will have a section called Maven Dependencies that you can open and see what jars are actually being pulled in."
I found this and slf4j is under the Maven deps which explains my original problem when I was simply importing the code as a project without m2e.
Thanks for the help everyone. A few more hurdles are down on the track.
-Kris
+
Kristopher Kane 2012-10-07, 02:20
-
Re: TooManyFilesException.java - cannot find org.slf4j
Benson Margulies 2012-10-06, 16:56
?how? did you load it into eclipse? M2E? maven-eclipse-plugin?
On Sat, Oct 6, 2012 at 11:23 AM, Kristopher Kane <[EMAIL PROTECTED]> wrote: > Please bear with me as I'm cutting teeth on a lot of things to work on > ACCUMULO-720... like learning Java. :-) > > I did an SVN check out of trunk and compiled/ran it. Then I imported > the checkout into Eclipse and noticed that TooManyFilesException.java > is complaining about not being able to find org.slf4j. > > When I compiled with Maven everything appeared to finish fine. Does > mean that Maven ignored the missing import or that it downloaded the > dep at compile time? > > Thanks for the help, > > -Kris
+
Benson Margulies 2012-10-06, 16:56
-
Re: TooManyFilesException.java - cannot find org.slf4j
Christopher Tubbs 2012-10-06, 18:07
These kinds of questions might be better suited to the user list. However, you definitely need to build with Maven, whether you're building within M2E using Eclipse or from the command line, because it does download dependencies and puts them in locations expected by the scripts to run.
On Sat, Oct 6, 2012 at 12:56 PM, Benson Margulies <[EMAIL PROTECTED]> wrote: > ?how? did you load it into eclipse? M2E? maven-eclipse-plugin? > > On Sat, Oct 6, 2012 at 11:23 AM, Kristopher Kane <[EMAIL PROTECTED]> wrote: >> Please bear with me as I'm cutting teeth on a lot of things to work on >> ACCUMULO-720... like learning Java. :-) >> >> I did an SVN check out of trunk and compiled/ran it. Then I imported >> the checkout into Eclipse and noticed that TooManyFilesException.java >> is complaining about not being able to find org.slf4j. >> >> When I compiled with Maven everything appeared to finish fine. Does >> mean that Maven ignored the missing import or that it downloaded the >> dep at compile time? >> >> Thanks for the help, >> >> -Kris
+
Christopher Tubbs 2012-10-06, 18:07
|
|