Questions tagged [maven]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Recover maven central publishing rights

I believe I created a Sonatype.org account some years ago, back before it went from .org to .com. Their modern site doesn't seem to recognize me. (Password reset does nothing.) So I created a new ...
Joseph Larson's user avatar
0 votes
0 answers
15 views

In Gradle, how can I determine what dependency is accessing an external Maven repo?

I implemented an internal Nexus server to cache our build artifacts. In one of my Java modules, I removed all the references to external repos and replaced them with our internal repo in its build....
Chris F's user avatar
  • 411
0 votes
1 answer
633 views

Gitea/GitHub Actions maven deploy causing 401 unauthorized

I'm new to CI/CD, Gitea/GitHub, Docker and Maven. I've setup a self-hosted Gitea server and Runner. Before migrating all my projects, I'm testing CI/CD. For this purpose I've made test projects and ...
Alexandre Lavoie's user avatar
0 votes
0 answers
9 views

How to install a project into the file system with Maven

I have a Maven project using the NAR Maven plugin to compile and link a C project. This works, but I can't seem to work out how to actually install and run the resulting project. The maven steps of &...
Ayjay's user avatar
  • 101
0 votes
1 answer
287 views

Deploy A War/Ear To Container Marked build As failure When Deploying To Tomcat 9 Server

When I was Deploying A Sample Application On Tomcat9 I Faced This Issue. This is the Tomact9 Users File where I added credentials do I need to add anything more, Is There Any Configuration Which I ...
Prathamesh Shukla's user avatar
0 votes
1 answer
35 views

How come Maven's validate and verify phases execute without goals bound to them?

Maven's documentation states the following: "If a build phase has no goals bound to it, that build phase will not execute" However, according to the same documentation, the validate and ...
Omar Shazly's user avatar
3 votes
1 answer
1k views

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 ...
jerry383's user avatar
3 votes
2 answers
5k views

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: ...
danilo's user avatar
  • 141
1 vote
1 answer
920 views

Make TeamCity see test results in real time using Maven, JUnit 4 and Surefire

So we have a TeamCity with numerous JUnit 4 test suites builds configured. The problem: Tests tab is only populated after build is complete. If build crashes, tests tab is not populated, even with ...
alamar's user avatar
  • 121
1 vote
1 answer
1k views

Unable to deploy webapp with `mvn tomcat7:deploy`: 401 Unauthorized

I'm trying to auto-deploy my webapps to tomcat using Maven plugin tomcat7-maven-plugin. I took the following three steps: Added a new user with deployment rights to tomcat, Introduced the mentioned ...
Hedayat Mahdipour's user avatar
0 votes
1 answer
22 views

How to build Java project on existing virtual machine in Azure?

In my project we are using Azure DevOps in which we have a pipeline which pulls code from code repository downloads Ubuntu container installs Maven downloads all the dependencies then tries to build ...
Shekhar's user avatar
  • 101
2 votes
1 answer
3k views

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/...
Anton Patsev's user avatar
0 votes
1 answer
2k views

Maven dependencies that are downloaded not available in JFrog Artifactory server

I have the following repositories structure created in my newly installed Artifactory instance. And we are using this artifactory instance to store the Maven artifacts. Most of our projects are in ...
Vivek's user avatar
  • 5
1 vote
1 answer
437 views

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:- <plugin> <groupId>com.spotify</groupId> <...
user2829093's user avatar
0 votes
1 answer
220 views

M2 Repo contents is not available in artifactory server

We have recently installed artifactory OSS 6.2.0 and then created the following repositories (with Package Type - Maven). Local - wellows Remote - wellows-remote Virtual - wellows-virtual And in ...
Vivek's user avatar
  • 5
1 vote
1 answer
18k views

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 ...
Sparsh Dixit's user avatar
1 vote
2 answers
7k views

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 ...
NarendraR's user avatar
  • 233
1 vote
1 answer
77 views

How to use remote Ivy artefacts in Maven jobs with different binary repository managers?

Consider the following situation: Alice ----- { Firewall } Bob | | Artifactory / Ivy repos - --- --- Nexus / Maven Repos That is, Alice uses ...
Ta Mu's user avatar
  • 6,772
4 votes
1 answer
1k views

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 ...
luizfzs's user avatar
  • 141
4 votes
3 answers
1k views

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 ...
eerriicc's user avatar
  • 141
4 votes
3 answers
13k views

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's user avatar
  • 153
3 votes
4 answers
2k views

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"...
Morty's user avatar
  • 131
2 votes
1 answer
623 views

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/[...
maple_shaft's user avatar
3 votes
2 answers
3k views

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, ...
Gaurav Parashar's user avatar
3 votes
1 answer
2k views

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. ...
NarendraR's user avatar
  • 233
2 votes
1 answer
8k views

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 ...
Bambara's user avatar
  • 123
1 vote
1 answer
3k views

How to generate a Maven.pom file (not pom.xml)?

This seems not so easy to google because results about the normal pom.xml are overwhelming. So, I just have learned there are also Maven artefact related files with .pom extension. This seems to be ...
Ta Mu's user avatar
  • 6,772
5 votes
2 answers
480 views

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 ...
Zeinab Abbasimazar's user avatar
0 votes
1 answer
37 views

Different execution contexts for same POM - use properties files?

Imagine that a Maven POM configures a set of integration tests for web apps (could be a functional test as well). in developer context, you would clearly use Chrome and configure that accordingly in ...
Ta Mu's user avatar
  • 6,772
1 vote
2 answers
242 views

How to automate control of synchronization between Maven artefact version and Git tag?

Given the following situation: in a POM file in the repo root (Atlassian BitBucket) I can define that this POM has e.g. the version 0.0.1-SNAPSHOT then I can tag the codebase whatever I want like v.0....
Ta Mu's user avatar
  • 6,772