evenisse    2002/11/21 11:31:57

  Added:       src/plugins-build/jnlp .cvsignore maven.xml plugin.jelly
                        plugin.properties project.properties project.xml
               src/plugins-build/jnlp/xdocs goals.xml index.xml
                        navigation.xml properties.xml
  Log:
  Add jnlp plugin for create Java Web Start application. Thanks to James Birchfield
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-maven/src/plugins-build/jnlp/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  target
  maven.log
  
  
  
  1.1                  jakarta-turbine-maven/src/plugins-build/jnlp/maven.xml
  
  Index: maven.xml
  ===================================================================
  <project default="plugin"
    xmlns:j="jelly:core"
    xmlns:m="maven">
  
    <goal
      name="plugin">
  
      <j:if test="${sourcesPresent == 'true'}">
        <attainGoal name="java:compile"/>
        <attainGoal name="test:test"/>
      </j:if>
  
      <property name="assemblyDir" value="target/assemblyDir"/>
  
      <mkdir dir="${assemblyDir}"/>
  
      <copy todir="${assemblyDir}">
        <fileset dir=".">
          <exclude name="target/**"/>
          <exclude name="src/**"/>
          <exclude name="maven.xml"/>
          <exclude name="maven.log"/>
        </fileset>
      </copy>
  
      <j:if test="${sourcesPresent == 'true'}">
        <copy todir="${assemblyDir}">
          <fileset dir="target/classes"/>
        </copy>
      </j:if>
  
      <jar
        jarfile="${maven.build.dir}/${maven.final.name}.jar">
        <fileset dir="${assemblyDir}"/>
      </jar>
  
      <copy
        file="${maven.build.dir}/${maven.final.name}.jar"
        todir="${maven.repo.local}/maven/jars"
      />
  
    </goal>
  
    <goal name="plugin:install"
          prereqs="plugin"
          description="Install the plugin in Maven's plugins dir">
  
      <copy
        file="${maven.build.dir}/${maven.final.name}.jar"
        todir="${maven.home}/plugins"
      />
  
    </goal>
  
    <goal name="plugin:deploy"
          prereqs="plugin"
          description="Install an unpacked version of the plugin">
  
      <mkdir dir="${maven.home}/plugins/${maven.final.name}"/>
      <unzip
        src="${maven.build.dir}/${maven.final.name}.jar"
        dest="${maven.home}/plugins/${maven.final.name}"
      />
  
    </goal>
  
    <goal name="plugin:undeploy"
          description="Delete the deployed version of the plugin">
      <delete dir="${maven.home}/plugins/${maven.final.name}"/>
    </goal>
  
    <goal name="plugin:uninstall"
          description="Delete all versions of the plugin">
      <attainGoal name="plugin:undeploy"/>
      <delete>
        <fileset dir="${maven.home}/plugins/" includes="${maven.final.name}.jar"/>
      </delete>
    </goal>
  
  </project>
  
  
  
  
  1.1                  jakarta-turbine-maven/src/plugins-build/jnlp/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  <?xml version="1.0"?>
  
  <jj:project xmlns:j="jelly:core"
              xmlns:jj="jelly:jeez"
              xmlns:jelxml="jelly:xml"
              xmlns:u="jelly:util" 
              xmlns="dummy">
  
      <!-- ================================================================== -->
      <!-- Generate JNLP files and signs jars if necessary                    -->
      <!-- ================================================================== -->
      <jj:goal name="jnlp"
          description="Generate JNLP file and sign all jars"
          prereqs="jnlp:generate-jnlp"/>
  
      <jj:goal name="jnlp:generate-jnlp"
               description="Generate the .jnlp file and sign all jars"
               prereqs="java:jar">
  
          <jj:mkdir dir="${maven.jnlp.dir}"/>
          <jj:echo>Creating ${maven.jnlp.dir}/${pom.id}.jnlp ...</jj:echo>
  
          <j:file name="${maven.jnlp.dir}/${pom.id}.jnlp" prettyPrint="true">
              <jnlp spec="${maven.jnlp.spec}"
                    codebase="${maven.jnlp.http.codebase}"
                    href="${pom.id}.jnlp">
  
                  <information>
                      <title>${maven.jnlp.title}</title>
                      <j:if test="${context.getVariable('maven.jnlp.vendor') != null}">
                          <vendor>${maven.jnlp.vendor}</vendor>
                      </j:if>
                      <j:if test="${context.getVariable('maven.jnlp.homepage') != 
