Adding GPG signing and SCM config.
[AMDJ.git] / pom.xml
blob881bd530a2b844a2e522f3f6ee1590e0dcb496d5
1 <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/xsd/maven-4.0.0.xsd">
2   <modelVersion>4.0.0</modelVersion>
3   <groupId>com.github.rwl</groupId>
4   <artifactId>AMDJ</artifactId>
5   <version>1.0.0-SNAPSHOT</version>
7   <licenses>
8     <license>
9       <name>Gnu LGPL</name>
10       <url>http://www.gnu.org/licenses/lgpl-2.1.txt</url>
11       <distribution>repo</distribution>
12     </license>
13   </licenses>
15   <scm>
16     <url>git://github.com/rwl/AMDJ.git</url>
17     <connection>scm:git:git://github.com/rwl/AMDJ.git</connection>
18     <developerConnection>scm:git:git://github.com/rwl/AMDJ.git</developerConnection>
19   </scm>
21   <developers>
22     <developer>
23       <id>rwl</id>
24       <name>Richard Lincoln</name>
25       <email>r.w.lincoln@gmail.com</email>
26     </developer>
27   </developers>
29   <distributionManagement>
30     <repository>
31       <id>sonatype-nexus-staging</id>
32       <name>Sonatype OSS Staging Repository</name>
33       <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
34     </repository>
35     <snapshotRepository>
36       <id>sonatype-nexus-snapshots</id>
37       <name>Sonatype OSS Snapshot Repository</name>
38       <url>https://oss.sonatype.org/content/repositories/snapshots</url>
39     </snapshotRepository>
40   </distributionManagement>
42   <properties>
43     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44   </properties>
46   <dependencies>
47         <dependency>
48                 <groupId>junit</groupId>
49                 <artifactId>junit</artifactId>
50                 <version>3.8.2</version>
51                 <scope>test</scope>
52         </dependency>
53   </dependencies>
55   <build>
56     <plugins>
57        <plugin>
58          <!-- required for static imports -->
59          <groupId>org.apache.maven.plugins</groupId>
60          <artifactId>maven-compiler-plugin</artifactId>
61          <configuration>
62            <source>1.5</source>
63            <target>1.5</target>
64          </configuration>
65       </plugin>
67       <plugin>
68         <groupId>org.apache.maven.plugins</groupId>
69         <artifactId>maven-surefire-plugin</artifactId>
70         <configuration>
71           <includes>
72             <include>**/test/Damd_*.java</include>
73           </includes>
74         </configuration>
75       </plugin>
77       <plugin>
78         <groupId>org.apache.maven.plugins</groupId>
79         <artifactId>maven-release-plugin</artifactId>
80         <version>2.3</version>
81         <configuration>
82           <!-- need this for gpg plugin to work correctly -->
83           <mavenExecutorId>forked-path</mavenExecutorId>
84         </configuration>
85       </plugin>
86     </plugins>
87   </build>
89   <profiles>
90     <profile>
91       <id>release-sign-artifacts</id>
92       <activation>
93         <property>
94           <name>performRelease</name>
95           <value>true</value>
96         </property>
97       </activation>
98       <build>
99         <plugins>
100           <plugin>
101             <groupId>org.apache.maven.plugins</groupId>
102             <artifactId>maven-gpg-plugin</artifactId>
103             <version>1.4</version>
104             <executions>
105               <execution>
106                 <id>sign-artifacts</id>
107                 <phase>verify</phase>
108                 <goals>
109                   <goal>sign</goal>
110                 </goals>
111               </execution>
112             </executions>
113           </plugin>
114         </plugins>
115       </build>
116     </profile>
117   </profiles>
119 </project>