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