null}">
                          <homepage href="${maven.jnlp.homepage}"/>
                      </j:if>
                      <j:if test="${context.getVariable('maven.jnlp.icon') != null}">
                          <icon href="${maven.jnlp.icon}"/>
                      </j:if>
                      <j:if test="${context.getVariable('maven.jnlp.description') != 
null}">
                          <description>${maven.jnlp.description}</description>
                      </j:if>
                      <j:if 
test="${context.getVariable('maven.jnlp.description.one-line') != null}">
                          <description 
kind="one-line">${maven.jnlp.description.one-line}</description>
                      </j:if>
                      <j:if 
test="${context.getVariable('maven.jnlp.description.short') != null}">
                          <description 
kind="short">${maven.jnlp.description.short}</description>
                      </j:if>
                      <j:if 
test="${context.getVariable('maven.jnlp.description.tooltip') != null}">
                          <description 
kind="tooltip">${maven.jnlp.description.tooltip}</description>
                      </j:if>
                      <j:if test="${context.getVariable('maven.jnlp.offline.allowed') 
!= null}">
                          <offline-allowed/>
                      </j:if>
                  </information>
                  <security>
                      <j:set var="permission" value="${maven.jnlp.permission}X"/>
                      <j:if test="${permission == 'allX'}">
                          <all-permissions/>
                      </j:if>
                      <j:if test="${permission == 'j2eeX'}">
                          <j2ee-application-client-permissions/>
                      </j:if>
                  </security>
  
                  <resources>
                      <j2se version="${maven.jnlp.j2se.version}"
                             initial-heap-size="${maven.jnlp.j2se.heapsize.initial}"
                             maximum-heap-size="${maven.jnlp.j2se.heapsize.max}"/>
                      <jar href="${maven.final.name}.jar" main="true"/>
  
                      <j:forEach var="lib" items="${pom.dependencies}">
                          <j:if test="${lib.getProperty('jnlp.jar')=='true'}">
                              <jar href="${lib.getArtifact()}"/>
                          </j:if>
                          <j:if test="${lib.getProperty('jnlp.native.jar')=='true'}">
                              <nativelib href="${lib.getArtifact()}"/>
                          </j:if>
                      </j:forEach>
                      <!--  This is close to what it WILL look like, but for now it is 
the ugly ass thing below  it-->
  
                      <u:tokenize var="listOfProperties" delim=" 
">${maven.jnlp.properties}</u:tokenize>
                      <j:forEach var="someProperty" items="${listOfProperties}">
                        <property name="${someProperty}" 
value="${context.findVariable(someProperty)}"/>
                      </j:forEach>
                      
                  </resources>
                  <j:choose>
                      <j:when test="${maven.jnlp.isapplet}">
                          <applet-desc main-class="${maven.jnlp.mainclass}" 
name="${maven.jnlp.applet.name}">
                              <u:tokenize var="listOfArguments" delim=" 
">${maven.jnlp.mainclass.arguments}</u:tokenize>
                              <j:forEach var="someArgument" items="${listOfArguments}">
                                <sysproperty key="${someArgument}" 
value="${context.findVariable(someArgument)}"/>
                              </j:forEach>
                          </applet-desc>
                      </j:when>
                      <j:when test="${maven.jnlp.isinstaller}">
                          <installer-desc main-class="${maven.jnlp.mainclass}"/>
                      </j:when>
                      <j:when test="${maven.jnlp.iscomponent}">
                          <component-desc/>
                      </j:when>
                      <j:otherwise>
                          <application-desc main-class="${maven.jnlp.mainclass}">
                              <u:tokenize var="listOfArguments" delim=" 
