Skip to content

Support for various JNLP tags, like <icon> and <shortcut> #52

@TurekBot

Description

@TurekBot

I've finally got this wonderful plugin configured to create a JNLP file for my application.

I noticed that most of the elements under the <information> tag, like <offline-allowed>, and <homepage> are included by default.

Is there a way to configure the plugin to add an icon?

I've added the following to the default template,

...
#if($project.Description)
    <description>$project.Description</description>
#end
#if($icon.Href)
    <icon href="$icon.Href"/>
#end
#if($offlineAllowed)
    <offline-allowed/>
#end
...

But when I give that template to the plugin, I get
[ERROR] Failed to execute goal org.codehaus.mojo:webstart-maven-plugin:1.0-beta-7:jnlp-inline (default) on project purchase-order-arrivals: Unable to parse configuration of mojo org.codehaus.mojo:webstart-maven-plugin:1.0-beta-7:jnlp-inline for parameter icon: Cannot find 'icon' in class org.codehaus.mojo.webstart.JnlpConfig -> [Help 1]

I think I'm on the right track. I looked at the source and thought maybe it would need to be updated to support icons as well; if so, here's what I've managed so far: #51
Can anyone help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions