[
http://jira.codehaus.org/browse/MOJO-943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137413#action_137413
]
Oleksandr Maksymchuk commented on MOJO-943:
-------------------------------------------
I also don't quite understand why snapshot version is built inside
<project.artifactId>-<project.versionId>/<project.artifactId>.app not as in
<project.artifactId>.app ? This makes dmg files corrupted.
> Web applications and flexible relsources dependencies support with internet
> enabling.
> -------------------------------------------------------------------------------------
>
> Key: MOJO-943
> URL: http://jira.codehaus.org/browse/MOJO-943
> Project: Mojo
> Issue Type: Improvement
> Components: osxappbundle
> Reporter: Oleksandr Maksymchuk
> Assignee: Eirik Bjørsnøs
> Attachments: osxappbundle-maven-plugin.patch
>
>
> I've used plugin you contributed to mojo and modified it greatly to be
> more flexible to package my web application having different structure
> from simple jar applications.
> Generealy I had issues running it and some confusion with version in
> svn and sources in repo, so I needed to change:
> - * @component
> role="org.codehaus.plexus.velocity.VelocityComponent"
> role-hint="default"
> + * @component role="org.codehaus.plexus.velocity.VelocityComponent"
> * @readonly
> */
> private VelocityComponent velocity;
> + // role-hint="default"
> Don't now how role-hint="default" is in effect but it were erroring
> when running maven with this plugin.
> Also I there were issue (which might be related) that velocity
> component looked at the template and needed relative path from
> _current_ directory, not the project base one.
> Were discovered as I have multiproject pom.
> Also I added:
> + /**
> + * Internet enables dmg files after one is created.
> + *
> + * @parameter expression="${internetEnable}"
> + */
> + private boolean internetEnable;
> - /**
> + /**
> + * Is this webapp project. Default is [EMAIL PROTECTED] true} if
> project
> packaging is 'war' and [EMAIL PROTECTED] false} otherwise.
> + *
> + * @parameter expression="${isWebapp}"
> + */
> + private boolean isWebapp = false;//
> project.getPackaging().equals("war");
> +
> + /**
> + * The location of the produced Zip file containing the bundle.
> + *
> + * @parameter
> expression="${project.build.directory}/${project.build.finalName}"
> + */
> + private File resourcesDirectory;
> +
> + /**
> + * Web application directory to copy resources to. Used when [EMAIL
> PROTECTED]
> isWebapp} set to [EMAIL PROTECTED] true}.
> + * Default 'webapp'.
> + *
> + * @parameter expression="${webappDirectory}"
> + */
> + private String webappDirectory = "webapp";
> +
> + /**
> + * The comma separated list of tokens to include in the bundle.
> + * Default is '**'.
> + *
> + * @parameter expression="${includes}"
> + */
> + private String includes = "**";
> +
> + /**
> + * The comma separated list of tokens to exclude from the bundle.
> + *
> + * @parameter expression="${excludes}"
> + */
> + private String excludes;
> for flexability to create web application.
> And fixed issue with command line that needed to have some wait time
> to execute before proceeding with the next command (so actually dmg
> command worked only on small build projects).
> One minus/todo I needed to use and build file to copy dependencies...
> wich might could be handled by plugin itself, ant were a quick
> solution here to exclude some not needed libraries and resources from
> final war.
> Thanks for your work,
> Oleksandr Maksymchuk,
> OMax
--
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