Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mancocapac
Post subject: How do I configure a Maven Buider for my project  PostPosted: Sep 23, 2008 - 10:49 PM



Joined: May 19, 2008
Posts: 13

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
 
 View user's profile Send private message  
Reply with quote Back to top
mancocapac
Post subject: RE: How do I configure a Maven Buider for my project  PostPosted: Sep 23, 2008 - 11:01 PM



Joined: May 19, 2008
Posts: 13

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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits