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

Havard Bjastad commented on MWEBSTART-25:
-----------------------------------------

We've done it similar to what we did in Maven 1, using Ant:

                <profile> 
                        <id>release</id>  
                        <build> 
                                <plugins> 
                                        <plugin> 
                                                
<artifactId>maven-antrun-plugin</artifactId>  
                                                <executions> 
                                                        <execution> 
                                                                
<phase>deploy</phase>  
                                                                <goals> 
                                                                        
<goal>run</goal> 
                                                                </goals>  
                                                                <configuration> 
                                                                        <tasks> 
                                                                                
<echo>Releasing to [EMAIL PROTECTED]:projects/${pom.artifactId}</echo>  
                                                                                
<scp todir="[EMAIL PROTECTED]:projects/${pom.artifactId}" 
keyfile="${user.home}/.ssh/id_rsa" passphrase=""> 
                                                                                
        <fileset dir="${basedir}/target/jnlp"> 
                                                                                
                <include name="*"/> 
                                                                                
        </fileset> 
                                                                                
</scp> 
                                                                        
</tasks> 
                                                                
</configuration> 
                                                        </execution> 
                                                </executions>  
                                                <dependencies> 
                                                        <dependency> 
                                                                
<groupId>com.jcraft</groupId>  
                                                                
<artifactId>jsch</artifactId>  
                                                                
<version>0.1.29</version> 
                                                        </dependency>  
                                                        <dependency> 
                                                                
<groupId>ant</groupId>  
                                                                
<artifactId>ant-jsch</artifactId>  
                                                                
<version>1.6.5</version> 
                                                        </dependency> 
                                                </dependencies> 
                                        </plugin> 
                                </plugins> 
                        </build> 
                </profile> 

This works well, so writing the new mojo has not been prioritized. Just like 
MWEBSTART-24, I still think it makes sense to do, so let's keep this one open. 
Maybe wagon is the way to go - though our need is just to scp the files to a 
web server area.

> A Mojo for deploying/dist'ing the application could be useful
> -------------------------------------------------------------
>
>                 Key: MWEBSTART-25
>                 URL: http://jira.codehaus.org/browse/MWEBSTART-25
>             Project: Maven 2.x Webstart Plugin
>          Issue Type: New Feature
>    Affects Versions: 1.0-alpha-2
>            Reporter: Havard Bjastad
>
> It would be useful to be able to easily deploy the application to a web 
> server, when it is not bundled as a web app. E.g.
>    mvn webstart:dist
> or if it could somehow be hooked up to the dist process, so it was done by a 
> simple
>    mvn dist
> In maven 1, we used the following goal to dist the application:
>       <goal name="dist" prereqs="jnlp">
>               <echo>Copying files from ${maven.jnlp.dir} to 
> ${tt.jnlp.location.host}</echo>
>               <ant:fileScanner var="files">
>                       <ant:fileset dir="${maven.jnlp.dir}">
>                               <ant:include name="**"/>
>                       </ant:fileset>
>               </ant:fileScanner>
>               <j:forEach var="file" items="${files.iterator()}">
>                       <echo>Copying ${file} to ${tt.jnlp.location.host}</echo>
>                       <ant:exec executable="scp" failonerror="true">
>                               <ant:arg value="${file}"/>
>                               <ant:arg value="[EMAIL 
> PROTECTED]:${tt.jnlp.location.dir}"/>
>                       </ant:exec>
>               </j:forEach>
>       </goal>

-- 
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