Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » How to run maven goal after compile
How to run maven goal after compile [message #573200] Sat, 12 June 2010 06:50 Go to next message
Niranjan  is currently offline Niranjan Friend
Messages: 3
Registered: June 2010
Junior Member
Hi,

Using Eclipse 3.3.2.

I have imported maven project in eclipse. I want to run maven test goal every time my project is compiled. Ideally I want to run one particular junit test suite every time I save files since build automatically is checked and see the results in junit runner of eclipse.

I tried creating additional builder but it always resulted into corrupting my project file and corrupting my original maven builder. Eclipses shows invalid launcher for both Java and Maven project builder.

Is there any way I can achieve this?

Thanks in advance.
Re: How to run maven goal after compile [message #573225 is a reply to message #573200] Sat, 12 June 2010 18:41 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
Maven is not compiling the classes, just generating the resources and
test resources, Eclipse compiles the classes when it detects changes.

You can create run configurations to run junit tests in eclipse ot run
maven goals, but I"m not sure how to do that automatically in the IDE,
usually that's done at the Continuous Integration server


On 6/12/10 8:50 AM, Niranjan wrote:
> Hi,
>
> Using Eclipse 3.3.2.
>
> I have imported maven project in eclipse. I want to run maven test goal
> every time my project is compiled. Ideally I want to run one particular
> junit test suite every time I save files since build automatically is
> checked and see the results in junit runner of eclipse.
>
> I tried creating additional builder but it always resulted into
> corrupting my project file and corrupting my original maven builder.
> Eclipses shows invalid launcher for both Java and Maven project builder.
>
> Is there any way I can achieve this?
>
> Thanks in advance.
Previous Topic:Fail using IAM with Eclipse Galileo
Next Topic:How to run maven goal after compile
Goto Forum:
  


Current Time: Tue Apr 16 05:23:45 GMT 2024

Powered by FUDForum. Page generated in 0.17724 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top