You need to read of the maven scripting
<http://maven.apache.org/reference/scripting.html>  help page. 



In short, your customisations belong in the maven.xml file, NOT the
project.xml file.



Cheers,
Dan



-----Original Message-----
From: Anthony Kong [mailto:[EMAIL PROTECTED]
Sent: Monday, 11 July 2005 12:29 PM
To: [email protected]
Subject: Cannot execute the pregoal



Hi, all,



In my project.xml, I have this pregoal definition:



<project>

    <!--

    ======================================================

    Goals

    ======================================================

    -->

    <preGoal name="java:compile">

        <attainGoal name="checkstyle:run" />

    </preGoal>

</project>



However, the checkstyle never get run before java:compile. How can I
solve

this problem?



If I run "maven  checkstyle:run", it runs as expected.



Cheers,

AK





www.about.sensis.com.au
A leading Australian advertising, information and directories business.
www.sensis.com.au
www.yellowpages.com.au
www.whitepages.com.au
www.citysearch.com.au
www.whereis.com.au
www.telstra.com.au
www.tradingpost.com.au
www.universalpublishers.com.au
This email and any attachments are intended only for the use of the recipient 
and may be confidential and/or legally privileged.
Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss 
and/or damage arising from using, opening or transmitting this email.
If you are not the intended recipient you must not use, interfere with, 
disclose, copy or retain this email and you should notify the sender 
immediately by return email or by contacting Sensis Pty Ltd by telephone on 
[+61 3 8653 5000]

Reply via email to