in red

Jerome Lacoste wrote:
On 1/30/07, Maruf Aytekin <[EMAIL PROTECTED]> wrote:
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?

Can't this plugin be configured easily ?
It not, what are your problems with it ?
It seems easy to configure but I couldn't get it working. This is my first jnlp building with maven 2 maybe I couldn't find the right docs. I saw only http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html. Is there an example usage or more docs I can find?



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.



You restricted the dependencies the plugin should look into:

                 <includes>
                    <include>commons-logging:commons-logging</include>
                    <include>commons-cli:commons-cli</include>
                 </includes>


That's wrong. Either remove this <includes> section or specify it
correctly. You probably can just remove it, specifying is to be used
as some form of optimization when the default list of dependencies
needs to be limited.

I have removed the includes section but i still have the same error; Here is the stack traces first few lines
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: didn't find artifact wit
h main class: com.aspone.baydonhill.traderapp.Main. Did you specify it?
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

Maruf


PS: please use the MOJO user mailing list, not the MAVEN one.
I have tried it but didn't get any response back.

Thanks for your help

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]




Reply via email to