Questions tagged [maven]

Apache Maven is a software project management and comprehension tool.

Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.

More information

Free Maven Books

72 questions
30
votes
2 answers

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
  • 403
  • 1
  • 4
  • 5
27
votes
4 answers

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
  • 373
  • 1
  • 3
  • 4
11
votes
1 answer

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 deploy. So I really don't want to package and test…
Lenik
  • 17,942
  • 25
  • 87
  • 119
8
votes
3 answers

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 Maven, and then modifying my PATH environment…
7
votes
1 answer

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 plugins. Maven has modules but what there is no way…
Aaron Digulla
  • 6,925
  • 8
  • 45
  • 66
6
votes
2 answers

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 disable processing the ANSI escaping chars? I think there is some config…
WesternGun
  • 592
  • 3
  • 12
6
votes
1 answer

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 follows: Java, maven, docker and code are all…
6
votes
1 answer

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 (default-cli) on project spotify-web-api-java: An error…
dargmuesli
  • 541
  • 1
  • 5
  • 9
4
votes
2 answers

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 no more owner. I have tried to associate an owner…
Randomize
  • 543
  • 1
  • 6
  • 12
4
votes
3 answers

" 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 Paths in place.
Anit Mohanty
  • 41
  • 1
  • 1
  • 3
3
votes
1 answer

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 of them fail. How can I execute an individual…
Subbarao Gaddam
  • 131
  • 1
  • 1
  • 2
3
votes
1 answer

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 this program NB: JAVA_HOME should point to a JDK not a…
SwiftBlade95
  • 31
  • 1
  • 2
2
votes
1 answer

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) @ > plant_store_sdk --- [WARNING] Using platform encoding (UTF-8…
Patrick
  • 165
  • 2
  • 8
2
votes
2 answers

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 similar question in:…
abcd
  • 21
  • 1
2
votes
1 answer

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 error: Failed to execute goal…
Patrick
  • 165
  • 2
  • 8
1
2 3 4 5