facebook

How do I configure a Maven Buider for my project

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #289299 Reply

    mancocapac
    Member

    I am using MyEclipse 6.5
    I downloaded “Introduction to Hibernate Search” which is a maven project
    Things are fine if I build/clean/test via the “run as” menu but I want to
    configure/change/create a Maven builder so that i dont see all the Red in the editor. I tried using “build” but got errors, see below. What do I need
    to put into the Goals so this works properly?

    Thanks

    project -> properties->Builders>new
    X Java Builder
    X Faceted Project Validation Builder
    X Validation
    X Spring Project Builder

    ->New …

    [Main]
    Auto Build Goals: (build) <What should I put here?>
    Manual Build Goals: (build) <What should I put here?>
    During a Clean Goals: (clean) <What should I put here?>
    After a Clean Goals: <What should I put here?>

    console output:

    [ERROR]

    Invalid mojo or lifecycle phase: build

    Original error message was: Invalid task ‘build’: you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal

    run as: (these work fine)
    Maven assembly:assembly
    Maven Build
    Build …
    Clean
    generate sources
    install
    package
    source:jar
    test

    #289301 Reply

    mancocapac
    Member

    note what I mean by the Red, is that the imports dont get resolved in the editor window(s) so all the java
    files appear to have errors, but they actually compile via maven build, and the tests run successfully

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How do I configure a Maven Buider for my project

You must be logged in to post in the forum log in