">${maven.jnlp.mainclass.arguments}</u:tokenize>
                              <j:forEach var="someArgument" items="${listOfArguments}">
                                <sysproperty key="${someArgument}" 
value="${context.findVariable(someArgument)}"/>
                              </j:forEach>
                          </application-desc>
                      </j:otherwise>
                  </j:choose>
              </jnlp>
          </j:file>
  
          <jj:available file="${maven.jnlp.signjar.store}" 
property="maven.jnlp.store.exists"/>
          <j:if test="${maven.jnlp.store.exists}">
  
              <jj:echo>Found a store...signing jars</jj:echo>
  
              <jj:echo>Signing jar files ...</jj:echo>
              <jj:signjar
                  jar="${maven.build.dir}/${maven.final.name}.jar"
                  signedjar="${maven.jnlp.dir}/${maven.final.name}.jar"
                  alias="${maven.jnlp.signjar.alias}"
                  storepass="${maven.jnlp.signjar.storepass}"
                  keystore="${maven.jnlp.signjar.store}"/>
  
              <j:forEach var="lib" items="${pom.dependencies}">
                  <j:if test="${lib.getProperty('jnlp.jar')=='true'}">
                      <jj:signjar
                          
jar="${maven.repo.local}/${lib.getProjectId()}/jars/${lib.getArtifact()}"
                          signedjar="${maven.jnlp.dir}/${lib.getArtifact()}"
                          alias="${maven.jnlp.signjar.alias}"
                          storepass="${maven.jnlp.signjar.storepass}"
                          keystore="${maven.jnlp.signjar.store}"/>
                  </j:if>
                  <j:if test="${lib.getProperty('jnlp.native.jar')=='true'}">
                      <jj:signjar
                          
jar="${maven.repo.local}/${lib.getProjectId()}/jars/${lib.getArtifact()}"
                          signedjar="${maven.jnlp.dir}/${lib.getArtifact()}"
                          alias="${maven.jnlp.signjar.alias}"
                          storepass="${maven.jnlp.signjar.storepass}"
                          keystore="${maven.jnlp.signjar.store}"/>
                  </j:if>
              </j:forEach>
          </j:if>
      </jj:goal>
      
      <!-- ================================================================== -->
      <!-- Generate keystore file for signing jar files                       -->
      <!-- ================================================================== -->
      <jj:goal name="jnlp:generate-keystore"
               description="Generate a keystore file">
          
          <jj:delete file="${maven.jnlp.signjar.store}"/>
          <jj:genkey alias="${maven.jnlp.signjar.alias}"
                     storepass="${maven.jnlp.signjar.storepass}"
                     keystore="${maven.jnlp.signjar.store}"
                     validity="${maven.jnlp.signjar.validity}" >
              <jj:dname>
                  <j:if test="${context.getVariable('maven.jnlp.signjar.dname.cn') != 
null}">
                      <jj:param name="CN" value="${maven.jnlp.signjar.dname.cn}" />
                  </j:if>
                  <j:if test="${context.getVariable('maven.jnlp.signjar.dname.ou') != 
null}">
                      <jj:param name="OU" value="${maven.jnlp.signjar.dname.ou}" />
                  </j:if>
                  <j:if test="${context.getVariable('maven.jnlp.signjar.dname.o') != 
null}">
                      <jj:param name="O" value="${maven.jnlp.signjar.dname.o}" />
                  </j:if>
                  <j:if test="${context.getVariable('maven.jnlp.signjar.dname.l') != 
null}">
                      <jj:param name="L" value="${maven.jnlp.signjar.dname.l}" />
                  </j:if>
                  <j:if test="${context.getVariable('maven.jnlp.signjar.dname.s') != 
null}">
                      <jj:param name="S" value="${maven.jnlp.signjar.dname.s}" />
                  </j:if>
                  <j:if test="${context.getVariable('maven.jnlp.signjar.dname.c') != 
