Tagged Questions
213
votes
9answers
64k views
Why use Gradle instead of Ant or Maven? [closed]
What does another build tool targeted at Java really get me?
If you use Gradle over another tool, why?
(See also Why use Buildr instead of Ant or Maven)
89
votes
4answers
5k views
Dealing with “Xerces hell” in Java/Maven?
In my office, the mere mention of the word Xerces is enough to incite murderous rage from developers. A cursory glance at the other Xerces questions on SO seem to indicate that almost all Maven users ...
79
votes
5answers
74k views
Find Oracle JDBC driver in Maven repository
I want to add the oracle jdbc driver to my project as dependency (runtime scope) - ojdbc14.
In MVNrepository site the dependency to put in the POM is:
<dependency>
...
65
votes
2answers
16k views
is guava-libraries available in maven repo?
I am looking to find guava-libraries in maven repository. It looks like guava is adding more features to google-collections library.
60
votes
3answers
31k views
Disable Maven warning message - “Selected war files include a WEB-INF/web.xml which will be ignored”
When I build my WAR package using Maven 2.1.1, I get this warning message:
[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ig
nored
(webxml attribute is missing from war ...
57
votes
5answers
19k views
What is Maven artifact?
I am trying to understand Maven a little.
Can someone please explain what is an artifact and why does Maven need them?
56
votes
15answers
6k views
Why is no one using make for Java?
Just about every Java project that I've seen either uses Maven or Ant. They are fine tools and I think just about any project can use them. But what ever happened to make? It's used for a variety ...
54
votes
12answers
14k views
SASS implementation for Java?
I'm looking for SASS implementation in Java (could be used with JSP/JSF). For Python I've found CleverCSS, but there is nothing for Java. Anyone heard something about this sort of tool for generating ...
53
votes
2answers
21k views
Maven does not find JUnit tests to run
I have a simple program for which maven compiles it and its tests fine, but when I run mvn test it does not run any tests (under TETSTs header says There are no tests to run.). I've recreated this ...
52
votes
6answers
26k views
Difference of Maven JAXB plugins
I have determined that two JAXB plugins for Maven 2 exist, with some different configurations.
The one is from Sun: http://jaxb.dev.java.net/jaxb-maven2-plugin/, the other from Codehaus: ...
51
votes
8answers
9k views
leiningen - how to add dependencies for local jars?
I want to use leiningen to build and develop my clojure project. Is there a way to modify project.clj to tell it to pick some jars from local directories?
I have some proprietary jars that cannot be ...
50
votes
4answers
16k views
What exactly is a Maven Snapshot and why do we need it?
I am a bit confused about the meaning of a Maven Snapshot and why we build one?
Why do we have different profiles for artifacts? I guess these two questions are related. It would be great if someone ...
50
votes
23answers
52k views
Build failed question - maven - jre or jdk problem
I have my JAVA_HOME set to
C:\Program Files (x86)\Java\jdk1.6.0_18
After I run maven install I get this message from eclipse:
Reason:
Unable to locate the Javac Compiler in:
C:\Program Files ...
33
votes
3answers
56k views
Maven with Eclipse Juno
I just upgraded to Eclipse Juno. The Maven plugin seems to be missing. Does anybody know how to get it?
31
votes
5answers
29k views
After Installing Java JDK 7 For Mac OS X - mvn -version still shows java version 1.6.0_31
Oracle released Java JDK 7 on April 26 for Mac OS X. I followed the install instructions and when I do java -version in a terminal window I get:
java version "1.7.0_04"
Java(TM) SE Runtime ...