Webstart plugin, with no main class
-----------------------------------

                 Key: MWEBSTART-131
                 URL: http://jira.codehaus.org/browse/MWEBSTART-131
             Project: Maven 2.x Webstart Plugin
          Issue Type: Bug
    Affects Versions: 1.0-alpha-2
         Environment: Linux, JDK 6
            Reporter: Brian Leathem


I'm trying to use the Webstart plugin to build a jnlp file that has no main 
class.  This jnlp has mail.jar as a sole resource, and is referred to by other 
jnlp files.  The reson for this is that Sun sign's mail.jar, and I can't 
include it as a resource in the same jnlp that contians my signed jars.

On running the webstart:jnlp goal, I get the error:

   [INFO] No resources found in
   
/var/build/maven/TriumfPom/ApplicationsPom/SunMailJnlp/src/main/jnlp/resources
   [INFO] artifact com.sun:SunMailJnlp:jar:1.0-SNAPSHOT seems to
   contain the main class: null but the jar doesn't seem to contain all
   dependencies null
   [INFO] artifact javax.mail:mail:jar:1.4.1:compile seems to contain
   the main class: null but the jar doesn't seem to contain all
   dependencies null
   [WARNING] artifact javax.mail:mail:jar:1.4.1:compile also contains
   the main class: null. IGNORED.
   [INFO]
   ------------------------------------------------------------------------
   [ERROR] BUILD ERROR
   [INFO]
   ------------------------------------------------------------------------
   [INFO] Failure to run the plugin:

   Embedded error: mainClass must not be null


Is there anyway I can force the process to continue without a mainClass?  Or 
point to a static jnlp file?

The jnlp file when it's done should look like:

   <?xml version="1.0" encoding="utf-8"?>

   <jnlp spec="1.0"
         codebase="http://host.domain/jaws";
         href="/jaws/jnlp/Sun.jnlp">
     <information>
       <title>Sun signed libraries</title>
       <vendor>Sun Microsystems, Inc.</vendor>
     </information>
       <security>
       <all-permissions/>
     </security>
     <resources>
       <jar href="ext/Sun/mail.jar"/>
       <j2se version="1.6+"
           href="http://java.sun.com/products/autodl/j2se"/>
     </resources>
     <component-desc/>
   </jnlp>


Lastly as a test case I'll include this POM:

<?xml version="1.0" encoding="UTF-8"?>
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.sun</groupId>
  <artifactId>SunMailJnlp</artifactId>
  <name>SunMailJnlp</name>
  <version>1.0-SNAPSHOT</version>
  <url>http://somesite.com</url>

  <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo.webstart</groupId>
                <artifactId>webstart-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>jnlp</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <libPath>lib</libPath>
                    <dependencies>
             <excludes>
                <exclude>javax.activation:activation</exclude>
             </excludes>
           </dependencies>
                    <jnlp>
                        <outputFile>Sun.jnlp</outputFile>
                    </jnlp>
                <verbose>true</verbose>
            </configuration>
        </plugin>
    </plugins>
</build>
  <dependencies>
        <dependency>
            <groupId>javax.mail</groupId>
            <artifactId>mail</artifactId>
            <version>1.4.1</version>
        </dependency>
  </dependencies>
</project>
Thanks,
Brian Leathem


-- 
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


Reply via email to