null}">
                      <jj:param name="C" value="${maven.jnlp.signjar.dname.c}" />
                  </j:if>
              </jj:dname>
          </jj:genkey>
      </jj:goal>
  
  </jj:project>
  
  
  
  1.1                  jakarta-turbine-maven/src/plugins-build/jnlp/plugin.properties
  
  Index: plugin.properties
  ===================================================================
  # -------------------------------------------------------------------
  # P L U G I N  P R O P E R T I E S
  # -------------------------------------------------------------------
  maven.jnlp.dir=${maven.build.dir}/jnlp
  maven.jnlp.spec=1.0+
  
  maven.jnlp.http.codebase=${pom.url}
  maven.jnlp.title=${pom.name}
  ##maven.jnlp.vendor
  maven.jnlp.homepage=index.html
  ##maven.jnlp.icon
  maven.jnlp.description=${pom.description}
  maven.jnlp.description.short=${pom.shortDescription}
  ##maven.jnlp.offline.allowed=true
  ##maven.jnlp.permission=all or j2ee
  
  maven.jnlp.j2se.version=1.4
  maven.jnlp.j2se.heapsize.initial=32m
  maven.jnlp.j2se.heapsize.max=128m
  
  ##maven.jnlp.isapplet
  ##maven.jnlp.applet.name
  ##maven.jnlp.isinstaller
  ##maven.jnlp.mainclass
  ##maven.jnlp.iscomponent
  
  ##maven.jnlp.signjar.store
  ##maven.jnlp.signjar.storepass
  maven.jnlp.signjar.alias=${pom.id}
  
  maven.jnlp.signjar.validity=720
  ##maven.jnlp.signjar.dname.cn //Common name
  ##maven.jnlp.signjar.dname.ou //Organization unit
  maven.jnlp.signjar.dname.o=${pom.organization.name}
  ##maven.jnlp.signjar.dname.l //Locality
  ##maven.jnlp.signjar.dname.s //Street
  ##maven.jnlp.signjar.dname.c //Country
  
  
  
  1.1                  jakarta-turbine-maven/src/plugins-build/jnlp/project.properties
  
  Index: project.properties
  ===================================================================
  # -------------------------------------------------------------------
  # P R O J E C T  P R O P E R T I E S
  # -------------------------------------------------------------------
  maven.xdoc.date=left
  maven.xdoc.version=${pom.currentVersion}
  
  
  
  1.1                  jakarta-turbine-maven/src/plugins-build/jnlp/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <project>
  
      <pomVersion>3</pomVersion>
      <id>maven-jnlp-plugin</id>
      <name>Maven JNLP Plug-in</name>
      <currentVersion>1.0</currentVersion>
      <organization>
          <name>Apache Software Foundation</name>
          <url>http://jakarta.apache.org/</url>
          
<logo>http://jakarta.apache.org/turbine/maven/images/jakarta-logo-blue.gif</logo>
      </organization>
      <inceptionYear>2002</inceptionYear>
      <package>org.apache.maven</package>
      <logo>http://jakarta.apache.org/turbine/maven/images/maven.jpg</logo>
  
      <shortDescription>JNLP Plugin for Maven</shortDescription>
  
      <url>http://jakarta.apache.org/turbine/maven/reference/plugins/jnlp/</url>
      
<issueTrackingUrl>http://jira.werken.com/BrowseProject.jspa?id=10030</issueTrackingUrl>
      <siteAddress>jakarta.apache.org</siteAddress>
      
<siteDirectory>/www/jakarta.apache.org/turbine/maven/reference/plugins/jnlp/</siteDirectory>
      
<distributionDirectory>/www/jakarta.apache.org/builds/jakarta-turbine-maven/</distributionDirectory>
  
      <repository>
          
<connection>scm:cvs:pserver:[EMAIL PROTECTED]:/home/cvspublic:jakarta-turbine-maven/src/plugins-build/jnlp</connection>
          
