Hi,

Try something like this:

<plugin>
   <artifactId>maven-invoker-plugin</artifactId>
   <configuration>
     <goals>
       <goal>clean</goal>
       <goal>eclipse:clean</goal>
       <goal>eclipse:eclipse</goal>
       <goal>install</goal>
     </goals>
     <noLog>true</noLog>
     <streamLogs>true</streamLogs>
     <properties>
       <jboss.home>${jboss.home}</jboss.home>
     </properties>
   </configuration>
   <executions>
     <execution>
       <id>telefon</id>
       <goals>
         <goal>run</goal>
       </goals>
       <phase>validate</phase>
       <configuration>
         <pom>../sv-portal-telefon/pom.xml</pom>
       </configuration>
     </execution>
   </executions>
</plugin>


Check the plugin description to see if you need all parameters I used or 
if you need some I didn't use!

Roland


On 07.12.2010 10:37, Harshana Eranga Martin wrote:
> Hi All,
>
> I am trying to execute "clean" and "install" maven goals for a java project
> from another java project by launching maven builder programmatically. I
> have came across Maven Invoker plugin. But I could not find any example code
> used to Invoke maven goals from a java project. Can some one point me to an
> example how to get this done using this maven invoker plugin?
>
>
> Thanks and Regards,
> Harshana Martin
> --
> Harshana Eranga Martin
> Software Engineer,
> WSO2 Inc.
> Web: http://wso2.com
> http://wso2.org
>
> ECF Committer: http://www.eclipse.org/ecf/
> Blog: http://harshana05.blogspot.com
> Profile: https://www.google.com/profiles/harshana05
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock              T +43 1 2198790-27
Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
A-1210 Wien                         M +43 664 88657566
                                    E [email protected]
                                    W www.adesso.at

-------------------------------------------------------------
             >>> business. people. technology. <<<
-------------------------------------------------------------

Reply via email to