Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
30 views

Should I postfix application.yml?

My project structure (Spring / maven): src / main / resources / application.yml src / test / resources / application.yml This is working well (when I launch test, it takes the test application.yml). ...
0
votes
0answers
20 views

Periodically update files from s3 in a Java maven library used as Packaged JAR

I have an application say x which uses another Java library(say Y) as a JAR file . So y basically needs to download a file and load it into memory before any of it's methods are called at runtime by X....
2
votes
1answer
84 views

Working with maven and multiple git repositories

We recently migrated from SVN, with most code in a single repo, to git, with most projects in their own repos (about 70 of them). We build about a dozen different apps from this java source. The apps ...
1
vote
1answer
63 views

Private/Hiding dependencies between Maven modules

Given three project modules X, Y and Z on a Maven based project, and Y depends of Z and X of Y and X should not know that Y depends of Z, being this: X -> Y Y -> Z X -X> Z What is the best way to ...
1
vote
2answers
59 views

Microservice Architecture: Localizing core logic in a separate code base

I stepped away from a project for a few weeks. Before leaving the organization was discussing an architectural pattern for our microservices. An instance typically serves two roles in our organization....
-1
votes
1answer
54 views

How, in eclipse do I work with an existing maven project in GitHub without ending up checking my .project file?

I have a maven project in GitHub that I wish to work with using eclipse. I want to keep the GitHub repository clear of any eclipse project artifacts such as the .project file. Is there a way to do ...
1
vote
0answers
161 views

Maven plugin to operate at parent and child module levels?

I have a large multi-module java/maven application where each child module is it's own java application and the root parent pom defines the standard dependencies pom.xml - parent pom - child1/pom.xml ...
3
votes
0answers
37 views

Maven project dependency management process

I'm writing what I might refer to as a Maven project dependency management process for a project I work on. Whenever a developer wants or needs to change the version number of an existing Maven ...
-3
votes
1answer
96 views

Upload MIT-licensed code to maven repository [closed]

I found some java source code under MIT license on Github, but it is not included in any maven repository. I asked in issue to publish it somewhere, but nobody answered and looks like this repo is not ...
1
vote
1answer
47 views

Java/Maven and Scala/sbt projects share immutable thing

Project 1: a Java/Maven project Project 2: a Scala/sbt project Thing: generally, an immutable object instantiated in from 3rd party Java library. For example, ThingBuilder.foo("bar").build() ...
0
votes
1answer
196 views

Deploy a NodeJs (FrontEnd) and a Spring (BackEnd) project as one artefact

I have a current project which consist out of two independently developed projects: Spring REST as back end Angular as front end I do have a Jenkins instance available for building my projects and I'...
2
votes
1answer
69 views

How to depend on forked external dependencies?

Our project uses Gradle (whose dependency system is compatible with Maven IIUC). When depending on external projects, we try to depend on stable versions. Sometimes we have to depend on a ...
0
votes
2answers
85 views

Team collaboration with Maven - Java EE

For team of 6, We have spring MVC project being developed with Angular as Frontend and Spring framework as back end. From Java project build & version control aspect, Is it recommended, to not ...
0
votes
0answers
32 views

A specific project to tests

In team the most important project is called core and we have more than three projects (foo1, foo2 and foo3) that have a dependency of core. Note that change anything in core is very critical because ...
0
votes
1answer
136 views

What is a good versioning strategy to achieve 'fail fast' with chains of dependent maven submodules?

My organisation modularised their monolith into maven modules in dependencies up to four deep. Originally we used the maven plugin to auto-increment the version numbers in the pom every time someone ...
0
votes
0answers
57 views

Approach for Breaking JavaFX Application into Jars / Layers

I have developed a JavaFX 8 application backed by a BaseX database and have got to the stage where it is getting a bit too difficult to add features: so I thought the logical thing would be to break ...
1
vote
2answers
341 views

How to handle passing a DAO object with custom exceptions in java?

I have my multi module maven project with the following structure: + parent - pom.xml + model - persistents - dao - model stuff... - pom.xml + service - services - services ...
3
votes
1answer
189 views

Staging of artifacts in the build server?

Java artifacts are often staged through different "quality levels", named like alpha, beta, releaseCandidate, release etc. They enter the next stage if they have passed tests (automatic or manual ones)...
2
votes
1answer
204 views

How to test web service

I want to test my web service/web method not by using SOAP but with Junit or other framework. The first solution that I have founded is to create stub of my project and use a client to call this ...
1
vote
2answers
70 views

What is the name of the interface-implementation pattern applied to modularisation?

At work we have a project where we're pushing pieces of the monolith into modules. (A java project making smaller maven modules that we pull in via maven dependencies). The pattern we're using pushes ...
0
votes
0answers
130 views

Continuous integration - jar as part of an ear

In our company, we have large ear files to which developer groups contribute jars. This is a many-to-many relation, where each ear has 30-50 jars and some of the jars are within 10 or more ear files. ...
5
votes
1answer
114 views

Choosing between adding a maven dependency vs. copying the one class I need

My project can benefit from a bit of code from the Apache commons-math3 project. Specifically, my math heavy application would benefit from using the FastMath class which avoids using extremely ...
3
votes
0answers
79 views