<url>http://cvs.apache.org/viewcvs/jakarta-turbine-maven/src/plugins-build/jnlp/</url>
      </repository>
  
      <mailingLists>
        <mailingList>
          <name>Maven User List</name>
          <subscribe>[EMAIL PROTECTED]</subscribe>
          <unsubscribe>[EMAIL PROTECTED]</unsubscribe>
          
<archive>http://nagoya.apache.org/eyebrowse/SummarizeList?[EMAIL PROTECTED]</archive>
        </mailingList>
        <mailingList>
          <name>Maven Developer List</name>
          <subscribe>[EMAIL PROTECTED]</subscribe>
          <unsubscribe>[EMAIL PROTECTED]</unsubscribe>
          
<archive>http://nagoya.apache.org/eyebrowse/SummarizeList?[EMAIL PROTECTED]</archive>
        </mailingList>
      </mailingLists>
  
      <developers>
          <developer>
              <name>Emmanuel Venisse</name>
              <id>evenisse</id>
              <email>[EMAIL PROTECTED]</email>
              <organization>Fi System</organization>
              <roles>
                  <role>Java Developer</role>
              </roles>
          </developer>
  
          <developer>
              <name>James Birchfield</name>
              <id>moatas</id>
              <email>[EMAIL PROTECTED]</email>
              <organization>Birchfield &amp;amp; Associates, Inc.</organization>
              <roles>
                  <role>Java Developer</role>
              </roles>
          </developer>
      </developers>
      
      <dependencies/>
  
      <build/>
  
  </project>
  
  
  
  1.1                  jakarta-turbine-maven/src/plugins-build/jnlp/xdocs/goals.xml
  
  Index: goals.xml
  ===================================================================
  <?xml version="1.0"?>
  <document>
  
    <properties>
      <title>Maven JNLP Plug-in Goals</title>
      <author email="[EMAIL PROTECTED]">Emmanuel Venisse</author>
    </properties>
  
    <body>
      <section name="Goals">
        <table>
          <tr><th>Goal</th><th>Description</th></tr>
          <tr>
            <td>jnlp</td>
            <td>
              Default goal - see jnlp:generate-jnlp
            </td>
          </tr>
          <tr>
            <td>jnlp:generate-jnlp</td>
            <td>
              Generate the .jnlp file and sign all jars.
            </td>
          </tr>
          <tr>
            <td>jnlp:generate-keystore</td>
            <td>
              Generate a keystore file for signing your jars.
            </td>
          </tr>
        </table>
      </section>
   </body>
  </document>
  
  
  
  1.1                  jakarta-turbine-maven/src/plugins-build/jnlp/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  <?xml version="1.0"?>
  <document>
  
    <properties>
      <title>Maven JNLP Plug-in</title>
      <author email="[EMAIL PROTECTED]">Emmanuel Venisse</author>
    </properties>
  
    <body>
      <section name="Maven JNLP Plug-in">
        <p>
          This plug-in provides your basic jnlp facilities.
        </p>
        <p> 
          For more information on the functionality provided by this plugin,
          please see the <a href="goals.html">Goals</a> document.
        </p>
        <p>
          For more information on how to customise the functionality provided
          by this plugin, please see the <a href="properties.html">properties</a>
          document.
        </p>
      </section>
   </body>
  </document>
  
  
  
  1.1                  
jakarta-turbine-maven/src/plugins-build/jnlp/xdocs/navigation.xml
  
  Index: navigation.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <project name="Maven Java Plugin">
  
    <title>Maven JNLP Plug-in</title>
  
    <body>
      <links>
        <item name="Maven" href="http://jakarta.apache.org/turbine/maven/"/>
        <item name="Java Web Start"  
href="http://java.sun.com/products/javawebstart/"/>
        <item name="JNLP Specification"  
href="http://java.sun.com/products/javawebstart/download-spec.html"/>
      </links>
      <menu name="Overview">
        <item name="Goals"              href="/goals.html" />
        <item name="Properties"         href="/properties.html" />
      </menu>
    </body>
  </project>
  
  
  
  1.1                  
