You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Frosengoose <ha...@gmail.com> on 2010/01/21 22:12:17 UTC

Re: Problems trying to automate installation of netbeans,grails and any other installers???

Hi,

Thanks for the time and consideration for replying to this message. I am
doing this on windows XP and i am limiting the versions or releases to the
current ones. I have read the exec maven plugin as well as the other
documents before. But i havnt still got a hang of how the exec plugin could
be used to open the exe file. Could you please post a sample snippet or any
other example of code. The exec-maven-plugin talked about in codehaus is
mostly on how to use a jar file and not much in detail.

For example my exe file installation is Netbeans 6.8 which i have in a fixed
location, how do i open this exe file for installation and how do i proceed
with the automation instead of the user doing it manually, all through a
Maven application. 

It may sound complicated to me but i am curious to know if there is a
solution to this or am i going to hit a dead end.

Thank you
harish
 

Wayne Fay wrote:
> 
>> Hi i have been trying to develop a automated application on maven which
>> reduces the time of people in installing various programs such as
>> netbeans,grails or any other program on a brand new or a formatted PC.
> 
> Unless your target is a specific platform (eg Windows XP), I'm not
> sure how easy this will actually be since you'll need to use different
> types of executable files for each different platform etc. Also you'll
> need to keep updating the plugin to reflect new versions of apps as
> they are released which can be a bit like hitting a moving target. I'm
> also unsure as to the actual value of this plugin (for me personally,
> perhaps others would find it very useful).
> 
>> 1. Do i have to write my own plugin for this, i read about a EXEC plugin
>> which helps run a external exe file. Is that enough, how can i configure
>> it?
> 
> The exec-maven-plugin is very well documented.
> http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html
> 
>> 2. If i have to write a plugin, can anyone give me some proper material
>> on
>> how this can be done.
> 
> Writing a new Maven plugin is also well documented.
> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
> http://www.sonatype.com/books/maven-book/reference/writing-plugins.html
> http://stackoverflow.com/questions/308865/good-tutorial-for-writing-maven-plugins
> 
>> 3. I would be very happy if anyone could point me to the right direction.
> 
> Find an existing plugin that does something similar to what you are
> trying to do and look at its source code. Or use Google to find more
> information. Then come back here when you run into SPECIFIC problems.
> 
> Wayne
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Problems-trying-to-write-maven-application-to-automate-installation-of-netbeans%2Cgrails%2C-etc----tp27261269p27264641.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems trying to automate installation of netbeans,grails and any other installers???

Posted by Wayne Fay <wa...@gmail.com>.
> For example my exe file installation is Netbeans 6.8 which i have in a fixed
> location, how do i open this exe file for installation and how do i proceed
> with the automation instead of the user doing it manually, all through a
> Maven application.

Something along these lines:

           <plugin>
             <groupId>org.codehaus.mojo</groupId>
             <artifactId>exec-maven-plugin</artifactId>
             <executions>
               <execution>
                 <goals>
                   <goal>exec</goal>
                 </goals>
               </execution>
             </executions>
             <configuration>
               <executable>netbeans_6.8_installer.exe</executable>
             </configuration>
           </plugin>

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org