<archetype>
  <id>maven-archetype-jbi-component</id>
  <variables>
    <variable>
      <name>ComponentName</name>
      <description>JBI Component Name</description>
      <defvalue>JBI</defvalue>
    </variable>
    <variable>
          <name>ServiceEngine</name>
          <description>Boolean flag if JBI Component is a service engine</description>
          <defvalue>false</defvalue>
    </variable>
    </variables>
  <templates>
    <template>
      <file>src/main/jbi/META-INF/jbi.vm</file>
    <output>src/main/jbi/META-INF/jbi.xml</output>
    </template>
    <template>
          <file>pom.vm</file>
        <output>pom.xml</output>
    </template>
    <template>
          <file>runtime/pom.vm</file>
        <output>runtime/pom.xml</output>
    </template>
    <template>
          <file>boot/pom.vm</file>
        <output>boot/pom.xml</output>
    </template>
    <template>
      <file>boot/src/main/java/Bootstrap.vm</file>
      <output>boot/src/main/java/${packagePath}/${ComponentName}Bootstrap.java</output>
    </template>
    <template>
          <file>runtime/src/main/java/SUManager.vm</file>
          <output>runtime/src/main/java/${packagePath}/${ComponentName}SUManager.java</output>
    </template>
    <template>
         <file>runtime/src/main/java/Component.vm</file>
         <output>runtime/src/main/java/${packagePath}/${ComponentName}Component.java</output>
    </template>
    <template>
         <file>runtime/src/main/java/Lifecycle.vm</file>
         <output>runtime/src/main/java/${packagePath}/${ComponentName}LifeCycle.java</output>
    </template>
  </templates>
</archetype>

