Questions tagged [maven-3]
Apache Maven is a build automation tool used primarily for Java projects. Use this tag for questions about installing and configuring Maven and Maven plugins in Ubuntu. Questions about programming are off topic and should be asked at http://stackoverflow.com/.
62
questions
0
votes
1
answer
209
views
Pain with Maven and Java env variables
So I installed Java following this guide as I did many times, and set $JAVA_HOME in /etc/environment, java -version works fine.
After that I'm following this guide as I did many times and install ...
0
votes
0
answers
449
views
installation of UGS(LINUX) for my CNC Plotter
Trying installing Universal-G-Code-Sender-master.zip contents. And when I try running ./run_platform command from console, I get the error message in last stages of installtionas under. Unable to ...
0
votes
1
answer
308
views
How to set PATH, HOME, JAVA_HOME variables correctly for working with maven after Java-JDK installations?
I visited the webpage at https://help.ubuntu.com/community/EnvironmentVariables and find out about setting environment variables and local user variables and have got a pretty clear picture. But I am ...
0
votes
2
answers
2k
views
Cannot update maven on Ubuntu 20.04
I'm not able to update maven to the latest version, which as of time of writing is 3.8.6:
$ mvn --version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 17.0.5, vendor: Private Build, ...
0
votes
1
answer
271
views
Cannot create a new project in NetBeans
I installed OpenJDK, Maven and NetBeans, but when I try to create a new Java project with Maven I get an error that says that cannot enable Spring Beans. This is the full error message.
-1
votes
2
answers
765
views
/tmp: Scheme missing, same error even when I create a "tmp" folder. What exactly is the problem and how do I fix this?
so i am trying install maven following the steps on this website for "Step 2: Download and Install Maven": https://phoenixnap.com/kb/install-maven-on-ubuntu
and i get the following error: /...
-1
votes
2
answers
152
views
Error found when loading /etc/profile.d/maven.sh: line 1 when starting laptop
when i start my laptop, i get the following error message:
Error found when loading /etc/profile.d/maven.sh: line 1:[200~export: command not found
Screenshot of the Error
Can someone please provide me ...
0
votes
0
answers
220
views
DigitalOcean Ubuntu Droplet Maven Installation
I have a DigitalOcean droplet that runs Ubuntu 20.04. I want to install maven on my system but I need different configurations for each user so I just wanted to download binaries and set it up ...
-1
votes
1
answer
760
views
settings.xml for maven 3.8.1
I switched from Netbeans to Eclipse IDE for Java applications and remote debugging. The Maven project wizard generated a java project with the pom.xml and build.xml.
<?xml version="1.0" ...
11
votes
4
answers
17k
views
When compiling a project, Maven throws an error
OS Linux - Ubuntu 20.04.2 LTS
When compiling a project, Maven throws an error
[ERROR] Error executing Maven.
[ERROR] java.lang.IllegalStateException: Unable to load cache item
[ERROR] Caused by: ...
1
vote
2
answers
3k
views
Update info - how to currently set Java_home?
I'am trying to get Maven running. I have installed JDK and Maven.
Thus I have been trying to set the Java_home variable for three days now, I cannot get it working.
I have followed the instructions of ...
0
votes
1
answer
5k
views
java.lang.NoClassDefFoundError: javafx/application/Platform despite JavaFx added as Maven dependency
My application is not a JavaFx application but is using some JavaFx librairies (JavaFx Media).
The following code is running fine under Windows. But not Ubuntu:
static void initJavaFx() {
try {
...
0
votes
1
answer
1k
views
Ubuntu 20.04 + Jenkins - access denied and directory does not exists
I have VSP with Ubuntu 20.04 and Jenkins installed on it. Also have a Java Maven test project which should run as Jenkins job. Few hours ago everything worked well. Then I added one new feature to the ...
1
vote
1
answer
707
views
Dockerfile in .gitlab-ci getting stuck on maven downloading dependencies
Ubuntu 20.04 LTS
this is my extremely simple Dockerfile:
FROM maven:3.6.3-jdk-11 as build
COPY src/ /usr/src/myapp/src
COPY pom.xml /usr/src/myapp
RUN mvn -X -f /usr/src/myapp/pom.xml package
FROM ...
0
votes
0
answers
2k
views
No plugin found for prefix 'archetype' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] - Netbeans
I was trying to make new Web Application project using Maven in Netbeans IDE 8.2 but the project creation keeps failing with error:
-DarchetypeGroupId=org.codehaus.mojo.archetypes -...
0
votes
1
answer
2k
views
Maven install :update-alternatives: error
While installing maven in Ubuntu 18.04 in with command
sudo apt install maven
i am getting error like
update-alternatives: error: alternative link /usr/bin/mvn is already managed by maven
dpkg: error ...
0
votes
1
answer
864
views
Ubuntu 20.04 LTS + Maven 3 + Java 11
I have a fresh new Ubuntu 20.04 LTS installed on my machine.
I also installed Maven (Apache Maven 3.6.3) and Java (openjdk version "11.0.7" 2020-04-14)
If I download now for testing the Spring Boot ...
4
votes
0
answers
6k
views
Upgraded Java - Maven won't compile invalid target release: 11
I've recently upgraded Java from 1.8 to 11.
mvn -version
Maven home: /usr/share/maven
Java version: 11.0.4, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_NZ, ...
0
votes
0
answers
503
views
Java path setting in the ubuntu 18.04
I have tried to set java path many times by choosing all the combination of paths (among many other combinations too).
Ex :
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Please help me to set ...
0
votes
0
answers
9k
views
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project checkstyle
when i run mvn clean install, i get the error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project checkstyle: Failed to clean project: ...
1
vote
2
answers
4k
views
Problem in installing maven ('/usr/bin' is not included in the PATH environment variable)
When I install maven 3.5.4 in my Linux platform I face this error:
$ sudo export PATH=/usr/local/apache-maven-3.5.4/bin
Command 'sudo' is available in '/usr/bin/sudo'
The command could not be located ...
0
votes
3
answers
60k
views
How to set Maven home PATH on Ubuntu as User
I am new to Ubuntu and Maven. Recently I installed Maven in my system as user and the installation went perfectly, but I can't set path environment variable permanently. I also referred to the ...
0
votes
1
answer
1k
views
Default Java not detected by Maven as installed
I have an Ubuntu installation with Oracle JDK 1.8.0_141 that was installed using this guide.
tar file was extracted to /opt/jdk and below commands used to set java as default.
update-alternatives --...
2
votes
1
answer
723
views
When I redirect Maven commands, the file looks wrongly encoded
When I run a Maven command, it's normal in the terminal. But there is a problem when I redirect the output to a file like this:
mvn install > file.log
When I open the file, I see:
[[1;34mINFO[m] ...
2
votes
0
answers
99
views
Performance issue with fresh install MySQL 5.616-1~exp1 (Ubuntu) on Ubuntu 16.04 LTS
I've recently started on a new company and I'm currently setting my dev environment.
We're using Ubuntu 16.04 and MySQL 5.6
Everything was right until I launched the tests (using mvn test). After ...
0
votes
1
answer
517
views
how can I build a snap for JAVA maven?
I have a maven application where I need to make a snap for it
I knew that I need to add this piece in the snapcraft.yaml
parts:
webapp:
plugin: maven
source: [add the source ...
0
votes
2
answers
274
views
Can't install Eclipse IDE for Java, is there any better suggestion for Java IDE in 16.10?
Is there any Java IDE with Maven support on Ubuntu 16.10?
-2
votes
1
answer
2k
views
Is Ubuntu good for Java development? [closed]
I am going to develop an eCommerce site using Spring, JDK, Maven, jQuery, JavaScript, servlets, JSP and HTML.
Is Ubuntu good for developing a project like this? If I face any issue related to this ...
1
vote
1
answer
133
views
How do I use a different maven version for a snapcraft build?
My application https://github.com/elexis/elexis-3-core needs maven 3.0.5 to build correctly, whereas snapcraft uses the 3.3.9 as provided by Ubuntu 16.04.
Is there any way on howto require a ...
7
votes
1
answer
14k
views
apt-get install "maven" or "maven3"
I need some clarification on how to install the latest version of maven. When I run this command on a new Ubuntu 16.04 server machine (I haven't installed maven yet) I get the following message:
...
1
vote
1
answer
18k
views
Maven environment variable not working on other terminal
When I run echo $PATH and echo $JAVA_HOME command as a normal user, I get jdk path variables set. But when I run as a root user, the variables are not set there.
I copied maven binary folder to /opt ...
2
votes
1
answer
21k
views
mvn package error: unknown host repo.maven.apache.org
I'm using intelliJ IDEA 14.1.4 and when
mvn package
is entered I get this message
[INFO] Scanning for projects...
[INFO]
[...
1
vote
1
answer
8k
views
mvn --version says permission denied
I have extracted the maven binary files to my home directory i.e /home/pranish then ran the following commands to install maven environment variables:
export M2_HOME=/home/pranish/apache-maven-3.3.3
...
-1
votes
1
answer
3k
views
Problem with Maven execution after installation
when i run mvn -v i get the below error:
bash: /usr/local/apache-maven/apache-maven-3.3.1/bin/mvn: No such file or directory
At /usr/local/ there was a apache-maven directory and i deleted it. And ...
2
votes
1
answer
4k
views
How to configure environment variables in Ubuntu? [duplicate]
My environment variables are correct? What is the correct way to use them in Ubuntu? I put them at the end of .bashrc file or edit the end of /etc/environment to able to use the $JAVA_HOME and $...
0
votes
2
answers
14k
views
The program can be found in the following packages
When i write mvn command in Terminal i get this message:
The program 'mvn' can be found in the following packages:
* maven
* maven2
Try: sudo apt-get install <selected package>
I also get ...
2
votes
1
answer
14k
views
mvn --version -Dmaven.multiModuleProjectDirectory system propery is not set
I have downloaded and installed maven3.3.3. on uBuntu 14.04 and when I run the command
mvn --version
I get this error
-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME `...
3
votes
1
answer
5k
views
Maven: JAVA_HOME is not defined correctly
I've installed and configured Maven and Java. I can successfully run
mvn spring-boot:run
But when I run
sudo mvn spring-boot:run
I am getting Maven: JAVA_HOME is not defined correctly
When I do
$...
2
votes
1
answer
423
views
Big size difference between apt-get install and binary file of apache Maven
I am installing Apache Maven onto my Ubuntu 12.04; and sudo apt-get install maven gives me 229 MB of file to download. On the other hand, going to Apache Maven site, I can download a 7 MB file. What ...
0
votes
1
answer
2k
views
Install Eclipse Marketplace - which Maven plugin for my configuration?
I've had some struggles getting Java, Eclipse and Maven to work properly on my configuration.
environment:
Ubuntu 12.04
Java 8
Eclipse Indigo 3.7
Maven 3.0
Task: Install Maven plug in through ...
2
votes
1
answer
6k
views
What version of "mysql-connector-java" to include in pom.xml for ubuntu 14.04
The mysql server version installed is 5.5.38 as verified by
sanchit@sanchit-3560:/$ mysql --version
mysql Ver 14.14 Distrib 5.5.38, for debian-linux-gnu (x86_64) using readline 6.3
But in the ...
4
votes
3
answers
67k
views
Unable to remove maven using 'sudo apt-get remove maven2'
I want to upgrade to a newer version of maven. For that I first want to remove the existing version of maven in the computer as told here. I tried:
sudo apt-get remove maven2
but it says:
$ sudo apt-...
1
vote
1
answer
12k
views
Maven only invokable from terminal while root
I'm following the directions laid out here:
http://java.dzone.com/articles/installing-maven-304-ubuntu
Everything is in the right place and the sym link is working correctly.
However whenever I try ...
1
vote
1
answer
103
views
juju charm failed in local lxc
So I want to run my web application in the local lxc provider using juju.my web application is maven build application. So I create my charm and try to run it locally. In hooks I have installed java ...
7
votes
3
answers
30k
views
How to install previous version of Maven (3.0.4)?
The way my Maven packages are configured, something breaks when I have the latest version installed (I think 3.4). On another computer, where I have 3.0.4, the build runs fine. I am looking for a ...
2
votes
1
answer
2k
views
Why doesn't ps -al display my java programs?
I don't understand why ps -al or sudo ps -al won't display for instance my java processes. If I do ps -al then I don't see for example my java jobs but I see them when I do the (strange and ...
64
votes
9
answers
177k
views
How to update maven 3.0.4 - 3.1.1
First of all am new to Ubuntu as well as Maven. Does anyone know how to update maven. My current version of maven is 3.0.4. I would like to update it to 3.1.1 which is the latest version. I tried
...
2
votes
3
answers
3k
views
Help identify confusing way Maven is running with no M2_HOME?
I am running Ubuntu 12.04 and am a Java developer who has recently moved off his desktop and started working on a new laptop. I have a few build issues and am investigating my install of Maven.
I got ...
0
votes
1
answer
454
views
How do I install the Jetspeed Maven plugin if .m2 file is read-only?
I am currently trying to go through the Jetspeed portal tutorial. However, once I made it to the "Configure Maven Build" section, I ran into a problem.
The tutorial asks that in order to setup the ...
3
votes
3
answers
34k
views
Error: JAVA_HOME is not defined correctly - after maven installation
I installed Java JDK on Ubuntu 12.04 and added Java home to my path at ~/.bashrc:
export PATH=/opt/jdk1.7.0_40/jdk1.7.0_40/bin:$PATH
This looks a little bit strange but it's really my path.
After ...