[ 
http://jira.codehaus.org/browse/MWEBSTART-24?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_116506
 ] 

Havard Bjastad commented on MWEBSTART-24:
-----------------------------------------

I hadn't tried the exec mojo - until now. It didn't work (for some reason 
didn't pick up the ${appMainClass} that we have defined in sub-poms. I didn't 
bother spending more time on it, as it would only marginally improve what we 
have.

I guess what a new mojo in the webstart plugin would add, is simplicity - fewer 
lines of XML in the POM + fewer places to maintain configuration. But it's not 
a big deal. In fact, the antrun plugin works well enough - which is why I 
haven't implemented (and contributed) a solution yet. I still think it makes 
sense to do (because webstart plugin has all the needed configuration, so the 
new mojo would make life simpler for the webstart plugin users), so can we 
please keep it open until I find some time?

> A Mojo for running the application could be useful
> --------------------------------------------------
>
>                 Key: MWEBSTART-24
>                 URL: http://jira.codehaus.org/browse/MWEBSTART-24
>             Project: Maven 2.x Webstart Plugin
>          Issue Type: New Feature
>    Affects Versions: 1.0-alpha-2
>            Reporter: Havard Bjastad
>
> If one could execute, e.g.
>    mvn webstart:run
> to test the application locally (before deploying it), that would be very 
> useful.
> We currently use the following antrun configuration to execute the 
> application:
>       <profiles>
>               <profile>
>                       <id>run</id>
>                       <build>
>                               <plugins>
>                                       <plugin>
>                                               
> <groupId>org.apache.maven.plugins</groupId>
>                                               
> <artifactId>maven-antrun-plugin</artifactId>
>                                               <executions>
>                                                       <execution>
>                                                               
> <phase>install</phase>
>                                                               <goals>
>                                                                       
> <goal>run</goal>
>                                                               </goals>
>                                                               <configuration>
>                                                                       <tasks>
>                                                                               
> <java classname="${appMainClass}" failonerror="true" fork="true">
>                                                                               
>         <sysproperty key="swing.aatext" value="true"/>
>                                                                               
>         <classpath>
>                                                                               
>                 <path refid="maven.runtime.classpath"/>
>                                                                               
>         </classpath>
>                                                                               
> </java>
>                                                                       </tasks>
>                                                               </configuration>
>                                                       </execution>
>                                               </executions>
>                                       </plugin>
>                               </plugins>
>                       </build>
>               </profile>
>       </profiles>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to