This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
tangara goh
Ranch Hand
Posts: 263
  • 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]
 
Knute Snortum
Sheriff
Posts: 4073
112
Chrome Eclipse IDE Java Postgres Database VI Editor
  • 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: 4073
112
Chrome Eclipse IDE Java Postgres Database VI Editor
  • 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.
 
Tim Holloway
Bartender
Posts: 18709
71
Android Eclipse IDE 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!