Skip to main content

Questions tagged [maven]

Apache Maven is a software project management and comprehension tool.

Filter by
Sorted by
Tagged with
30 votes
2 answers
25k views

Can intellij be set to automatically "Download Sources and Documentation"

I seem to have to maunally click "Download Sources and Documentation" after each clean install, is there a way to get this to happen by default?
robmcm's user avatar
  • 403
26 votes
4 answers
42k views

How do I install Maven 3?

I am using Ubuntu and need to upgrade to Maven 3 from Maven 2. Can someone please help me install Maven 3?
Ashish Agarwal's user avatar
11 votes
1 answer
12k views

How to do Maven install or deploy only, without re-package/re-test?

Sometimes I wanted to deploy, but I typed mvn package. Sometimes I want to deploy to another alternative repository (using mvn deploy -DaltDeploymentRepository=...), immediately after the default ...
Lenik's user avatar
  • 18.4k
8 votes
3 answers
13k views

BASH on Ubuntu on Windows (AKA Linux Subsystem for Windows) 10 - How do I set my PATH?

Thanks to the Anniversary Update, I now have BASH on Ubuntu on Windows 10. Previously, I used Cygwin, and had set up Maven in Cygwin, (and got it fully working), which largely consisted of installing ...
Cody S's user avatar
  • 2,514
7 votes
2 answers
994 views

Maven - ignore ANSI color escaping chars in grep search

I find that sometimes, ANSI escaping chars in mvn output prevents me to do this search with grep: mvn | grep -P "\[INFO\]" I have to use "\[.*INFO.*\]" to get results. How to ...
WesternGun's user avatar
7 votes
1 answer
4k views

What does "delete all disabled modules" do in Jenkins?

In Jenkins, I have the option to "delete all disabled modules" on main page of some projects. What does that do? Edit: What is a "disabled module"? Jenkins doesn't have modules, it has projects and ...
Aaron Digulla's user avatar
7 votes
1 answer
7k views

Exclude WSL 2 VM from Windows Defender

I'm trying to exclude my Ubuntu VM in WSL 2 running in an up to date Windows 11 Pro installation. The problem is that my local build is terribly slow when Windows Defender is active. Setup is as ...
Burfi's user avatar
  • 81
6 votes
1 answer
14k views

Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set

When I try to create my project's Javadoc in IntelliJ IDEA using Maven, the following error appears: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:javadoc (...
dargmuesli's user avatar
4 votes
2 answers
9k views

I cannot remove 'target' folder on Windows 7 generated by Maven

I am getting a strange error since I compiled, cleaned and recompiled a project with Maven 3.1.1 using Windows 7. Basically the 'target' folder generated is no more "removable" and it looks like has ...
Randomize's user avatar
  • 543
4 votes
3 answers
20k views

" maven -version" command is not recognized in Git Bash

I am trying to run commands like maven -version,mvn clean install but get the following error: $ maven -version bash: maven: command not found I have all the necessary Environment variables and ...
Anit Mohanty's user avatar
3 votes
1 answer
16k views

How to run single Maven test case in Jenkins

In Jenkins my job is of type "Build a maven2/3 project" and project name is "SeleniumProject" and project source is "SVN" contains around 40 test cases. When I build this, it runs all test cases and 3 ...
Subbarao Gaddam's user avatar
3 votes
1 answer
5k views

Maven CLI does not recognize JAVA_HOME as correctly configured

This is the output even though it correctly points to the JDK C:\Users\{usr}>mvn -version The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run ...
SwiftBlade95's user avatar
2 votes
1 answer
11k views

How to update maven version on ubuntu machine?

I am working on Ubuntu linux machine. When I open a terminal window and type : mvn -v I got the output: Apache Maven 2.2.1 (rdebian-1) Java version: 1.6.0_26 Java home: /usr/lib/jvm/java-6-sun-1.6....
Leem's user avatar
  • 513
2 votes
1 answer
6k views

How to specify ANDROID_HOME path for Maven under IntelliJ

I'm very new to Maven, and on top of that I'm forced to use the IntelliJ which is new environment as well for me. While building project with the Maven in IntelliJ 12.0.3 I'm getting compilation ...
Patrick's user avatar
  • 165
2 votes
1 answer
251 views

Does Nexus Repository OSS 3.x has site repository?

I just compared two OSS versions(2.x, 3.x) of Nexus Repository. I found 2.x has site repository. Does 3.x also has repository for Maven site?
Jin Kwon's user avatar
  • 336
2 votes
1 answer
2k views

How to configure maven to use -source 5 or higher to enable annotations?

I need to install a project into my local repository. During mvn install I'm getting compilation error. > [INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ > ...
Patrick's user avatar
  • 165
2 votes
2 answers
360 views

How to resume maven downloads

I have a very slow connection, I would like to resume the downloads. Till now I don't have any idea how to do it in the settings, I've searched on oogle for a while and nothing. Just found another ...
abcd's user avatar
  • 21
2 votes
1 answer
5k views

"Unable to add module to the current project as it is not of packaging type 'pom'" - How to load a given Maven project into VSCode/VSCodium?

Since there are no stupid questions, I dare to ask this stupid question. As a beginner at 0, I do not see how to make the step 0, that is, how to stand at the starting point at all. I stumbled upon a ...
questionto42's user avatar
  • 2,431
2 votes
1 answer
2k views

Run artifact (.jar) in Eclipse after Maven build success

I'm working on a Maven project, and after resolving many configuration problems, finally I am able to build the project successfully in Eclipse. After selecting maven install and seeing build success, ...
Tina J's user avatar
  • 539
2 votes
1 answer
4k views

How to fix java.lang.ClassNotFoundException: javax.xml.bind.JAXBException when using Apache Archiva 2.2.1?

When I unpack Apache Archiva 2.2.1 standalone version and start it with sudo -u archiva env JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 JDK_HOME=/usr/lib/jvm/java-8-openjdk-amd64 JRE_HOME=/usr/lib/jvm/...
Kalle Richter's user avatar
2 votes
0 answers
616 views

Why mvn effective pom contains dependencies that are not in mvn dependency tree

In a maven project, in order to locate where a maven dependency is imported, I used mvn dependency tree, however, I cannot find this jar in its output. From mvn effective-pom output, I can see this ...
Tiina's user avatar
  • 3,207
2 votes
1 answer
987 views

How much diskspace will a complete download of Maven Central Repository consume?

This is good info: https://search.maven.org/stats but not enough. Assume I download the complete Maven Central Repository, how much diskspace will it consume ?
user19496's user avatar
  • 1,510
2 votes
0 answers
5k views

maven doesn't find existing snapshot artifact on Nexus

Unfortunately I can't identify what caused this, but after updating my projects, one of the dependencies is not found anymore in the main project. I have no idea why only this causes trouble and none ...
WallaceNC's user avatar
2 votes
3 answers
3k views

Intellij - Previously running maven install process started to give error

I can run "mvn install" it builds the project successfully. And I can build it with "Preferences | Build, Execution, Deployment | Build Tools | Maven | Runner | 'Delegate IDE build/run actions to ...
M.Selman SEZGİN's user avatar
2 votes
0 answers
425 views

Change Intellij's maven archetype plugin version when creating a project

I am using IntelliJ IDEA 2017.1.5. I have also installed the maven 3.5.0 on my computer, because it supports maven-archetype-plugin 3.0.1. I need this version because older versions miss certain ...
coolcat007's user avatar
2 votes
2 answers
12k views

Apache Tomcat can't create log file and fails

I try to start Apache Maven at Win7 x64 SP1. java version "1.7.0_09" Java(TM) SE Runtime Environment (build 1.7.0_09-b05) Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode) Apache Tomcat ...
Maxim Kolesnikov's user avatar
1 vote
1 answer
2k views

Batch Maven build breaking cmd.exe?

I had a Windows .bat file with a script for compilation of a project I'm working on. The last command is a maven build. Since it takes a while to finish, I wanted to be notified when it does. I ...
Mr Redstoner's user avatar
1 vote
1 answer
1k views

Remove version information from maven generated war file

I am trying to automate the deployment of war files that are generated by our build server using maven. I need to be able to extract the project name from the war filename so I can rename the file ...
Daniele Torino's user avatar
1 vote
2 answers
1k views

How can install maven2 and maven3 and have them coexist on the same ubuntu host

I found that maven2 install is via apt-get and maven3 is manual, but i could not find any information on how i an install maven3 without uninstalling maven2
kamal's user avatar
  • 151
1 vote
1 answer
9k views

Cannot delete maven target folder in windows 8.1

I have used IntelliJ's maven plugin to build my project with mvn clean install. It fails on clean due to problems deleting certain folders within the target-directory. I had this error multiple times ...
Manticore's user avatar
  • 121
1 vote
1 answer
2k views

Maven on eclipse creates undeletable target folder

Its always a random Folder inside the target that is not only undeletable but also not accessible. When i try to access it with the explorer it says "access denied". It is also not possible to grant ...
kroax's user avatar
  • 21
1 vote
1 answer
1k views

How to save settings in IntelliJ IDEA?

A couple of months ago I installed IntelliJ IDEA on my Windows 7 development computer. I also installed Maven. Unfortunately I provided IntelliJ with the wrong path to Maven. Now it seems to be ...
Hauns TM's user avatar
  • 291
1 vote
1 answer
14k views

How can I stop maven from downloading transitive dependencies?

I have a Maven call that downloads artifacts for the purpose of running integration tests: mvn -Dmdep.useRepositoryLayout=true -Dmdep.copyPom=true -Dmdep.useBaseVersion=true dependency:copy-...
clacke's user avatar
  • 308
1 vote
2 answers
1k views

How to set Environmental Variable?

Please tell me how to set environment variables JAVA_HOME MAVEN_HOME TOMCAT_HOME PATH I installed Java via terminal apt-get command, Tomcat and Eclipse by downloading tar.gz files and extracting ...
djPriyan's user avatar
  • 111
1 vote
0 answers
5k views

Hibernate 5.4.3 Exception in thread "main" org.hibernate.internal.util.config.ConfigurationException

Ive looked into similar solutions and none worked for me. Hoping I could find some answers here... Using Eclipse JEE (JDK 12) These is the errorlist i get when i try to run my "main" method Aug ...
Bidderlyn's user avatar
1 vote
0 answers
558 views

mvn unsupported packaging type: pom

A college of me had several times the following problem with maven: mvn unsupported packaging type: pom Pom's are the base for maven, so I find this very strange. It can be solved by removing ...
Cecil's user avatar
  • 11
1 vote
0 answers
660 views

WIndows10 System environment path doesn't work after restart

I installed Maven and set MAVEN_HOME in system variables, and added it in PATH, as per instructions. Maven worked as intended from cmd. After restart, cmd did not recognize mvn command anymore. (I ...
H. Harper's user avatar
1 vote
0 answers
213 views

Netbeans will not compile maven fx projects but, compiles java fx projects just fine

As the title says I can compile/run regular java fx projects fine but, when i try to compile the defualt project netbeans gives you I get. Fatal Error: Unable to find package java.lang in classpath ...
user1034082's user avatar
1 vote
0 answers
61 views

Error while cloning "Milo" Project from GitHub

i want to clone and Build Milo Project from https://github.com/eclipse/milo I get various errors: error calculating classpath for project mavenproject The project was not built since its build path ...
Enomine's user avatar
  • 11
1 vote
1 answer
5k views

Apache Maven generate fails to create project using the command provided at the official site

OS: MacOS Mojave (Version: 10.14.3) Software in question: Apache Maven Objective: Create a new Maven project (in an empty directory) Method: Execute command in Terminal Reference: https://maven....
Neel_ShukuShona's user avatar
1 vote
0 answers
278 views

Cannot import maven project to eclipse

when i try to import existing maven project to eclipse i get this error "The selected wizard could not be started. Plug-in org.eclipse.m2e.core.ui was unable to load class org.eclipse.m2e.core.ui....
Momen Talosh's user avatar
1 vote
0 answers
37 views

Maven plugin not failing for C++ build error

I am using org.codehaus.mojo - exec-maven-plugin to build my C++ project. Below is the pom for the same. Attempting to use a normal make using GCC is throwing an error, but if I do mvn clean ...
Ajey kumar HB's user avatar
1 vote
1 answer
418 views

Issue with Maven installation

When I tried to check the version I got this message: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher My environment variables for java and maven are set as ...
Conbud's user avatar
  • 11
1 vote
0 answers
397 views

Can't create empty Jenkins Plugin project in NetBeans

I'm trying to write my first own Jenkins Plugin. I followed the instructions (using NetBeans as IDE) as describend here. So I installed the NetBeans plugin for Jenkins/Stapler development and ...
airborne's user avatar
  • 121
1 vote
0 answers
577 views

WHy can't I install MAVEN on my windows path?

I followed this >> https://www.mkyong.com/maven/how-to-install-maven-in-windows/ I want to install MAVEN on my WIndows. But it does not work. Though when I cd to the bin folder in cmd, it works. BUT ...
user697943's user avatar
1 vote
0 answers
470 views

Running Gitlab and Maven repo on the same server

I was wondering, I am currently setting up Gitlab for versioning and Artefactory for Maven - Gitlab is currently running on a VM on my server. What would you do, make a new VM for Artefactory or use ...
Nico Weiss's user avatar
1 vote
1 answer
976 views

FAR Maven 'mvn' is not recognized as an internal or external command,

I have working installation of Maven. If I use 'mvn whatever' commands in FAR it works. If, however, I try to use the view feature - 'view: < mvn whatever', I get the 'mvn' is not recognized as an ...
user1219387's user avatar
1 vote
1 answer
1k views

Clean up Android Studio's maven

My C:\Users\me\.AndroidStudioBeta\system\Maven folder is almost 5 gigabytes I cannot afford. Is there any safe way of cleaning this folder?
MLProgrammer-CiM's user avatar
0 votes
1 answer
3k views

Custom Maven plugin issue with local dependencies

I developed my own (very simple) custom Maven plugin following this guide. All it does is execute my own project's Main class after running a specific goal. When I run mvn install on my plugin, I ...
Lucas Rango's user avatar
0 votes
2 answers
431 views

How start next bash file only if previous was success?

In bash file myBig.sh I call another two bash files like this: /bin/bash myBuildShortServer.sh /bin/bash myStart.sh It's work... but has one problem. I want to start myStart.sh only after success ...
Alexei's user avatar
  • 443