• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 1021
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic