Questions tagged [maven]
Maven is a build automation tool, the tag should be used in combination with programming language and programming environment tags.
31 questions
0 votes
1 answer
83 views
Unable to extract some properties from Maven settings.xml using either xmllint or xmlstarlet
I have a Maven settings file at ~/.m2/settings.xml. I need to write some scripting that extracts the username and password from one of the server entries. I've tried using both "xmllint" ...
0 votes
0 answers
91 views
Why are four Jenkins build nodes suddenly having fatal problems finding things on the PATH?
In our overall organization, we run Jenkins 2.303.1 onprem. We run thousands of builds a day. The project I work on uses one Jenkins master and a set of about ten build nodes. We build a few hundred ...
1 vote
0 answers
502 views
How to package a Maven Java application for Debian?
I am trying to package a Java application that is built with Maven. I created the debian/ folder with mh_make and I have been reading/watching the tutorials: https://wiki.debian.org/Java/Packaging/...
59 votes
4 answers
141k views
apt-get update failed to fetch debian amd64 packages while building dockerfile from maven:3.5.2-jdk-8
Dockerfile: FROM maven:3.5.2-jdk-8 RUN apt-get update && \ apt-get install -y python-dev python-pip RUN pip install awscli --upgrade Build Logs: Preparing build context archive… [========...
1 vote
0 answers
361 views
What is this Java error about for maven on Ubuntu: package org.apache.http.client does not exist import org.apache.http.client.ClientProtocolExcepti?
I am using Java and Maven Project on Ubuntu but I am getting following error upon building Java code on NetBeans IDE: package org.apache.http.client does not exist import org.apache.http.client....
0 votes
0 answers
1k views
Alpine Linux java No such file or directory
when trying to install nodejs from a tar.gz and java, maven with sdkman on an alpine linux distro and running java or maven I get a message saying for java: /root/.sdkman/candidates/java/current/bin/...
0 votes
1 answer
991 views
Which shell command returns Java's home path?
I'm aware of the which command but when I run it on Java, I get the following path: $ which java /bin/java What I'm looking for, I think, is the Java path I get when I run the following Maven command:...
1 vote
1 answer
18k views
JAVA_HOME should point to a JDK not a JRE
If anyone can help me with this, it would mean a lot as I've seen similarly answered questions for windows but not many or Linux. I am running I am running Linux mint 20.2 (Uma). I have a problem ...
0 votes
1 answer
661 views
CentOS 8 not seeing latest Maven package on repository
I'm using centos 8.3.2011 and after "yum install maven" I get maven-3.5.4-5.module_el8.0.0+39+6a9b6e22.noarch I'm trying to update on the latest version, but "yum update" is not ...
1 vote
2 answers
7k views
libc6 Error while installing or upgrading with apt
I am currently using the following version of ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic On this machine I am trying to remove an existing maven plugin using sudo ...
3 votes
1 answer
33k views
How can I set DOCKER_HOST environment variable?
docker is installed and the service is active. But when I run a Maven build I get the error: [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.27.2:stop (stop-staled) on project egisso-...
6 votes
2 answers
7k views
Tool for manipulating YAML files?
We want to implement a workflow that includes having YAML configuration files where we wish to change some of the contents before actually using them, and we are looking for a good command line tool ...
1 vote
1 answer
1k views
Maven application runs alone but not with systemd
I am trying to run Sphinx4-Http-server on RHEL. If I am in the directory /home/alex/Sphinx4-HTTP-server and run the command /home/alex/apache-maven-3.6.1/bin/mvn exec:java -Dexec.mainClass="org.jitsi....
2 votes
1 answer
3k views
Transaction check error while installing maven on Centos7
I'm trying to install maven on Centos 7: [root@htm-psycho-401 htmpp]# yum install maven Loaded plugins: auto-update-debuginfo, fastestmirror Loading mirror speeds from cached hostfile * base: mirror....
-2 votes
1 answer
92 views
how to get lines which has a string in the form of groupid:artifactid:version from maven build output? [closed]
I want only list of plugins from the output of mvn -B dependency:resolve-plugins maven build out has many other things like Downloading , build success and many more lines which don't have plugin ...