8385c9
8385c9
8385c9
    Copyright (C) 2010 the original author or authors.
8385c9
    See the notice.md file distributed with this work for additional
8385c9
    information regarding copyright ownership.
8385c9
8385c9
    Licensed under the Apache License, Version 2.0 (the "License");
8385c9
    you may not use this file except in compliance with the License.
8385c9
    You may obtain a copy of the License at
8385c9
8385c9
        http://www.apache.org/licenses/LICENSE-2.0
8385c9
8385c9
    Unless required by applicable law or agreed to in writing, software
8385c9
    distributed under the License is distributed on an "AS IS" BASIS,
8385c9
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8385c9
    See the License for the specific language governing permissions and
8385c9
    limitations under the License.
8385c9
8385c9
-->
8385c9
8385c9
<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">
8385c9
  <modelVersion>4.0.0</modelVersion>
8385c9
  <groupId>com.beust</groupId>
8385c9
  <artifactId>jcommander</artifactId>
8385c9
  <packaging>jar</packaging>
8385c9
  <name>JCommander</name>
8385c9
  <version>@VERSION@</version>
8385c9
  <description>A Java framework to parse command line options with annotations.</description>
8385c9
  <url>http://beust.com/jcommander</url>
8385c9
  <licenses>
8385c9
    <license>
8385c9
      <name>The Apache Software License, Version 2.0</name>
8385c9
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
8385c9
      <distribution>repo</distribution>
8385c9
    </license>
8385c9
  </licenses>
8385c9
  <scm>
8385c9
    <connection>scm:git:git@github.com:cbeust/jcommander.git</connection>
8385c9
    <developerConnection>scm:git:git@github.com:cbeust/jcommander.git</developerConnection>
8385c9
    <url>git@github.com:cbeust/jcommander.git</url>
8385c9
  </scm>
8385c9
8385c9
  <repositories>
8385c9
    <repository>
8385c9
      <id>jcenter</id>
8385c9
      <name>bintray</name>
8385c9
      <url>http://jcenter.bintray.com</url>
8385c9
    </repository>
8385c9
8385c9
    <repository>
8385c9
      <id>sonatype-nexus-staging</id>
8385c9
      <name>Nexus Staging Repository</name>
8385c9
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
8385c9
    </repository>
8385c9
    <repository>
8385c9
      <id>oss-jfrog-artifactory</id>
8385c9
      <name>oss-jfrog-artifactory-snapshots</name>
8385c9
      <url>http://oss.jfrog.org/artifactory/oss-snapshot-local</url>
8385c9
    </repository>
8385c9
-->
8385c9
  </repositories>
8385c9
8385c9
  <distributionManagement>
8385c9
    <repository>
8385c9
      <id>sonatype-nexus-staging</id>
8385c9
      <name>Nexus Staging Repository</name>
8385c9
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
8385c9
    </repository>
8385c9
  </distributionManagement>
8385c9
8385c9
  <developers>
8385c9
    <developer>
8385c9
      <name>Cedric Beust</name>
8385c9
    </developer>
8385c9
  </developers>
8385c9
8385c9
  <build>
8385c9
    <plugins>
8385c9
      
8385c9
      <plugin>
8385c9
        <groupId>org.apache.maven.plugins</groupId>
8385c9
        <artifactId>maven-compiler-plugin</artifactId>
8385c9
        <version>2.3.1</version>
8385c9
        <configuration>
8385c9
          <source>1.8</source>
8385c9
          <target>1.8</target>
8385c9
          <encoding>UTF-8</encoding>
8385c9
        </configuration>
8385c9
      </plugin>
8385c9
8385c9
      
8385c9
      <plugin>
8385c9
        <groupId>org.apache.maven.plugins</groupId>
8385c9
        <artifactId>maven-resources-plugin</artifactId>
8385c9
        <version>2.4.1</version>
8385c9
        <configuration>
8385c9
          <encoding>UTF-8</encoding>
8385c9
        </configuration>
8385c9
      </plugin>
8385c9
8385c9
      
8385c9
      <plugin>
8385c9
        <groupId>org.apache.felix</groupId>
8385c9
        <artifactId>maven-bundle-plugin</artifactId>
8385c9
        <version>2.1.0</version>
8385c9
        <executions>
8385c9
          <execution>
8385c9
            <id>bundle-manifest</id>
8385c9
            <phase>process-classes</phase>
8385c9
            <goals>
8385c9
              <goal>manifest</goal>
8385c9
            </goals>
8385c9
            <configuration>
8385c9
              <instructions>
8385c9
                <_versionpolicy>$(@)</_versionpolicy>
8385c9
              </instructions>
8385c9
            </configuration>
8385c9
          </execution>
8385c9
        </executions>
8385c9
      </plugin>
8385c9
8385c9
      
8385c9
      <plugin>
8385c9
        <groupId>org.apache.maven.plugins</groupId>
8385c9
        <artifactId>maven-jar-plugin</artifactId>
8385c9
        <version>2.3.1</version>
8385c9
        <configuration>
8385c9
          <archive>
8385c9
            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
8385c9
          </archive>
8385c9
        </configuration>
8385c9
      </plugin>
