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/maven-v4_0_0.xsd">
2    <modelVersion>4.0.0</modelVersion>
3    <groupId>org.sonatype.forge</groupId>
4    <artifactId>forge-parent</artifactId>
5    <packaging>pom</packaging>
6    <version>4</version>
7    <name>Sonatype Forge Parent Pom</name>
8    <inceptionYear>2008</inceptionYear>
9    <url>http://forge.sonatype.com/</url>
10    <scm>
11        <connection>scm:svn:http://svn.sonatype.org/forge/tags/forge-parent-4</connection>
12        <url>http://svn.sonatype.org/forge/tags/forge-parent-4</url>
13        <developerConnection>scm:svn:https://svn.sonatype.org/forge/tags/forge-parent-4</developerConnection>
14    </scm>
15
16
17    <properties>
18      <forgeReleaseId>forge-releases</forgeReleaseId>
19      <forgeReleaseUrl>http://repository.sonatype.org/content/repositories/releases</forgeReleaseUrl>
20      <forgeSnapshotId>forge-snapshots</forgeSnapshotId>
21      <forgeSnapshotUrl>http://repository.sonatype.org/content/repositories/snapshots</forgeSnapshotUrl>
22    </properties>
23    <distributionManagement>
24        <repository>
25            <id>${forgeReleaseId}</id>
26            <url>${forgeReleaseUrl}</url>
27        </repository>
28        <snapshotRepository>
29            <id>${forgeSnapshotId}</id>
30            <url>${forgeSnapshotUrl}</url>
31        </snapshotRepository>
32    </distributionManagement>
33
34
35
36    <build>
37    <!--set the default plugin revs-->
38        <pluginManagement>
39            <plugins>
40               <plugin>
41                    <artifactId>maven-enforcer-plugin</artifactId>
42                    <version>1.0-alpha-4-sonatype</version>
43                </plugin>
44                <plugin>
45                    <artifactId>maven-eclipse-plugin</artifactId>
46                    <version>2.4</version>
47                </plugin>
48                <plugin>
49                    <artifactId>maven-surefire-plugin</artifactId>
50                    <version>2.3</version>
51                </plugin>
52                <plugin>
53                    <artifactId>maven-clean-plugin</artifactId>
54                    <version>2.2</version>
55                </plugin>
56                <plugin>
57                    <artifactId>maven-deploy-plugin</artifactId>
58                    <version>2.3</version>
59                </plugin>
60                <plugin>
61                    <artifactId>maven-dependency-plugin</artifactId>
62                    <version>2.0</version>
63                </plugin>
64                <plugin>
65                    <artifactId>maven-site-plugin</artifactId>
66                    <version>2.0-beta-6</version>
67                </plugin>
68                <plugin>
69                    <artifactId>maven-jar-plugin</artifactId>
70                    <version>2.1</version>
71                </plugin>
72                <plugin>
73                    <artifactId>maven-help-plugin</artifactId>
74                    <version>2.0.2</version>
75                </plugin>
76                <plugin>
77                    <artifactId>maven-resources-plugin</artifactId>
78                    <version>2.2</version>
79                </plugin>
80                <plugin>
81                    <artifactId>maven-install-plugin</artifactId>
82                    <version>2.2</version>
83                </plugin>
84                <plugin>
85                    <groupId>org.apache.maven.plugins</groupId>
86                    <artifactId>maven-compiler-plugin</artifactId>
87                    <version>2.0.2</version>
88                    <configuration>
89                        <source>1.5</source>
90                        <target>1.5</target>
91                    </configuration>
92                </plugin>
93                <plugin>
94                    <groupId>org.apache.maven.plugins</groupId>
95                    <artifactId>maven-assembly-plugin</artifactId>
96                    <version>2.2-beta-1</version>
97                </plugin>
98                <plugin>
99                    <groupId>org.apache.maven.plugins</groupId>
100                    <artifactId>maven-release-plugin</artifactId>
101                    <version>2.0-beta-8</version>
102                    <configuration>
103                      <useReleaseProfile>false</useReleaseProfile>
104                      <goals>deploy</goals>
105                      <arguments>-Prelease</arguments>
106                    </configuration>
107                </plugin>
108                <plugin>
109                  <groupId>org.apache.maven.plugins</groupId>
110                  <artifactId>maven-gpg-plugin</artifactId>
111                  <version>1.0-alpha-4</version>
112                </plugin>
113            </plugins>
114        </pluginManagement>
115
116    </build>
117
118  <reporting>
119		<plugins>
120			<plugin>
121				<groupId>org.codehaus.mojo</groupId>
122				<artifactId>cobertura-maven-plugin</artifactId>
123				<version>2.0</version>
124			</plugin>
125            <plugin>
126				<groupId>org.codehaus.mojo</groupId>
127				<artifactId>findbugs-maven-plugin</artifactId>
128				<version>1.1.1</version>
129                <configuration>
130                  <omitVisitors>UnreadFields</omitVisitors>
131                </configuration>
132			</plugin>
133            <plugin>
134				<artifactId>maven-jxr-plugin</artifactId>
135				<version>2.0</version>
136			</plugin>
137            <plugin>
138				<artifactId>maven-pmd-plugin</artifactId>
139				<version>2.3</version>
140                <configuration>
141                  <targetJdk>1.5</targetJdk>
142                </configuration>
143			</plugin>
144		</plugins>
145
146	</reporting>
147
148
149  <profiles>
150    <profile>
151      <id>release</id>
152      <build>
153        <plugins>
154          <!-- We want to sign the artifact, the POM, and all attached artifacts -->
155          <plugin>
156            <groupId>org.apache.maven.plugins</groupId>
157            <artifactId>maven-gpg-plugin</artifactId>
158            <configuration>
159               <!--  this presumes the correct gpg.passphrase property in the settings "release" proile -->
160              <passphrase>${gpg.passphrase}</passphrase>
161            </configuration>
162            <executions>
163              <execution>
164                <goals>
165                  <goal>sign</goal>
166                </goals>
167              </execution>
168            </executions>
169          </plugin>
170          <!-- We want to deploy the artifact to a staging location for perusal -->
171          <plugin>
172            <inherited>true</inherited>
173            <groupId>org.apache.maven.plugins</groupId>
174            <artifactId>maven-deploy-plugin</artifactId>
175            <configuration>
176              <altDeploymentRepository>${deploy.altRepository}</altDeploymentRepository>
177              <updateReleaseInfo>true</updateReleaseInfo>
178            </configuration>
179          </plugin>
180          <plugin>
181            <groupId>org.apache.maven.plugins</groupId>
182            <artifactId>maven-source-plugin</artifactId>
183            <executions>
184              <execution>
185                <id>attach-sources</id>
186                <goals>
187                  <goal>jar</goal>
188                </goals>
189              </execution>
190            </executions>
191          </plugin>
192          <plugin>
193            <groupId>org.apache.maven.plugins</groupId>
194            <artifactId>maven-javadoc-plugin</artifactId>
195            <configuration>
196              <encoding>${project.build.sourceEncoding}</encoding>
197            </configuration>
198            <executions>
199              <execution>
200                <id>attach-javadocs</id>
201                <goals>
202                  <goal>jar</goal>
203                </goals>
204              </execution>
205            </executions>
206          </plugin>
207          <!--plugin>
208            <groupId>org.codehaus.mojo</groupId>
209            <artifactId>clirr-maven-plugin</artifactId>
210            <executions>
211              <execution>
212                <id>clirr-check</id>
213                <phase>package</phase>
214                <goals>
215                  <goal>check</goal>
216                </goals>
217              </execution>
218            </executions>
219          </plugin-->
220        </plugins>
221      </build>
222    </profile>
223  </profiles>
224
225</project>