Questions tagged [maven]

For question about the use of Apache Maven, a build automation tool mostly used for Java projects, in a DevOps setting.

27 questions
5
votes
2 answers

Make use of CIs as Maven Repository in order to use it for building Docker images without including dependencies

I am trying to make images from our company Maven based applications. These apps are using some libraries which are included in a Maven repository, but fills a lot of disk space. They also have some dependencies which should be downloaded. I have…
4
votes
1 answer

When to get rid of '-SNAPSHOT'

I'm working on a Git workflow (not git-flow) for a Java project that uses Maven and Artifactory for artifact storage. On develop and feature/* branches the version number contains '-SNAPSHOT'. It is not desirable to have release/* or master branches…
luizfzs
  • 141
  • 4
4
votes
3 answers

What is the Maven versioning strategy for Continuous Delivery or Deployment?

At the moment, we're doing "traditional" deployment, where every couple of weeks, we roll a release. We rely on Semantic Versioning, which has worked well for us. However, we now want to release faster, using Jenkins Pipelines etc, but I'm not sure…
eerriicc
  • 141
  • 2
4
votes
3 answers

Directory structure - how do I upload it as-is to an artifactory?

I am new to Artifactory, and I wonder how to upload a directory structure containing many different binaries -- keeping the structure intact -- to an artifactory?
user_9090
  • 153
  • 1
  • 1
  • 5
4
votes
4 answers

Does building a Docker image require the Docker daemon to be running?

I am trying to get my feet wet with Docker/containers. I started with this tutorial: Getting Started · Spring Boot with Docker It works fine, but I was surprised it is necessary to have the "dockerd" daemon running to build an image. It connects to…
Morty
  • 141
  • 1
  • 3
3
votes
2 answers

Can Ansible alone be a complete CI-CD tool?

I am new to Ansible and was wondering about the capabilities of Ansible. Can Ansible alone be a complete CI-CD tool? Scenario that needs to be implemented: As soon as a developer perform a git commit, the build should be generated and placed some…
3
votes
1 answer

Is it possible to run every testing.xml file with different jenkins job?

I've around 100 test method in my testing.xml file. and that testing.xml configured in pom.xml file so I'm able to run my all those testcase as maven test and I'm getting the proper reports and all. I have created one Jenkins job and configured…
NarendraR
  • 233
  • 1
  • 4
  • 14
3
votes
1 answer

Why do companies use JFrog Artifactory or other repositories instead of Maven central repository?

I have usually seen that when someone uses Maven on a company network to download dependencies, then user is redirected to the JFrog Artifactory or any other, instead of downloading dependencies from official Maven Central Repository. What's the…
3
votes
2 answers

Using cached dependencies for pipelines in Azure Devops

I want to avoid maven downloading all dependencies from a remote repository in all build I configured a cache, but all executions still download all dependencies. azure-pipelines.yml trigger: - master pool: vmImage:…
danilo
  • 141
  • 1
  • 5
2
votes
1 answer

How to run a build from a specific old tag in gitlab ci?

I can build from a specific old tag in teamity. Screenshot: How to run a build from a specific old tag in gitlab ci? variables: MAVEN_OPTS: "-Djava.awt.headless=true -Dmaven.repo.local=.m2/repository" MAVEN_CLI_OPTS: "-s maven_settings.xml…
Anton Patsev
  • 123
  • 1
  • 3
2
votes
1 answer

Jenkins Artifactory Integration - Custom Maven plugin creating dynamic version/build

I am currently working on a custom Maven plugin that generates a build artifact in the form of a zip file with a dynamic version or build number. The format of the file is something like target/[artifactId]_[version or build].zip Where [version or…
maple_shaft
  • 131
  • 5
2
votes
1 answer

What is the best way to share maven repository using Docker build (dynamic) image with maven?

We have created a Docker build container to be run by Jenkins for Java based projects. We are using Maven for building our software. The problem we are facing is that, the builds are taking way to long to finish and the main reason for that is that…
Bambara
  • 123
  • 1
  • 3
1
vote
1 answer

Docker machine connection with https

I am new to Docker. I installed Docker tool box on my Windows machine. Using pom.xml I want to generate docker image . pom.xml:- com.spotify docker-maven-plugin
1
vote
1 answer

Deploy war/ear to a container' marked build as failure

I have Jenkins installed in my system, on which the following are installed: Maven Integration Plugin Deploy to Container Plugin Ant Plugin Copy Artifact Plugin GitHub plugin GitHub Branch Source Plugin .. and possibly a few others I cannot…
Sparsh Dixit
  • 11
  • 1
  • 1
  • 2
1
vote
2 answers

Jenkins executes Selenium test in headless mode while use `Jenkins as Service`

I have recently installed the Jenkins on Windows 10 Machine (Jenkins as Service) and configured one Maven Project (Selenium project which open chrome browser and executes some testcase). If i build the same, all my testcase gets execute in Chrome…
NarendraR
  • 233
  • 1
  • 4
  • 14
1
2