Can integration tests be run asynchronously with Maven?

Because I work at a company with lots and lots of computers, I find it to be a little ironic that it takes half an hour to cut a release of the latest version of our software. The bottleneck seems ...
0
votes
2answers
471 views

How can I holistically manage a multi module multi repository application

I am writing an application that I've split into multiple jars including re-usable infrastructure libraries, each has their own versions (BOM managed) and git repositories. I'm doing this for a number ...
1
vote
1answer
67 views

How to share new features in a large multi module project [duplicate]

I have been working in large multi module projects over a period of time. One major issue I faced is, how to communicate to other teams of a new feature which they may be interested in. Consider this ...
1
vote
1answer
246 views

Should adding Maven dependencies be a separate git commit?

I implemented some CSV reading functionality to my Java program, for which I required adding a Maven dependency. Should changes to pom.xml be part of the commit for the CSV reading functionality, or ...
0
votes
0answers
471 views

Is it a good practice to build multiple web app war files from one source repo?

I have been asked to do the following: Take a project within a repo (repo has multiple projects inside) Build ant build script that will build two separate tomcat webapp war files. They are two web ...
4
votes
2answers
3k views

For which problems are dependency exclusions sensible solutions?

I've seen a few build tools in my career, and they've all had their quirks. I'm just now looking into Maven, and came across the idea of "dependency exclusions" for the first time. I honestly don't ...
2
votes
2answers
544 views

How to keep track of maven dependency updates in projects?

How do you keep track of maven dependency versions? Let's say you are using version 1.0.5 of an library. <dependency> <groupId>groupIdName</groupId> <artifactId>...
3
votes
1answer
3k views

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 ...
11
votes
1answer
24k views

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, ...
2
votes
1answer
3k views

Maven Build Lifecycle: validate

In the build lifecycle in maven, I encountered the validate phase described as validate the project is correct and all necessary information is available to complete a build 1. what are the check ...
4
votes
2answers
1k views

Organizing maven modules and spring profiles

I'm facing a design problem with Spring's profile and Maven multimodule project from which i'm building a product, as a web as application that can be customized for differents clients. For this i ...
3
votes
2answers
267 views

How to cope with very similar projects

At our company, we maintain three products, which are quite similar, in 2 Projects. All Java, using Maven for dependencies. These three products evolved out of another project, which is now a maven ...
0
votes
1answer
79 views

Is it possible to deploy a maven artifact straight to a webserver?

Say I have my project that looks like /src/main/java/... /src/main/resources/... /src/main/webapp pom.xml And I have this stored in my version control, Git/SVN etc. My artifact has a signature ...
0
votes
0answers
100 views

Do CI servers allow Maven to generate content outside target directory?

I'm maintaining a multi-module Maven project, I have a module that contains some tests, the tests run smoothly locally, but on the integration server they don't, and the logs shows only FileNotFound ...
1
vote
1answer
937 views

What is the difference between a 3rd party lib and a plugin

What is the difference between a 3rd party lib and a plugin? How do I choose what should be pushed to these repos? plugins-release-local = Your and 3rd party plugins (releases) plugins-snapshot-...
5
votes
0answers
589 views

How to monitor & record build (compile/test) time? [closed]

I work on a large-ish Java project. We are using maven as our build tool, and I use Intellij (14) as my IDE. Currently, if I build the whole project (c. 15 modules) it takes about 3 minutes. Due to ...
3
votes
1answer
1k views

How to retrieve the third-party library licenses

I am looking for a way to automatically collect all the third-party library licences that my project is using. Currently I am collecting by hand the licences on github. So far , I don't have a clear ...
3
votes
1answer
307 views

Conventions for revision control with Maven/Jenkins

For a software project I am working on, we have a 'dev => QA => production' methodology. That is, we create a release candidate (deployed to Artifactory), give it to QA (deploy to QA systems and a QA ...
19
votes
1answer
711 views

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

Sharing dependency configuration over multiple projects (Maven)

From a big SVN repository we want to switch to Maven/Gradle for handling dependencies so that programmers can work with a single project without checking out the whole thing. We are writing plugins ...
0
votes
1answer
159 views

Continuous Integration for different languages [closed]

So, I understand Continuous Integration in theory, and have used Beanstalk. However, I've been charged with creating the process at my current PHP shop. My hope was maybe PHPCI, since it looked ...
0
votes
3answers
142 views

Should jars that are only gonna be used in one project be deployed to Nexus server [closed]

I guess the title says it all. There is a debate at our firm, weather we should deploy internal jars, which are only going to be used in one specific project, to Nexus or is there any better solution? ...
12
votes
1answer
6k views

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....
4
votes
1answer
741 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 ...
7
votes
2answers
2k views

Should Maven generate JAXB java code or just use Java code from source control?

We're trying to plan how to mash together a build server for our shiny new Java backend. We use a lot of JAXB XSD code generation and I was getting into a heated argument with whoever cared that the ...
1
vote
1answer
186 views

Versioning Strategy for Service Interfaces JAR

I'm building a service oriented architecture composed (mostly) of Java-based services, each of which is a Maven project (in an individual repository) with two submodules: common, and server. The ...
2
votes
2answers
5k 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 ...
5
votes
2answers
1k 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 ...