Hi,
I am trying to build a jnlp project with maven 2. I am currently using
mojo's Maven Webstart Plugin.
I have two questions:
1. Should I use this plug in or is there any plug in that can be
configured easily?
2. When I run "mvn install webstart:jnlp" I get following error:
[INFO] didn't find artifact with main class:
com.mycompany.baydonhill.traderapp.Main. Did you specify it?
Any ideas would be appreciated.
Maruf
===================================
pom.xml as follows:
====================================
........
........
<packaging>pom</packaging>
.........
.........
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>webstart-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jnlp</goal>
</goals>
</execution>
</executions>
<configuration>
<!--outputDirectory></outputDirectory--> <!-- not
required?? -->
<dependencies>
<!-- Note that only groupId and artifactId must be
specified here. because of a limitation of the
Include/ExcludesArtifactFilter -->
<includes>
<include>commons-logging:commons-logging</include>
<include>commons-cli:commons-cli</include>
</includes>
<!-- excludes>
<exclude></exclude>
<excludes-->
</dependencies>
<!-- JNLP generation -->
<jnlp>
<!-- default values -->
<resources>${project.basedir}/src/jnlp/resources</resources>
<!--inputTemplateResourcePath>${project.basedir}</inputTemplateResourcePath-->
<!--inputTemplate>src/jnlp/template.vm</inputTemplate--> <!-- relative
to inputTemplateResourcePath -->
<outputFile>TraderApp.jnlp</outputFile> <!--
defaults to launch.jnlp -->
<mainClass>com.mycompany.baydonhill.traderapp.Main</mainClass>
</jnlp>
<!-- SIGNING -->
<!-- defining this will automatically sign the jar and
its dependencies, if necessary -->
<sign>
<keystore>selfmycompanyKeystore</keystore>
<keypass>keypass</keypass> <!-- we need to
override passwords easily from the command line. ${keypass} -->
<storepass>keypass</storepass> <!-- ${storepass} -->
<storetype></storetype>
<alias>mycompany</alias>
<validity>3600</validity>
<dnameCn></dnameCn>
<dnameOu></dnameOu>
<dnameO></dnameO>
<dnameL></dnameL>
<dnameSt></dnameSt>
<dnameC></dnameC>
<verify>true</verify>
</sign>
<!-- KEYSTORE MANGEMENT -->
<keystore>
<delete>true</delete> <!-- delete the keystore -->
<gen>true</gen> <!-- optional shortcut to
generate the store. -->
</keystore>
<pack200>true</pack200>
<gzip>true</gzip> <!-- default force when pack200
false, true when pack200 selected ?? -->
<verbose>true</verbose>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib</classpathPrefix>
<mainClass>com.mycompany.baydonhill.traderapp.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.mycompany.baydonhill.traderapp.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.holub</groupId>
<artifactId>holub</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.idds.clientapi4</groupId>
<artifactId>clientapi4</artifactId>
<version>4.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.jgoodies</groupId>
<artifactId>looks</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>org.jdesktop</groupId>
<artifactId>swing-layout</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.4</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]