[
https://jira.codehaus.org/browse/MWEBSTART-186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=284169#comment-284169
]
Rade Martinovic commented on MWEBSTART-186:
-------------------------------------------
I can confirm that the same behaviour is in 1.0-beta-2 version of the plugin. I
won't bother now with the obfuscation of the names in my project.
So, this is whole pom.xml:
{code:title=pom.xml|xml}
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>netiis</artifactId>
<groupId>rs.ac.bg.rcub.netiis</groupId>
<version>3.4.5-SNAPSHOT</version>
</parent>
<groupId>rs.ac.bg.rcub.netiis</groupId>
<artifactId>netiis-client-jnlp</artifactId>
<version>3.4.5-SNAPSHOT</version>
<packaging>pom</packaging>
<name>JNLP packer project for NetIIS Client Appliaction</name>
<description>Project that packs and installs Swing Java application,
creates JNLP, all needed resources and signs JAR files.</description>
<url>http://IZMENI_ME/NetIISWebStart</url>
<organization>
<name>RCUB</name>
</organization>
<build>
<finalName>NetIISWebStart</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo.webstart</groupId>
<artifactId>webstart-maven-plugin</artifactId>
<version>1.0-beta-2</version>
<executions>
<execution>
<id>create-jnlp</id>
<phase>package</phase>
<goals>
<goal>jnlp-single</goal>
</goals>
<configuration>
<jnlp>
<offlineAllowed>true</offlineAllowed>
<allPermissions>true</allPermissions>
<inputTemplate>NetIISWebStart.vm</inputTemplate> <!-- relative to
inputTemplateResourcePath -->
<!--
outputFile>NetIISWebStart.jnlp</outputFile -->
<j2seVersion>1.6+</j2seVersion>
<mainClass>yu.ac.bg.rcub.netiis.app.rmi.client.Session</mainClass>
</jnlp>
<sign>
<keystore>${basedir}/src/main/keystore/RCUBkeystore.jks</keystore>
<keypass>xxxxxxx</keypass>
<storepass>xxxxxxx</storepass>
<storetype>jks</storetype>
<alias>RCUB</alias>
<verify>true</verify>
</sign>
<codebase>${project.url}</codebase>
<verbose>false</verbose>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>rs.ac.bg.rcub.netiis</groupId>
<artifactId>netiis-client</artifactId>
<version>3.4.5-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
{code}
and this is the error message:
{noformat}
[ERROR] Failed to execute goal
org.codehaus.mojo.webstart:webstart-maven-plugin:1.0-beta-2:jnlp-single
(create-jnlp) on project netiis-client-jnlp: The specified JNLP template does
not exist: [D:\Eclipse workspace\netiis\netiis-client-jnlp\NetIISWebStart.vm]
-> [Help 1]
{noformat}
I relied that the value of {templateDirectory} is like in the documentation,
but apparently it points to {project.basedir}. I can try using debug output if
you'll get more information from that. Also, while signing jars I noticed one
minor issue, but I'll open another jira for that later. :)
> While parsing JNLPConf default value of templateDirectory is wrong
> ------------------------------------------------------------------
>
> Key: MWEBSTART-186
> URL: https://jira.codehaus.org/browse/MWEBSTART-186
> Project: Maven 2.x Webstart Plugin
> Issue Type: Bug
> Components: build
> Affects Versions: 1.0-beta-2
> Environment: Windows XP SP3
> Reporter: Rade Martinovic
> Priority: Critical
>
> In my setup I had done something like this:
> {code:title=pom.xml:xml}
> <jnlp>
> <!--snip-->
>
> <inputTemplateResourcePath>${templateDirectory}</inputTemplateResourcePath>
> <inputTemplate>myTemplate.vm</inputTemplate> <!-- relative to
> inputTemplateResourcePath -->
> <!--snip-->
> </jnlp>
> {code}
> but, the package process failes with following prompt:
> {noformat}
> [ERROR] Failed to execute goal
> org.codehaus.mojo.webstart:webstart-maven-plugin:1.0-beta-1:jnlp-single
> (create-jnlp) on project my-project-jnlp: The specified JNLP template does
> not exist: c:\project\project_base_dir\myTemplate.vm
> {noformat}
> I expect ${templateDirectory} at that point to be
> ${project.basedir}/src/main/jnlp, not ${project.basedir}.
--
This message is automatically generated by JIRA.
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