• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Why there is 2 maven builds inside my Eclipse IDE and can't check mvn version etc, ?

 
Ranch Hand
Posts: 608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear expert,

I tried to use Maven in my project.
However, I run into problem.

First, when I attempted to see if I got maven installed properly by using cmd and type  mvn version

I got into error as in there is build error

So, I followed the instruction to run via the Eclipse IDE - Am using Eclipse ee

It built successfully inside the Eclipse.

But, there is 2 maven builds inside.  Please see attached.

As I do not have anybody to check things out, I hope the members here can tell me what's happening.

Furthermore, I do not use pom.xml



2-Maven-Build-Appeared.png
[Thumbnail for 2-Maven-Build-Appeared.png]
 
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you type "mvn version" or "mvn --version"?  The second is the correct syntax if you're trying to see Maven's version number.
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Furthermore, I do not use pom.xml


There must be a pom.xml file in the current directory that you launch Maven in.  I see from your screenshot that you have an "Hi5/pom.xml".  Try building with Maven from the Hi5 directory.
 
Saloon Keeper
Posts: 22273
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are not 2 "Maven Builds". There are 2 run options for Maven: "Maven Build" and "Maven Build...".

The convention with menus on GUI applications is that if a menu command is followed by 3 dots (ellipsis), then it will prompt for further input (typically a dialog box).

The Eclipse Run/Debug subsystem allows you to define multiple run profiles and that is just as true for tools such as Maven as it is for your own Java applications. The "Maven Build..." allows you to construct and use these alternative run profiles by presenting the Run/Debug options dialog. The "Maven Build" (no ellipsis) is a fast-path request for the default build profile.
 
A tiny monkey bit me and I got tiny ads:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic