Questions tagged [maven]

Maven is a build automation tool, the tag should be used in combination with programming language and programming environment tags.

Maven - build automation tool used primarily for Java projects. Maven projects are configured using a Project Object Model, which is stored in a pom.xml-file. Most of Maven's functionality is in plugins.

30 questions
36
votes
4 answers

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… [==================================================>]3380/3380…
Nikhil Menghrajani
  • 473
  • 1
  • 2
  • 5
5
votes
1 answer

Getting "Could not create local repository" error when building Debian package

I am trying to build a debian package against Debian stretch. The debian/rules file is this: #!/usr/bin/make -f %: dh $@ override_dh_auto_build: mvn clean package When I build it using pbuilder-buildpackage I get this build…
rlandster
  • 723
  • 1
  • 8
  • 22
4
votes
2 answers

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 to do this. This can be as simple as setting a…
3
votes
1 answer

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-db: Execution stop-staled of goal…
ka3ak
  • 1,235
  • 4
  • 18
  • 30
3
votes
0 answers

How to configure maven plugin from command line?

I'm trying to configure JaCoCo maven plugin from command line insted of using pom.xml. I have managed to execute prepare-agent so far with command: mvn -X -Djacoco.destFile=./coverage/jacoco.exec clean org.jacoco:jacoco-maven-plugin:prepare-agent…
widget
  • 71
  • 1
  • 1
  • 5
2
votes
1 answer

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.reconn.ru * epel: fedora-mirror01.rbc.ru *…
stiv
  • 1,451
  • 5
  • 22
  • 32
2
votes
2 answers

Unable to locate the Javac Compiler in.ZKUI

I want install zkui on centos 7.1, But I have this error. [root@server-1 zkui]# mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building zkui…
pyramid13
  • 609
  • 6
  • 16
  • 31
2
votes
2 answers

What is the meaning of local[4] in this example

I am looking at this example from the apache spark documentation. It seems to pass a variable called local[4] into the --master variable. I have not seen that before. What does it mean? I am using bash on OS X. Is there a "local" array? Is it a…
bernie2436
  • 6,505
  • 22
  • 58
  • 69
1
vote
0 answers

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…
Slav
  • 11
  • 2
1
vote
0 answers

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.ClientProtocolException; I have following on my…
P_Z
  • 11
  • 2
1
vote
2 answers

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 apt-get autoremove maven I am getting the…
1
vote
1 answer

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.sphinx4http.server.HttpServer", then the server…
alexwho314
  • 25
  • 5
1
vote
1 answer

How to disable stopping a bash script from executing after calling some command?

I am trying to create a bash script to deploy an application. Prior to deploying, the application must be built using maven. The problem is, once the maven build finishes, the next command is never called. It seems like maven issues some signal to…
Andy
  • 121
  • 4
1
vote
0 answers

Unable to run mvn clean install on macOS Sierra 10.12.6

I am using maven-3.1.1 along with eclipse neon for RCP and jdk-7. I am running into the following issue - Error with Maven command: mvn clean install Problem running the Maven command because the process is 'null'. Is Maven installed correctly and…
linuxNoob
  • 113
  • 5
1
vote
1 answer

How to set global variable visible even for sudo commands?

I have installed Maven on Ubuntu 16.04 following instructions. I edited /etc/environmentand added path to maven/bin folder to $PATH variable. Under my normal user everything works just fine, but when I try to run e.g. sudo mvn test it tells me that…
lot
  • 113
  • 3
1
2