<?xml version="1.0" encoding="UTF-8"?>
<section id="ccreate" xreflabel="ccreate">
    <?dbhtml filename="ccreate.html"?>
    <sectioninfo>
        <keywordset>
            <keyword>create</keyword>
            <keyword>component</keyword>
            <keyword>CDK</keyword>
            <keyword>Guide</keyword>
        </keywordset>
    </sectioninfo>
    <title>Creating and building component skeleton</title>
    <para> Let&apos;s create a skeleton for the <emphasis role="bold">
            <property>&lt;inputDate&gt;</property>
        </emphasis> component. </para>
    <para> You need to go to the <property>inputDate</property> directory and then launch the
        following command: </para>
    <programlisting role="XML"><![CDATA[mvn cdk:create -Dname=inputDate]]></programlisting>
    <para> As a result three artifacts will be created: </para>
    <itemizedlist>
        <listitem>
            <para> An XML configuration file for the metadata </para>
        </listitem>
        <listitem>
            <para> A UI class </para>
        </listitem>
        <listitem>
            <para> A JSP-like template </para>
        </listitem>
    </itemizedlist>
    <para> In order to build the component you should stay in the <property>inputDate</property>
        directory and launch the following command:</para>
    <programlisting role="XML"><![CDATA[mvn install]]></programlisting>
    <para> This command generates and compiles the library and then creates a result JAR file. A
        directory named <property>target</property> will be created along with a
        <property>src</property> directory. If you get a file named
            <property>target/inputDate-1.0-SNAPSHOT.jar</property>, everything is set up
        successfully. </para>
    <para>
    If you want to rebuild the component you could use the following command:
    </para>
    <programlisting role="XML"><![CDATA[mvn clean install]]></programlisting>
</section>
