Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.0-alpha-2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
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="maven@${tt.jnlp.location.host}:${tt.jnlp.location.dir}"/>
</ant:exec>
</j:forEach>
</goal>
Issue Links
| This issue is duplicated by: | ||||
| MWEBSTART-71 | use maven wagon to automatically upload and extract the created zip file |
|
|
|
Some sort of mvn webstart:deploy could be useful.
If so, reusing wagon to support various ways of deploying and the notion of servers found in profiles/settings could be a good idea.