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.
-3
votes
0answers
37 views
Should I use Maven or Gradle for my next project? [closed]
I am a long time Maven fan who has also spent plenty of hours in Ant scripts using Ivy and script tags and more. I also happen to love Groovy. I am asking the above question because I am looking to ...
-2
votes
0answers
63 views
Is Maven Convention over Configuration?
Does Maven works through "Convention" or is it configurable by any means? I have been following placing the code under main folder and placing the tests under test folder. Is there a way to rename ...
0
votes
2answers
81 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 ...
1
vote
1answer
77 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
1answer
95 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 ...
1
vote
1answer
107 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
0answers
64 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 ...
5
votes
1answer
162 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 ...
13
votes
2answers
493 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, ...
1
vote
0answers
23 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 ...
3
votes
2answers
288 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 ...
2
votes
2answers
105 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 ...
4
votes
2answers
316 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 ...
0
votes
1answer
44 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 ...
4
votes
2answers
199 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 ...
6
votes
1answer
257 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 ...
23
votes
2answers
4k 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:
...
-1
votes
1answer
326 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:
...
0
votes
1answer
149 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 ...
3
votes
1answer
835 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 ...
6
votes
2answers
2k 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 ...
1
vote
2answers
294 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 ...
12
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 ...
2
votes
3answers
344 views
Getting started with build tools
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 ...
9
votes
7answers
617 views
Java Developers: Is Ant still in the “main stream” for builds? Do we push new developers to learn it?
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 ...
6
votes
1answer
3k 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
1answer
456 views
Architect's question: How to help developers cleanup maven poms… Is there a static analysis build tool?
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 ...
2
votes
4answers
539 views
The state of build systems in Java
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 ...
6
votes
2answers
408 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 ...
9
votes
5answers
5k 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 ...
4
votes
4answers
257 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 ...
