<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <parent>
    <artifactId>jomc-parent</artifactId>
    <groupId>org.jomc</groupId>
    <version>1.0-alpha-11</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>jomc-cli</artifactId>
  <name>JOMC CLI</name>
  <version>1.0-alpha-11</version>
  <description>Object management and configuration tools command line interface.</description>
  <build>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/resources</directory>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <filtering>true</filtering>
        <directory>src/test/resources</directory>
      </testResource>
    </testResources>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>2.2-beta-4</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>javacc-maven-plugin</artifactId>
          <version>2.6</version>
          <executions>
            <execution>
              <id>javacc</id>
              <goals>
                <goal>javacc</goal>
              </goals>
              <configuration>
                <jdkVersion>1.4</jdkVersion>
                <forceLaCheck>true</forceLaCheck>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <version>2.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.0.2</version>
          <configuration>
            <source>1.5</source>
            <target>1.5</target>
            <debug>true</debug>
            <encoding>${project.build.sourceEncoding}</encoding>
            <optimize>true</optimize>
            <showDeprecation>true</showDeprecation>
            <showWarnings>true</showWarnings>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.jomc</groupId>
          <artifactId>maven-jomc-plugin</artifactId>
          <version>1.0-alpha-11</version>
          <executions>
            <execution>
              <id>main-java-sources</id>
              <goals>
                <goal>main-java-sources</goal>
              </goals>
            </execution>
            <execution>
              <id>main-java-classes</id>
              <goals>
                <goal>main-java-classes</goal>
                <goal>validate-main-java-classes</goal>
              </goals>
            </execution>
            <execution>
              <id>test-java-sources</id>
              <goals>
                <goal>test-java-sources</goal>
              </goals>
            </execution>
            <execution>
              <id>test-java-classes</id>
              <goals>
                <goal>test-java-classes</goal>
                <goal>validate-test-java-classes</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>2.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>2.4</version>
        </plugin>
        <plugin>
          <artifactId>maven-ear-plugin</artifactId>
          <version>2.3.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-ejb-plugin</artifactId>
          <version>2.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-shade-plugin</artifactId>
          <version>1.2.2</version>
          <executions>
            <execution>
              <id>shade</id>
              <phase>package</phase>
              <goals>
                <goal>shade</goal>
              </goals>
              <configuration>
                <artifactSet>
                  <includes>
                    <include>org.jomc:jomc-api</include>
                    <include>org.jomc:jomc-spi</include>
                    <include>org.jomc:jomc-util</include>
                    <include>org.jomc:jomc-model</include>
                    <include>org.jomc:jomc-ri</include>
                    <include>org.jomc:jomc-tools</include>
                    <include>org.jomc:jomc-cli</include>
                    <include>commons-cli:commons-cli</include>
                    <include>commons-collections:commons-collections</include>
                    <include>commons-io:commons-io</include>
                    <include>commons-lang:commons-lang</include>
                    <include>org.apache.bcel:bcel</include>
                    <include>org.apache.velocity:velocity</include>
                    <include>jakarta-regexp:jakarta-regexp</include>
                    <include>oro:oro</include>
                  </includes>
                </artifactSet>
                <relocations>
                  <relocation>
                    <pattern>org.jomc.ObjectManager</pattern>
                    <shadedPattern>org.jomc.cli.util.ObjectManager</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.jomc.ObjectManagerFactory</pattern>
                    <shadedPattern>org.jomc.cli.util.ObjectManagerFactory</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.jomc.ObjectManagementException</pattern>
                    <shadedPattern>org.jomc.cli.util.ObjectManagementException</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.jomc.spi</pattern>
                    <shadedPattern>org.jomc.cli.util</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.jomc.ri</pattern>
                    <shadedPattern>org.jomc.cli.util</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.jomc.util</pattern>
                    <shadedPattern>org.jomc.cli.util.text</shadedPattern>
                    <excludes>
                      <exclude>org.jomc.util.WeakIdentityHashMap*</exclude>
                      <exclude>org.jomc.util.ParseException</exclude>
                      <exclude>org.jomc.util.SimpleCharStream</exclude>
                      <exclude>org.jomc.util.Token*</exclude>
                      <exclude>org.jomc.util.Version*</exclude>
                    </excludes>
                  </relocation>
                  <relocation>
                    <pattern>org.jomc.util</pattern>
                    <shadedPattern>org.jomc.cli.util.collections.map</shadedPattern>
                    <excludes>
                      <exclude>org.jomc.util.Line*</exclude>
                      <exclude>org.jomc.util.Section*</exclude>
                      <exclude>org.jomc.util.Trailing*</exclude>
                      <exclude>org.jomc.util.ParseException</exclude>
                      <exclude>org.jomc.util.SimpleCharStream</exclude>
                      <exclude>org.jomc.util.Token*</exclude>
                      <exclude>org.jomc.util.Version*</exclude>
                    </excludes>
                  </relocation>
                  <relocation>
                    <pattern>org.jomc.util</pattern>
                    <shadedPattern>org.jomc.cli.util.versioning</shadedPattern>
                    <excludes>
                      <exclude>org.jomc.util.Line*</exclude>
                      <exclude>org.jomc.util.Section*</exclude>
                      <exclude>org.jomc.util.Trailing*</exclude>
                      <exclude>org.jomc.util.WeakIdentityHashMap*</exclude>
                    </excludes>
                  </relocation>
                  <relocation>
                    <pattern>org.jomc.tools</pattern>
                    <shadedPattern>org.jomc.cli.util.tools</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.apache.commons.cli</pattern>
                    <shadedPattern>org.jomc.cli.util.cli</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.apache.bcel</pattern>
                    <shadedPattern>org.jomc.cli.util.bcel</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.apache.commons.io</pattern>
                    <shadedPattern>org.jomc.cli.util.io</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.apache.commons.collections</pattern>
                    <shadedPattern>org.jomc.cli.util.collections</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.apache.commons.lang</pattern>
                    <shadedPattern>org.jomc.cli.util.lang</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.apache.regexp</pattern>
                    <shadedPattern>org.jomc.cli.util.regexp</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.apache.oro</pattern>
                    <shadedPattern>org.jomc.cli.util.oro</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>org.apache.velocity</pattern>
                    <shadedPattern>org.jomc.cli.util.velocity</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>/org/apache/velocity/runtime/defaults</pattern>
                    <shadedPattern>/org/jomc/cli/util/velocity/runtime/defaults</shadedPattern>
                  </relocation>
                  <relocation>
                    <pattern>/org/apache/velocity/texen/defaults</pattern>
                    <shadedPattern>/org/jomc/cli/util/velocity/texen/defaults</shadedPattern>
                  </relocation>
                </relocations>
                <filters>
                  <filter>
                    <artifact>commons-cli:commons-cli</artifact>
                    <excludes>
                      <exlucde>META-INF/**</exlucde>
                    </excludes>
                  </filter>
                  <filter>
                    <artifact>commons-collections:commons-collections</artifact>
                    <excludes>
                      <exlucde>META-INF/**</exlucde>
                    </excludes>
                  </filter>
                  <filter>
                    <artifact>commons-io:commons-io</artifact>
                    <excludes>
                      <exlucde>META-INF/**</exlucde>
                    </excludes>
                  </filter>
                  <filter>
                    <artifact>commons-lang:commons-lang</artifact>
                    <excludes>
                      <exlucde>META-INF/**</exlucde>
                    </excludes>
                  </filter>
                  <filter>
                    <artifact>org.apache.bcel:bcel</artifact>
                    <excludes>
                      <exlucde>META-INF/**</exlucde>
                    </excludes>
                  </filter>
                  <filter>
                    <artifact>org.apache.velocity:velocity</artifact>
                    <excludes>
                      <exlucde>META-INF/**</exlucde>
                    </excludes>
                  </filter>
                  <filter>
                    <artifact>jakarta-regexp:jakarta-regexp</artifact>
                    <excludes>
                      <exlucde>META-INF/**</exlucde>
                    </excludes>
                  </filter>
                  <filter>
                    <artifact>oro:oro</artifact>
                    <excludes>
                      <exlucde>META-INF/**</exlucde>
                    </excludes>
                  </filter>
                </filters>
                <transformers>
                  <transformer>
                    <moduleName>${project.name}</moduleName>
                    <moduleVersion>${project.version}</moduleVersion>
                    <moduleVendor>${project.organization.name}</moduleVendor>
                    <moduleResource>META-INF/jomc-cli.xml</moduleResource>
                    <moduleResources>
                      <moduleResource>META-INF/jomc.xml</moduleResource>
                    </moduleResources>
                    <bootstrapResource>META-INF/jomc-bootstrap.xml</bootstrapResource>
                    <bootstrapResources>
                      <bootstrapResource>META-INF/jomc-bootstrap.xml</bootstrapResource>
                    </bootstrapResources>
                    <modelObjectStylesheet>src/main/jomc/relocations.xslt</modelObjectStylesheet>
                  </transformer>
                  <transformer />
                </transformers>
              </configuration>
            </execution>
          </executions>
          <dependencies>
            <dependency>
              <groupId>asm</groupId>
              <artifactId>asm</artifactId>
              <version>3.2</version>
            </dependency>
            <dependency>
              <groupId>asm</groupId>
              <artifactId>asm-commons</artifactId>
              <version>3.2</version>
            </dependency>
            <dependency>
              <groupId>org.jomc</groupId>
              <artifactId>maven-jomc-plugin</artifactId>
              <version>${project.version}</version>
            </dependency>
          </dependencies>
        </plugin>
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <version>2.3</version>
          <configuration>
            <archive>
              <index>true</index>
              <addMavenDescriptor>false</addMavenDescriptor>
              <compress>true</compress>
              <manifestEntries>
                <Build-Date>${buildNumber}</Build-Date>
                <Maven-Version>${maven.version}</Maven-Version>
              </manifestEntries>
            </archive>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.6.1</version>
          <configuration>
            <breakiterator>true</breakiterator>
            <keywords>true</keywords>
            <linksource>true</linksource>
            <serialwarn>true</serialwarn>
            <source>1.5</source>
            <doctitle>${project.name} ${project.version}</doctitle>
            <windowtitle>${project.name} ${project.version}</windowtitle>
            <detectJavaApiLink>true</detectJavaApiLink>
            <detectOfflineLinks>false</detectOfflineLinks>
            <groups>
              <group>
                <title>Application Programming Interface</title>
                <packages>org.jomc</packages>
              </group>
              <group>
                <title>Implementation Programming Interface</title>
                <packages>org.jomc.spi*</packages>
              </group>
              <group>
                <title>Command Line Interface</title>
                <packages>org.jomc.cli*</packages>
              </group>
              <group>
                <title>Model</title>
                <packages>org.jomc.model*</packages>
              </group>
              <group>
                <title>Tools</title>
                <packages>org.jomc.tools*</packages>
              </group>
              <group>
                <title>Maven 2 Goals</title>
                <packages>org.jomc.tools.mojo*</packages>
              </group>
              <group>
                <title>Reference Implementation</title>
                <packages>org.jomc.ri*</packages>
              </group>
            </groups>
            <doclet>gr.spinellis.umlgraph.doclet.UmlGraphDoc</doclet>
            <docletArtifact>
              <groupId>gr.spinellis</groupId>
              <artifactId>UmlGraph</artifactId>
              <version>4.6</version>
            </docletArtifact>
            <tagletArtifacts>
              <tagletArtifact>
                <groupId>org.apache.maven.plugin-tools</groupId>
                <artifactId>maven-plugin-tools-javadoc</artifactId>
                <version>2.5</version>
              </tagletArtifact>
              <tagletArtifact>
                <groupId>org.codehaus.plexus</groupId>
                <artifactId>plexus-javadoc</artifactId>
                <version>1.0</version>
              </tagletArtifact>
            </tagletArtifacts>
            <additionalparam>-inferrel -inferdep -hide java.* -hide org.jomc.tools.*
              -hide org.jomc.ri.* -collpackages java.util.* -qualify
              -postfixpackage -nodefontsize 9 -nodefontpackagesize 7</additionalparam>
            <archive>
              <index>true</index>
              <addMavenDescriptor>false</addMavenDescriptor>
              <compress>true</compress>
              <manifestEntries>
                <Build-Date>${buildNumber}</Build-Date>
                <Maven-Version>${maven.version}</Maven-Version>
              </manifestEntries>
            </archive>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-plugin-plugin</artifactId>
          <version>2.5.1</version>
          <executions>
            <execution>
              <id>helpmojo</id>
              <goals>
                <goal>helpmojo</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-rar-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>jaxb2-maven-plugin</artifactId>
          <version>1.3</version>
          <executions>
            <execution>
              <id>xjc</id>
              <goals>
                <goal>xjc</goal>
              </goals>
              <configuration>
                <arguments>-copy-constructor -cc-visibility private -cc-target 1.5 -mark-generated -Xinject-code</arguments>
                <bindingDirectory>src/main/schemas</bindingDirectory>
                <schemaDirectory>src/main/schemas</schemaDirectory>
                <extension>true</extension>
              </configuration>
            </execution>
            <execution>
              <id>testXjc</id>
              <goals>
                <goal>testXjc</goal>
              </goals>
              <configuration>
                <arguments>-copy-constructor -cc-visibility private -cc-target 1.5 -mark-generated -Xinject-code</arguments>
                <bindingDirectory>src/test/schemas</bindingDirectory>
                <schemaDirectory>src/test/schemas</schemaDirectory>
                <extension>true</extension>
              </configuration>
            </execution>
          </executions>
          <dependencies>
            <dependency>
              <groupId>net.sourceforge.ccxjc</groupId>
              <artifactId>cc-xjc-plugin</artifactId>
              <version>1.2</version>
            </dependency>
          </dependencies>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>buildnumber-maven-plugin</artifactId>
          <version>1.0-beta-4</version>
          <executions>
            <execution>
              <id>create-buildnumber</id>
              <phase>validate</phase>
              <goals>
                <goal>create</goal>
              </goals>
              <configuration>
                <format>{0,date,yyyy-MM-dd'T'HH:mm:ssZ}</format>
                <items>
                  <item>timestamp</item>
                </items>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.0-beta-9</version>
          <configuration>
            <username>${jomc.scm.username}</username>
            <password>${jomc.scm.password}</password>
            <preparationGoals>clean install</preparationGoals>
            <tagBase>https://jomc.svn.sourceforge.net/svnroot/jomc/jomc/tags</tagBase>
            <useReleaseProfile>false</useReleaseProfile>
            <releaseProfiles>jomc-release</releaseProfiles>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>2.4.1</version>
          <configuration>
            <delimiters>
              <delimiter>${*}</delimiter>
            </delimiters>
            <useDefaultDelimiters>false</useDefaultDelimiters>
            <escapeWindowsPaths>true</escapeWindowsPaths>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-site-plugin</artifactId>
          <version>2.0.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
          <version>2.1.1</version>
          <configuration>
            <archive>
              <index>true</index>
              <addMavenDescriptor>false</addMavenDescriptor>
              <compress>true</compress>
              <manifestEntries>
                <Build-Date>${buildNumber}</Build-Date>
                <Maven-Version>${maven.version}</Maven-Version>
              </manifestEntries>
            </archive>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-gpg-plugin</artifactId>
          <version>1.0-alpha-4</version>
        </plugin>
        <plugin>
          <artifactId>maven-jarsigner-plugin</artifactId>
          <version>1.2</version>
          <configuration>
            <excludeClassifiers>
              <excludeClassifier>bin</excludeClassifier>
            </excludeClassifiers>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-remote-resources-plugin</artifactId>
          <version>1.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.4.3</version>
          <configuration>
            <forkMode>once</forkMode>
            <systemProperties>
              <property>
                <name>org.jomc.model.DefaultModelManager.defaultLogLevel</name>
                <value>ALL</value>
              </property>
              <property>
                <name>org.jomc.ri.DefaultObjectManager.defaultLogLevel</name>
                <value>ALL</value>
              </property>
              <property>
                <name>org.jomc.tools.JomcTool.defaultLogLevel</name>
                <value>ALL</value>
              </property>
              <property>
                <name>org.jomc.cli.Jomc.defaultLogLevel</name>
                <value>ALL</value>
              </property>
              <property>
                <name>org.jomc.cli.command.AbstractJomcCommand.defaultLogLevel</name>
                <value>ALL</value>
              </property>
            </systemProperties>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.1-alpha-2</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>build-helper-maven-plugin</artifactId>
          <version>1.4</version>
          <executions>
            <execution>
              <goals>
                <goal>maven-version</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-scm-plugin</artifactId>
          <version>1.2</version>
          <configuration>
            <message>[maven-scm-plugin] Build ${buildNumber}</message>
            <username>${jomc.scm.username}</username>
            <password>${jomc.scm.password}</password>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>unpack</id>
            <phase>package</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>org.jomc</groupId>
                  <artifactId>jomc-tools</artifactId>
                  <version>${project.version}</version>
                  <outputDirectory>${project.build.directory}/jomc-tools</outputDirectory>
                </artifactItem>
                <artifactItem>
                  <groupId>org.jomc</groupId>
                  <artifactId>jomc-model</artifactId>
                  <classifier>schemas</classifier>
                  <version>${project.version}</version>
                  <outputDirectory>${project.build.directory}/jomc-schemas</outputDirectory>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
          <execution>
            <id>copy</id>
            <phase>package</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>org.jomc</groupId>
                  <artifactId>jomc-api</artifactId>
                  <version>${project.version}</version>
                  <classifier>javadoc</classifier>
                  <outputDirectory>${project.build.directory}/jomc-javadoc</outputDirectory>
                </artifactItem>
                <artifactItem>
                  <groupId>org.jomc</groupId>
                  <artifactId>jomc-spi</artifactId>
                  <version>${project.version}</version>
                  <classifier>javadoc</classifier>
                  <outputDirectory>${project.build.directory}/jomc-javadoc</outputDirectory>
                </artifactItem>
                <artifactItem>
                  <groupId>org.jomc</groupId>
                  <artifactId>jomc-util</artifactId>
                  <version>${project.version}</version>
                  <classifier>javadoc</classifier>
                  <outputDirectory>${project.build.directory}/jomc-javadoc</outputDirectory>
                </artifactItem>
                <artifactItem>
                  <groupId>org.jomc</groupId>
                  <artifactId>jomc-model</artifactId>
                  <version>${project.version}</version>
                  <classifier>javadoc</classifier>
                  <outputDirectory>${project.build.directory}/jomc-javadoc</outputDirectory>
                </artifactItem>
                <artifactItem>
                  <groupId>org.jomc</groupId>
                  <artifactId>jomc-ri</artifactId>
                  <version>${project.version}</version>
                  <classifier>javadoc</classifier>
                  <outputDirectory>${project.build.directory}/jomc-javadoc</outputDirectory>
                </artifactItem>
                <artifactItem>
                  <groupId>org.jomc</groupId>
                  <artifactId>jomc-tools</artifactId>
                  <version>${project.version}</version>
                  <classifier>javadoc</classifier>
                  <outputDirectory>${project.build.directory}/jomc-javadoc</outputDirectory>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <mainClass>org.jomc.cli.Jomc</mainClass>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.jomc</groupId>
        <artifactId>maven-jomc-plugin</artifactId>
        <executions>
          <execution>
            <id>main-java-classes</id>
            <goals>
              <goal>main-java-classes</goal>
              <goal>validate-main-java-classes</goal>
            </goals>
            <configuration>
              <modelObjectStylesheet>src/main/jomc/relocations.xslt</modelObjectStylesheet>
            </configuration>
          </execution>
          <execution>
            <id>validate-runtime-modules</id>
            <goals>
              <goal>validate-runtime-modules</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
          <execution>
            <id>bin-assembly</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
            <configuration>
              <finalName>jomc-${project.version}</finalName>
              <descriptors>
                <descriptor>src/main/assembly/bin-release.xml</descriptor>
              </descriptors>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>jomc-ci</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.jomc</groupId>
            <artifactId>maven-jomc-plugin</artifactId>
          </plugin>
          <plugin>
            <artifactId>maven-scm-plugin</artifactId>
            <executions>
              <execution>
                <id>update-workdir</id>
                <phase>validate</phase>
                <goals>
                  <goal>update</goal>
                </goals>
              </execution>
              <execution>
                <id>main-java-sources</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>checkin</goal>
                </goals>
              </execution>
              <execution>
                <id>test-java-sources</id>
                <phase>process-test-resources</phase>
                <goals>
                  <goal>checkin</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>jomc-release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
              <execution>
                <id>copy</id>
                <phase>package</phase>
                <goals>
                  <goal>copy</goal>
                </goals>
                <configuration>
                  <artifactItems>
                    <artifactItem>
                      <groupId>org.jomc</groupId>
                      <artifactId>jomc-api</artifactId>
                      <version>${project.version}</version>
                      <classifier>javadoc</classifier>
                      <outputDirectory>${project.build.directory}/jomc-javadoc</outputDirectory>
                    </artifactItem>
                    <artifactItem>
                      <groupId>org.jomc</groupId>
                      <artifactId>jomc-spi</artifactId>
                      <version>${project.version}</version>
                      <classifier>javadoc</classifier>
                      <outputDirectory>${project.build.directory}/jomc-javadoc</outputDirectory>
                    </artifactItem>
                    <artifactItem>
                      <groupId>org.jomc</groupId>
                      <artifactId>jomc-util</artifactId>
                      <version>${project.version}</version>
                      <classifier>javadoc</classifier>
                      <outputDirectory>${project.build.directory}/jomc-javadoc</outputDirectory>
                    </artifactItem>
                    <artifactItem>
                      <groupId>org.jomc</groupId>
                      <artifactId>jomc-model</artifactId>
                      <version>${project.version}</version>
                      <classifier>javadoc</classifier>
                      <outputDirectory>${project.build.directory}/jomc-javadoc</outputDirectory>
                    </artifactItem>
                    <artifactItem>
                      <groupId>org.jomc</groupId>
                      <artifactId>jomc-ri</artifactId>
                      <version>${project.version}</version>
                      <classifier>javadoc</classifier>
                      <outputDirectory>${project.build.directory}/jomc-javadoc</outputDirectory>
                    </artifactItem>
                    <artifactItem>
                      <groupId>org.jomc</groupId>
                      <artifactId>jomc-tools</artifactId>
                      <version>${project.version}</version>
                      <classifier>javadoc</classifier>
                      <outputDirectory>${project.build.directory}/jomc-javadoc</outputDirectory>
                    </artifactItem>
                  </artifactItems>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-deploy-plugin</artifactId>
            <configuration>
              <updateReleaseInfo>true</updateReleaseInfo>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-shade-plugin</artifactId>
          </plugin>
          <plugin>
            <artifactId>maven-jarsigner-plugin</artifactId>
            <executions>
              <execution>
                <id>sign</id>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
              <execution>
                <id>verify</id>
                <goals>
                  <goal>verify</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
              <execution>
                <id>bin-assembly</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <finalName>jomc-${project.version}</finalName>
                  <descriptors>
                    <descriptor>src/main/assembly/bin-release.xml</descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <executions>
              <execution>
                <id>sign</id>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>javax.annotation</groupId>
      <artifactId>jsr250-api</artifactId>
      <version>1.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>2.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.xml.stream</groupId>
      <artifactId>stax-api</artifactId>
      <version>1.0-2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.activation</groupId>
      <artifactId>activation</artifactId>
      <version>1.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-impl</artifactId>
      <version>2.1.12</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
</project>

