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/.

Apache Maven is a build automation tool used primarily for Java projects. 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.

Maven's objectives

Maven’s primary goal is to allow a developer to comprehend the complete state of a development effort in the shortest period of time. Maven adheres to the principle of "convention over configuration" that helps building Maven projects with very little configuration. Systems, libraries, and frameworks should assume reasonable defaults, and systems should "just work" without requiring unnecessary configuration. In order to attain this goal, there are several areas of concern that Maven attempts to deal with:

  • Making the build process easy
  • Providing a uniform build system
  • Providing quality project information
  • Providing guidelines for best practices development
  • Allowing transparent migration to new features

The configuration of a Maven project is done by creating a file called pom.xml located at the root of the project. This file is referred to as the POM file. Each POM file inherits from a global Super POM that defined common properties for all Maven projects.

63 questions
2
votes
1 answer

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] [INFO]…
Ivan DQ
  • 23
2
votes
1 answer

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 `enter code here`environment variable and mvn script…
Gman
  • 481
2
votes
2 answers

Maven Repository Manager Package

Is there any package for a Maven repository manager? I searched for some of the ones I know, but couldn't find any. I'm wondering if they are just not available, if they have names different than what I searched for, or, perhaps, if there's some I…
2
votes
3 answers

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 some help setting up my laptop and find the…
Crowie
  • 442
  • 1
  • 5
  • 19
1
vote
1 answer

from where should i learn about functionality of maven package

I am working on a project which works through maven package Is there any documentation available for maven package linux so that i can learn it in best way .. thanks
prateek ojha
  • 278
  • 1
  • 3
  • 10
0
votes
0 answers

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 manually for each user. But when I try to download the…
Anıl
  • 21
0
votes
1 answer

How do I run Maven 2?

I have installed Maven 2.2.1-5 via the Ubuntu Software Center. How do I run it? Why does it not appear in Ubuntu Software Center / Installed Software? (Ubuntu Software Center / Get Software shows it is installed.) I am on Maverick (10.10).
H2ONaCl
  • 9,693
-1
votes
2 answers

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 with a solution? it seems to be a unique problem…