[ 
http://jira.codehaus.org/browse/MOJO-848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_101786
 ] 

Trygve Laugstol commented on MOJO-848:
--------------------------------------

Sorry, I should have been a bit more explicit.

Run the appassembler plugin first and include the target directory. Example 
config:
{code}
<assembly>
  <id>bin</id>
  <formats>
    <format>tar.gz</format>
  </formats>
  <fileSets>
    <fileSet>
      <directory>src/main/etc</directory>
      <outputDirectory>etc</outputDirectory>
      <lineEnding>unix</lineEnding>
    </fileSet>
    <fileSet>
      <directory>target/appassembler/bin</directory>
      <outputDirectory>bin</outputDirectory>
      <lineEnding>unix</lineEnding>
      <fileMode>0755</fileMode>
    </fileSet>
    <fileSet>
      <directory>target/appassembler/repo</directory>
      <outputDirectory>repo</outputDirectory>
    </fileSet>
  </fileSets>
</assembly>{code}

In my project I'm runing both the "directory-inline" and "attached" goals of 
the assembly plugin to make it both package the plugin and to have a complete 
binary under target/..

To include the tarball into the repository, use the build-helper plugin to 
attach a file to your build: 
http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html

The appassembler plugin is lacking documentation, I know. This should all be on 
the site descibed and in an example project somewhere.

> Provide options to zip & copy assembled application
> ---------------------------------------------------
>
>                 Key: MOJO-848
>                 URL: http://jira.codehaus.org/browse/MOJO-848
>             Project: Mojo
>          Issue Type: New Feature
>          Components: appassembler
>            Reporter: David Hoffer
>            Assignee: Trygve Laugstol
>
> The appassembler works great for assembling an application that can be 
> launched with a batch/shell script but I can't distribute this as it is.  
> What I need is for the results to be included in a zip file named with the 
> proper name/version.
> I also need a mechanism to copy this zip file to a common location where 
> applications are stored.  This later step could be performed by this plugin 
> or another which ever is the best approach.  The end result of this is to be 
> able to automate the release of an application using the appassembler plugin.
> In summary, what I want to be able to do to release my application is:
> mvn release:prepare release:perform package appassembler:assemble (or equiv.)
> where this results in the application being zipped and placed in specified 
> network folder.

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