0
votes
0answers
53 views

Confusing project dependencies

I have a project for my main application and some projects for modules that are used by this application. Following I will reduce it to the main project and one module project. Both projects share ...
3
votes
1answer
105 views

If a dependency is not in the maven repository should I add it to source control?

One of the jar files that I use in my code is not in the maven repository(and yes I tried to avoid using it). I have installed it locally so when I build the project it gets picked up by maven. I also ...
2
votes
1answer
183 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 ...
2
votes
5answers
477 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 ...
3
votes
1answer
3k 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 ...
1
vote
2answers
4k 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
294 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
470 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 ...
5
votes
1answer
606 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
585 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, ...
3
votes
2answers
1k 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
354 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
690 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 ...
7
votes
1answer
800 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 ...
51
votes
2answers
19k 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
vote
1answer
766 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
454 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 ...
6
votes
1answer
3k 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 ...
1
vote
3answers
522 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 ...
12
votes
7answers
930 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 ...
1
vote
4answers
1k 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 ...
6
votes
2answers
659 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 ...