jakarta-turbine-maven/src/plugins-build/jnlp/xdocs/properties.xml
  
  Index: properties.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <document>
  
    <properties>
      <title>Properties</title>
      <author email="[EMAIL PROTECTED]">Emmanuel Venisse</author>
    </properties>
  
    <body>
      <section name="JNLP settings">
        <table>
          
<tr><th>Property</th><th>Optional?</th><th>Description</th><th>Default</th></tr>
          <tr>
            <td>maven.jnlp.dir</td>
            <td>Yes</td>
            <td>
              Root of generated .jnlp file and signing jars.
            </td>
            <td>
              ${maven.build.dir}/jnlp
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.spec</td>
            <td>Yes</td>
            <td>
              The versions of the specification that this JNLP file required.
            </td>
            <td>
              1.0+
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.http.codebase</td>
            <td>Yes</td>
            <td>
              The jnlp root element on web server.
            </td>
            <td>
              ${pom.url}
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.title</td>
            <td>Yes</td>
            <td>
              The name of the application.
            </td>
            <td>
              ${pom.name}
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.vendor</td>
            <td>Yes</td>
            <td>
              The name of the application.
            </td>
            <td>The name of the vendor of the application.</td>
          </tr>
          <tr>
            <td>maven.jnlp.homepage</td>
            <td>Yes</td>
            <td>
              URL locating the home page for the application. It can be used
              by the JNLP Client to point the user to a Web page where they
              can find more information about the application.
            </td>
            <td>
              index.html
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.icon</td>
            <td>Yes</td>
            <td>
              URL locating the icon of the application.
              The icon can be used by a JNLP Client to identify the application to the 
user.
            </td>
            <td></td>
          </tr>
          <tr>
            <td>maven.jnlp.description</td>
            <td>Yes</td>
            <td>
              The default description of the application.
              All descriptions contains plain text. No formatting, such as, e.g.,
              HTML tags are supported.
            </td>
            <td>
              ${pom.description}
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.description.one-line</td>
            <td>Yes</td>
            <td>
              If a reference to the application is going to appear in one row
              in a list or a table, this description will be used.
            </td>
            <td></td>
          </tr>
          <tr>
            <td>maven.jnlp.description.short</td>
            <td>Yes</td>
            <td>
              The short description of the application.
              If a reference to the application is going to be displayed in a
              situation where there is room for a paragraph, this description is used.
            </td>
            <td>
              ${pom.shortDescription}
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.description.tooltip</td>
            <td>Yes</td>
            <td>
              A description of the application intended to be used as a tooltip.
            </td>
            <td></td>
          </tr>
          <tr>
            <td>maven.jnlp.offline.allowed</td>
            <td>Yes</td>
            <td>
              The optional offline-allowed element indicates if the application can 
work
              while the client system is disconnected from the network. The default is
              that an application only works if the client system is online.
            </td>
            <td>
              false
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.permission</td>
            <td>Yes</td>
            <td>
              Possible values : all or j2ee.
              The specification specifies two trusted environments, the all-permissions
              environment and an environment that meets the security specifications of
              the J2EE Application Client environment. Both of these environments 
provide
              unrestricted access to the network and local disk. Thus, an application 
can
              intentionally or unintentionally harm the local system. An application 
must
              only be launched if it is trusted.
            </td>
            <td></td>
          </tr>
          <tr>
            <td>maven.jnlp.j2se.version</td>
            <td>Yes</td>
            <td>
              Describes supported version of the JRE.
            </td>
            <td>
              1.4
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.j2se.heapsize.initial</td>
            <td>Yes</td>
            <td>
              Indicates the initial size of the Java heap. The modifiers m and k can 
be used
              for megabytes and kilobytes, respectively. For example, "128m" will be 
the same
              as specifying "134217728" (128*1024*1024). The modifiers are not 
