1 <!-- 2 3 Copyright (C) 2010 the original author or authors. 4 See the notice.md file distributed with this work for additional 5 information regarding copyright ownership. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 19 --> 20 21 <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"> 22 <modelVersion>4.0.0</modelVersion> 23 <groupId>com.beust</groupId> 24 <artifactId>jcommander</artifactId> 25 <packaging>jar</packaging> 26 <name>JCommander</name> 27 <version>1.27</version> 28 <description>A Java framework to parse command line options with annotations.</description> 29 <url>http://beust.com/jcommander</url> 30 <licenses> 31 <license> 32 <name>The Apache Software License, Version 2.0</name> 33 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 34 <distribution>repo</distribution> 35 </license> 36 </licenses> 37 <scm> 38 <connection>scm:git:git (a] github.com:cbeust/jcommander.git</connection> 39 <developerConnection>scm:git:git (a] github.com:cbeust/jcommander.git</developerConnection> 40 <url>git (a] github.com:cbeust/jcommander.git</url> 41 </scm> 42 43 <developers> 44 <developer> 45 <name>Cedric Beust</name> 46 </developer> 47 </developers> 48 49 <parent> 50 <groupId>org.sonatype.oss</groupId> 51 <artifactId>oss-parent</artifactId> 52 <version>7</version> 53 </parent> 54 55 <build> 56 <plugins> 57 58 <!-- Bundle sources --> 59 <plugin> 60 <groupId>org.apache.maven.plugins</groupId> 61 <artifactId>maven-source-plugin</artifactId> 62 <version>2.1.1</version> 63 <executions> 64 <execution> 65 <id>attach-sources</id> 66 <goals> 67 <goal>jar</goal> 68 </goals> 69 </execution> 70 </executions> 71 </plugin> 72 73 <!-- Compilation --> 74 <plugin> 75 <groupId>org.apache.maven.plugins</groupId> 76 <artifactId>maven-compiler-plugin</artifactId> 77 <version>2.3.1</version> 78 <configuration> 79 <source>1.5</source> 80 <target>1.5</target> 81 <encoding>UTF-8</encoding> 82 </configuration> 83 </plugin> 84 85 <!-- Resource handling --> 86 <plugin> 87 <groupId>org.apache.maven.plugins</groupId> 88 <artifactId>maven-resources-plugin</artifactId> 89 <version>2.4.1</version> 90 <configuration> 91 <encoding>UTF-8</encoding> 92 </configuration> 93 </plugin> 94 95 <!-- OSGi manifest creation --> 96 <plugin> 97 <groupId>org.apache.felix</groupId> 98 <artifactId>maven-bundle-plugin</artifactId> 99 <version>2.1.0</version> 100 <executions> 101 <execution> 102 <id>bundle-manifest</id> 103 <phase>process-classes</phase> 104 <goals> 105 <goal>manifest</goal> 106 </goals> 107 <configuration> 108 <instructions> 109 <_versionpolicy>$(@)</_versionpolicy> 110 </instructions> 111 </configuration> 112 </execution> 113 </executions> 114 </plugin> 115 116 <!-- Add OSGi manifest in JAR --> 117 <plugin> 118 <groupId>org.apache.maven.plugins</groupId> 119 <artifactId>maven-jar-plugin</artifactId> 120 <version>2.3.1</version> 121 <configuration> 122 <archive> 123 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> 124 </archive> 125 </configuration> 126 </plugin> 127 128 <!-- Tests --> 129 <plugin> 130 <groupId>org.apache.maven.plugins</groupId> 131 <artifactId>maven-surefire-plugin</artifactId> 132 <version>2.10</version> 133 <configuration> 134 <skipTests>true</skipTests> 135 </configuration> 136 <dependencies> 137 <dependency> 138 <groupId>com.beust</groupId> 139 <artifactId>jcommander</artifactId> 140 <version>1.13</version> 141 <!-- 142 <version>${project.version}</version> 143 --> 144 </dependency> 145 </dependencies> 146 </plugin> 147 148 <!-- Generating Javadoc --> 149 <plugin> 150 <groupId>org.apache.maven.plugins</groupId> 151 <artifactId>maven-javadoc-plugin</artifactId> 152 <version>2.7</version> 153 <configuration> 154 <excludePackageNames>*.internal</excludePackageNames> 155 </configuration> 156 </plugin> 157 </plugins> 158 </build> 159 160 <dependencies> 161 <dependency> 162 <groupId>org.testng</groupId> 163 <artifactId>testng</artifactId> 164 <version>6.1.1</version> 165 <type>jar</type> 166 <scope>test</scope> 167 <exclusions> 168 <exclusion> 169 <artifactId>jcommander</artifactId> 170 <groupId>com.beust</groupId> 171 </exclusion> 172 </exclusions> 173 </dependency> 174 </dependencies> 175 176 <profiles> 177 178 <!-- 179 Do a license check by running : mvn -P license license:check 180 UPdate the license check by running : mvn -P license license:format 181 --> 182 <profile> 183 <id>license</id> 184 <build> 185 <plugins> 186 <plugin> 187 <groupId>com.mycila.maven-license-plugin</groupId> 188 <artifactId>maven-license-plugin</artifactId> 189 <version>1.7.0</version> 190 <configuration> 191 <quiet>false</quiet> 192 <header>src/main/license/license-header.txt</header> 193 <includes> 194 <include>src/**</include> 195 <include>pom.xml</include> 196 </includes> 197 <excludes> 198 <exclude>**/.git/**</exclude> 199 <!-- ignore files produced during a build --> 200 <exclude>**/target/**</exclude> 201 </excludes> 202 <useDefaultExcludes>false</useDefaultExcludes> 203 </configuration> 204 <executions> 205 <execution> 206 <goals> 207 <goal>check</goal> 208 </goals> 209 </execution> 210 </executions> 211 </plugin> 212 </plugins> 213 </build> 214 </profile> 215 <!-- Signing with gpg --> 216 <!-- 217 Sign the artifacts by calling 218 mvn -P sign [..] 219 --> 220 <profile> 221 <id>sign</id> 222 <build> 223 <plugins> 224 <plugin> 225 <artifactId>maven-gpg-plugin</artifactId> 226 <executions> 227 <execution> 228 <id>sign-artifacts</id> 229 <phase>verify</phase> 230 <goals> 231 <goal>sign</goal> 232 </goals> 233 </execution> 234 </executions> 235 </plugin> 236 </plugins> 237 </build> 238 </profile> 239 </profiles> 240 241 </project> 242