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