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.

learn more… | top users | synonyms

46
votes
2answers
13k views

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: ...
14
votes
9answers
1k views

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 ...
13
votes
2answers
565 views

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, ...
12
votes
7answers
862 views

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 ...
10
votes
5answers
9k views

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 ...
7
votes
1answer
587 views

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 ...
7
votes
2answers
3k views

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 ...
6
votes
1answer
4k views

Code Analysis & Reporting: Maven vs. Jenkins

My team (~10 devs) has recently migrated to Maven (multi-module project, ca. 50 modules) and we now use Jenkins for continuous integration. As the overall setup is running, we are planning to include ...
6
votes
2answers
563 views

How does java resolve class names in a lot of jars?

Recently I found one of my Maven project have 100+ jar dependencies. FWIK a zip archive doesn't have index at all, so it should scan the whole zip to determine if it contains a specific path. But I ...
5
votes
3answers
326 views

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 ...
5
votes
1answer
443 views

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 ...
5
votes
0answers
633 views

Architect's question: How to help developers cleanup maven poms… Is there a static analysis build tool? [closed]

I have a bunch of developers in my org that are constrained under time and political pressure to push projects out at any cost. As a result, their code quality is suffering and they're already ...
4
votes
2answers
603 views

Hibernate set up for beginner

I am learning Hibernate (OR Mapping). I am using Maven for project management. However, I am currently reading a Hibernate book by O'Reilly, and they use ANT for their example. So my question is are ...
4
votes
2answers
796 views

Continuous Integration with Bamboo and Maven, Managing Version Numbers?

I am currently developing a product that is broken up into a few main parts: A Server, an Android client, a Desktop client, and a class library for providing common data structures. Currently my team ...
4
votes
4answers
272 views

Continuous integration never results in build errors

I'm working with a variety of Java EE websites which use internal libraries we've developed. For each website, we only upgrade to new versions of our internal libraries as needed, and before ...
3
votes
2answers
752 views

What are the advantages of Maven when it comes to single man, educational projects

I've spend a few hours playing around with Maven + reading some stuff on the apache official site and also a few random googled articles. By this I mean that I really tried to find the answers myself ...
3
votes
1answer
2k views

Multi-module web project with Spring and Maven

Assume we have a few projects, each containing some web resources (e.g., html pages). parent.pom +- web (war) +- web-plugin-1 (jar) +- web-plugin-2 (jar) ... Let's say web is the ...
3
votes
1answer
2k views

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 ...
2
votes
5answers
362 views

Improving the Java development workflow [closed]

I will like to assist my group standardize to a reproducable Java tooling environment that aligns with some good practices to improve on our workflow. We are predominantly a .NET shop that has been ...
2
votes
1answer
862 views

Should we use a Maven Multi-Module Project in our Scenario?

The Situation I'm currently working in project that develops several RESTful services that partly interact with each other. As an example: Service A uses Service B Service C uses nothing Service D ...
2
votes
2answers
266 views

Supporting and testing multiple versions of a software library in a Maven project

My company has several versions of its core software in use by our customers at any one time. My job is to write bespoke Java software for the customers based on the version of core software they ...
2
votes
0answers
221 views

How to package static content outside of web application?

Our web application has static content packaged as part of WAR. We have been planning to move it out of the project and host it directly on Apache to achieve the following objectives. It's getting ...
1
vote
4answers
954 views

The state of build systems in Java [closed]

Is anyone else out there sick of the state of current build systems in the Java space? Why shouldn't I just write my next project's build scripts in Python, Ruby or another fully feature scripting ...
1
vote
3answers
495 views

Getting started with build tools [closed]

I am on my final year on CS, working on my first significant project, so I thought its about time to learn and use build tools. I have read about Maven mainly and heard about Ant. I would like to ...
1
vote
2answers
130 views

When would you choose *not* to update a third-party library to a newer version?

Using third party libraries for productivity gains in software development is common. Unfortunately, along with the library's functionality we also import its bugs. Some of them get fixed in ...
1
vote
2answers
351 views

Project life cycle management - Maven vs 'manual' approach

I have a question concerning the life cycle management of a/multiple project(s), more specific to the advantages/disadvantages of using technologies such as Maven. Currently we work in a ...
1
vote
1answer
223 views

Is there a tool that will list all dependencies of a method in Java?

Say I'm looking at some code and I see: MessageDigestPasswordEncoder encoder = new MessageDigestPasswordEncoder("SHA-512"); Now, in that file I also see: import ...
1
vote
2answers
171 views

Managing Maven dependencies between multiple components with multiple teams making changes

In a situation where there are multiple teams making changes to some Maven projects with dependencies between them (otherwise unrelated projects i.e. no super POM or anything like that), with each ...
1
vote
1answer
53 views

Deploying artifacts and dependencies on another system with Maven

I am coding a Java program on my development machine. Maven packages this a myjar.jar, and I can run it from the command line using java -cp myjar.jar my.FantasticClass. It uses library somelib.jar. I ...
1
vote
1answer
378 views

How to synchronize configuration for Findbugs between build server/Maven and several programmers

Here's a common scenario for developers who want to integrate static analysis in their workflow. Any suggestions on how to get this working with a minimum of pain? The situation is similar to the one ...
1
vote
1answer
636 views

Including Module Source files into War file using Maven

My goal is to include modules sources files into War file. I read this explanation on the maven official site: ...
1
vote
1answer
56 views

maven release candidate builds [closed]

We build Java applications and use Maven to create snapshot and release builds (via Hudson). Normally, we build/deploy snapshot versions to our lab environment and when we're happy, we do release ...
1
vote
0answers
143 views

How to organize integration tests and test data for different environments when using Maven Failsafe

I have started to separate my unit tests from my integration tests by using Maven Surefire and Failsafe. Now I'm wondering what good ways there are to deal with separate environments. Take for ...
1
vote
0answers
25 views

Custom maven mojo and tools

I'm writing maven plugin which depends on several java tools. I'm quite happy with it and want to share it with the community. I'm interested in correct way to handle dependency to these tools: Use ...
0
votes
1answer
309 views

force recompilation of war file including its Jar dependencies

I have a project A (a webapp), depending on project B (B.jar) and this one depending on project C (C.jar). I would like to create a maven goal named "Rebuild War", that clean all compiled code for ...
0
votes
2answers
3k views

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 ...
0
votes
1answer
49 views

Does license matter if I host a maven repository?

If I make a maven repository available for others to use, do I have to get permission form the authors of those software that I host in my repository even if they are free software? Can I host free ...
-1
votes
1answer
32 views

What do I use to keep 3rd party components up to date in XCode instead of Maven? [closed]

My iOS apps include a bunch of open source and 3rd party components. If I was using Maven and Java, I would know how to easily update the build. Is there a similar toolchain for XCode?
-2
votes
0answers
138 views

Modularization of application [closed]

I am creating an application that will track different things on relating to a given farm. When I started to look at what I was going to create I saw that some parts of the application infact could be ...