case-sensitive.
            </td>
            <td>
              32m
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.j2se.heapsize.max</td>
            <td>Yes</td>
            <td>
              Indicates the maximum size of the Java heap. The modifiers m and k can be
              used for megabytes and kilobytes, respectively. For example, "128m" will
              be the same as specifying "134217728" (128*1024*1024). The modifiers are
              not case-sensitive.
            </td>
            <td>
              128m
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.isapplet</td>
            <td>Yes</td>
            <td>
              Defines if JNLP file describes an applet.
            </td>
            <td>
              false
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.applet.name</td>
            <td>Yes</td>
            <td>
              The applet name.
            </td>
            <td></td>
          </tr>
          <tr>
            <td>maven.jnlp.isinstaller</td>
            <td>Yes</td>
            <td>
              Defines if JNLP file describes an installer.
            </td>
            <td>
              false
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.iscomponent</td>
            <td>Yes</td>
            <td>
              Defines if JNLP file describes a component.
            </td>
            <td>
              false
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.mainclass</td>
            <td>Yes</td>
            <td>
              The main class for the application or the applet.
              If this is not specified, then the Main-Class manifest entry for the main
              JAR file is used. If neither is specified, then the launch must be 
aborted.
            </td>
            <td></td>
          </tr>
        </table>
      </section>
      <section name="Keystore settings">
        <table>
          <tr><th>Property</th><th>Description</th><th>See</th></tr>
          <tr>
            <td>maven.jnlp.signjar.store</td>
            <td>Yes</td>
            <td>
              The keystore location. It's necessary if you want sign your jars.
            </td>
            <td></td>
          </tr>
          <tr>
            <td>maven.jnlp.signjar.storepass</td>
            <td>Yes</td>
            <td>
              The password for keystore integrity. Must be at least 6 characters long.
            </td>
            <td></td>
          </tr>
          <tr>
            <td>maven.jnlp.signjar.alias</td>
            <td>Yes</td>
            <td>
              The alias for the keystore.
            </td>
            <td>
              ${pom.id}
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.signjar.validity</td>
            <td>Yes</td>
            <td>
              Indicates how many days certificate is valid.
            </td>
            <td>
              720
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.signjar.dname.cn</td>
            <td>Yes</td>
            <td>
              The common name of distinguished name.
            </td>
            <td></td>
          </tr>
          <tr>
            <td>maven.jnlp.signjar.dname.ou</td>
            <td>Yes</td>
            <td>
              The organization unit of distinguished name.
            </td>
            <td></td>
          </tr>
          <tr>
            <td>maven.jnlp.signjar.dname.o</td>
            <td>Yes</td>
            <td>
              The organization of distinguished name.
            </td>
            <td>
              ${pom.organization.name}
            </td>
          </tr>
          <tr>
            <td>maven.jnlp.signjar.dname.l</td>
            <td>Yes</td>
            <td>
              The locality of distinguished name.
            </td>
            <td></td>
          </tr>
          <tr>
            <td>maven.jnlp.signjar.dname.s</td>
            <td>Yes</td>
            <td>
              The street of distinguished name.
            </td>
            <td></td>
          </tr>
          <tr>
            <td>maven.jnlp.signjar.dname.c</td>
            <td>Yes</td>
            <td>
              The country of distinguished name.
            </td>
            <td></td>
          </tr>
        </table>
      </section>
      <section name="Including Jars in JNLP distribution">
        <p>
          You must tell Maven what jars you want included in the jnlp distribution.
          This is achieved by specifying meta-information in the POM, using the
          following syntax for jar files :
        </p>
  
    <source><![CDATA[
      <dependency>
        <id>jarid</id>
        <version>jarversion</version>
        <properties>
          <jnlp.jar>true</jnlp.jar>
        </properties>
      </dependency>
    ]]></source>
  
        <p>
        Or for native jar files :
        </p>
  
    <source><![CDATA[
      <dependency>
        <id>jarid</id>
        <version>jarversion</version>
        <properties>
          <jnlp.native.jar>true</jnlp.native.jar>
        </properties>
      </dependency>
    ]]></source>
        </section>
    </body>
  </document>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to