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:
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
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
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
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
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
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
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
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
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:
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]
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]
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
26 matches
Mail list logo