8385c9
8385c9
      
8385c9
      <plugin>
8385c9
        <groupId>org.apache.maven.plugins</groupId>
8385c9
        <artifactId>maven-surefire-plugin</artifactId>
8385c9
        <version>2.10</version>
8385c9
        <configuration>
8385c9
          <skipTests>false</skipTests>
8385c9
        </configuration>
8385c9
      </plugin>
8385c9
8385c9
      
8385c9
      <plugin>
8385c9
        <groupId>org.apache.maven.plugins</groupId>
8385c9
        <artifactId>maven-javadoc-plugin</artifactId>
8385c9
        <version>2.7</version>
8385c9
        <configuration>
8385c9
          <excludePackageNames>*.internal</excludePackageNames>
8385c9
        </configuration>
8385c9
      </plugin>
8385c9
    </plugins>
8385c9
    <pluginManagement>
8385c9
        <plugins>
8385c9
            
8385c9
            <plugin>
8385c9
                <groupId>org.eclipse.m2e</groupId>
8385c9
                <artifactId>lifecycle-mapping</artifactId>
8385c9
                <version>1.0.0</version>
8385c9
                <configuration>
8385c9
                    <lifecycleMappingMetadata>
8385c9
                        <pluginExecutions>
8385c9
                            <pluginExecution>
8385c9
                                <pluginExecutionFilter>
8385c9
                                    <groupId>org.apache.felix</groupId>
8385c9
                                    <artifactId>
8385c9
                                        maven-bundle-plugin
8385c9
                                    </artifactId>
8385c9
                                    <versionRange>
8385c9
                                        [2.1.0,)
8385c9
                                    </versionRange>
8385c9
                                    <goals>
8385c9
                                        <goal>manifest</goal>
8385c9
                                    </goals>
8385c9
                                </pluginExecutionFilter>
8385c9
                                <action>
8385c9
                                    <ignore />
8385c9
                                </action>
8385c9
                            </pluginExecution>
8385c9
                        </pluginExecutions>
8385c9
                    </lifecycleMappingMetadata>
8385c9
                </configuration>
8385c9
            </plugin>
8385c9
        </plugins>
8385c9
    </pluginManagement>
8385c9
  </build>
8385c9
8385c9
  <dependencies>
8385c9
  	<dependency>
8385c9
  		<groupId>org.testng</groupId>
8385c9
  		<artifactId>testng</artifactId>
8385c9
  		<version>6.8.21</version>
8385c9
  		<type>jar</type>
8385c9
  		<scope>test</scope>
8385c9
        <exclusions>
8385c9
            <exclusion>
8385c9
                <artifactId>jcommander</artifactId>
8385c9
                <groupId>com.beust</groupId>
8385c9
            </exclusion>
8385c9
        </exclusions>
8385c9
  	</dependency>
8385c9
  </dependencies>
8385c9
8385c9
  <profiles>
8385c9
    
8385c9
    
8385c9
        Do a license check by running       : mvn -P license license:check
8385c9
        UPdate the license check by running : mvn -P license license:format
8385c9
      -->
8385c9
    <profile>
8385c9
      <id>license</id>
8385c9
      <build>
8385c9
        <plugins>
8385c9
          <plugin>
8385c9
            <groupId>com.mycila.maven-license-plugin</groupId>
8385c9
            <artifactId>maven-license-plugin</artifactId>
8385c9
            <version>1.7.0</version>
8385c9
            <configuration>
8385c9
              <quiet>false</quiet>
8385c9
              <header>src/main/license/license-header.txt</header>
8385c9
              <includes>
8385c9
                  <include>src/**</include>
8385c9
                  <include>pom.xml</include>
8385c9
              </includes>
8385c9
              <excludes>
8385c9
                <exclude>**/.git/**</exclude>
8385c9
                
8385c9
                <exclude>**/target/**</exclude>
8385c9
              </excludes>
8385c9
              <useDefaultExcludes>false</useDefaultExcludes>
8385c9
            </configuration>
8385c9
            <executions>
8385c9
              <execution>
8385c9
                <goals>
8385c9
                  <goal>check</goal>
8385c9
                </goals>
8385c9
              </execution>
8385c9
            </executions>
8385c9
          </plugin>
8385c9
        </plugins>
8385c9
      </build>
8385c9
    </profile>
8385c9
    
8385c9
    
8385c9
    Sign the artifacts by calling
8385c9
    mvn -P sign [..]
8385c9
    -->
8385c9
    <profile>
8385c9
      <id>sign</id>
8385c9
      <build>
8385c9
        <plugins>
8385c9
          <plugin>
8385c9
            <artifactId>maven-gpg-plugin</artifactId>
8385c9
            <version>1.4</version>
8385c9
            <executions>
8385c9
              <execution>
8385c9
                <id>sign-artifacts</id>
8385c9
                <phase>verify</phase>
8385c9
                <goals>
8385c9
                  <goal>sign</goal>
8385c9
                </goals>
8385c9
              </execution>
8385c9
            </executions>
8385c9
          </plugin>
8385c9
        </plugins>
8385c9
      </build>
8385c9
    </profile>
8385c9
  </profiles>
8385c9
8385c9
</project>