Questions tagged [maven]

Maven is a plug-in based software project management tool which core features are automation of your software build, dependency management, and generating of reports and documentation.

Use this tag if your question is related to the usage of Maven. As there exists different stable releases of this tool ensure that you make clear which version you are using. Also when your question is about a specific plug-in the version number of this plug-in might be useful for answering your question.

Before posting a question in this tag you should at least take a look at Sonatype's Maven Reference Documentation as it give you a good overview of Maven's concepts. There is also a section with a comparison between Maven and ANT.

104 questions
282
votes
6 answers

Choosing between Single or multiple projects in a git repository?

In a git environment, where we have modularized most projects, we're facing the one project per repository or multiple projects per repository design issue. Let's consider a modularized project: myProject/ +-- gui +-- core +-- api +--…
Johan Sjöberg
  • 3,007
  • 4
  • 16
  • 7
26
votes
1 answer

Splitting a big project to create a multi-module Maven project

I am working on a Spring-MVC application in which we are using Maven for dependency management. As the project is big, we are thinking of splitting the project into several parts. I had some doubts, which I hopefully will get answers here.…
We are Borg
  • 421
  • 1
  • 6
  • 13
24
votes
9 answers

Convince a lone developer to use a separate build tool instead of the IDE one-click build

In my years of programming Java and more recently Scala, I've never used Ant, Maven, Gradle or any of those build tools for Java. Everywhere I've worked there was a build manager who took care of all of that -- I'd compile locally with the IDE for…
Gigatron
  • 361
  • 3
  • 7
22
votes
2 answers

Best way to structure a Git repository for Maven

I need some advice on how to structure our projects in Git. We use Java and Maven is our build tool. Maven kinda assumes all of your projects have a common ancestor eventually. Maven can also be a real drama queen when things aren't setup exactly…
Jonathan S. Fisher
  • 480
  • 1
  • 3
  • 10
21
votes
1 answer

How to include licenses for third-party Maven dependencies?

I'm producing a binary distributable for my Java project. I'm releasing it in two ways: Maven Central Zipped distributable on Google code My project is licensed under the Apache 2.0 license. I use a small number of third-party parties, one of…
Duncan Jones
  • 1,392
  • 1
  • 10
  • 18
20
votes
1 answer

Haskell build and artifact environment similar to Maven

I used to be a Java developer for a long time, but recently, I joined a Haskell team. In the java world, if you have a large project, with several teams working on it, a common approach is to use an artifact server such as Maven to ease and…
Oxy
  • 309
  • 1
  • 4
19
votes
1 answer

Java application structure: Horizontal vs vertical split

Having a bit of a debate about the starting project structure (using Maven/Eclipse) for a big Java application. Option 1: entities (i.e. the whole database using Hibernate classes-first) services (i.e. sets of read/write operations on the…
Steve Chambers
  • 307
  • 2
  • 8
14
votes
5 answers

Is Ant still in the "mainstream" for Java builds?

We have been slowly replacing batch command files (windows .bat) which were simply jarring up the classes compiled in the developers IDE, with more comprehensive Ant builds (i.e. get from CVS, clean compile, jar, archive, email, etc.) I've spent a…
Sam Goldberg
  • 1,004
  • 8
  • 19
13
votes
5 answers

Creating Java EE Projects with Maven

I've been developing Java EE web apps with Eclipse for about a year. My employer doesn't use Maven, but the more I read about it, the more convinced I am that Maven + Hudson will be greatly beneficial for us. First, though, I have to become…
Michael
  • 273
  • 1
  • 2
  • 7
13
votes
2 answers

Should my small software library avoid using other libraries?

I've just released a small Java library that offers only a few classes and methods. Since I built the project with Maven, I immediately used several third-party libraries to achieve my goals, specifically: commons-lang3 (for some general Java…
Duncan Jones
  • 1,392
  • 1
  • 10
  • 18
13
votes
2 answers

Separating java projects

I have a large java project, and we use maven for our build cycle. This one project is used extensively - in other projects, in various applications, some of which are contained in it and some which are elsewhere... To be honest, it's a bit of a…
amaidment
  • 428
  • 3
  • 12
12
votes
2 answers

git, maven and jenkins - versioning, dev and release builds workflow

What is the preferred way to do the following with git, maven and jenkins: I am developping an application, which I would like to maintain "dev" and "release" branches. I would like jenkins to build both. It could be so that the release-artifacts…
varesa
  • 223
  • 2
  • 4
10
votes
1 answer

Self-contained projects: Gradle & Maven dependencies offline

I'm trying to get a Java programming project set up in a way that it can be built completely offline just from the files in version control, on any machine, with no prerequisites to install. (Sole exception: the JDK) I don't know much of Maven, but…
Julian
  • 291
  • 2
  • 9
9
votes
1 answer

IntelliJ with Maven compilation

I have a project that needs Hibernate jars. I added them as dependencies in the pom.xml and Maven compiles my project well. However, in the IDE, all annotations and calls to Hibernate API are marked as unresolved (red). How could I get IntelliJ…
Mik378
  • 3,838
  • 7
  • 33
  • 60
8
votes
3 answers

Best practices for versioning project after dependency upgrade

Say, my project have dependency N with version 1.0.0. Then something have changed, and I should depend on newer version - let it be 1.0.1. OK, I'm incrementing dependency version, nothing else changes in my code. It looks like I should increment my…
shabunc
  • 2,424
  • 2
  • 20
  • 27
1
2 3 4 5 6 7