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>5</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-5</connection>
12        <url>http://svn.sonatype.org/forge/tags/forge-parent-5</url>
13        <developerConnection>scm:svn:https://svn.sonatype.org/forge/tags/forge-parent-5</developerConnection>
14    </scm>
15
16
17    <properties>
18      <forgeReleaseId>forge-releases</forgeReleaseId>
19      <forgeReleaseUrl>http://repository.sonatype.org:8081/service/local/staging/deploy/maven2</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-beta-1</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.4.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.4</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-7</version>
67                </plugin>
68                <plugin>
69                    <artifactId>maven-jar-plugin</artifactId>
70                    <version>2.2</version>
71                </plugin>
72                <plugin>
73                    <artifactId>maven-resources-plugin</artifactId>
74                    <version>2.3</version>
75                </plugin>
76                <plugin>
77                    <artifactId>maven-install-plugin</artifactId>
78                    <version>2.2</version>
79                </plugin>
80                <plugin>
81                    <groupId>org.apache.maven.plugins</groupId>
82                    <artifactId>maven-compiler-plugin</artifactId>
83                    <version>2.0.2</version>
84                    <configuration>
85                        <source>1.5</source>
86                        <target>1.5</target>
87                    </configuration>
88                </plugin>
89                <plugin>
90                    <groupId>org.apache.maven.plugins</groupId>
91                    <artifactId>maven-assembly-plugin</artifactId>
92                    <version>2.2-beta-2</version>
93                </plugin>
94                <plugin>
95                    <groupId>org.apache.maven.plugins</groupId>
96                    <artifactId>maven-release-plugin</artifactId>
97                    <version>2.0-beta-8</version>
98                    <configuration>
99                      <useReleaseProfile>false</useReleaseProfile>
100                      <goals>deploy</goals>
101                      <arguments>-Prelease</arguments>
102                    </configuration>
103                </plugin>
104                <plugin>
105                  <groupId>org.apache.maven.plugins</groupId>
106                  <artifactId>maven-gpg-plugin</artifactId>
107                  <version>1.0-alpha-4</version>
108                </plugin>
109            </plugins>
110        </pluginManagement>
111
112    </build>
113
114  <reporting>
115		<plugins>
116			<plugin>
117				<groupId>org.codehaus.mojo</groupId>
118				<artifactId>cobertura-maven-plugin</artifactId>
119				<version>2.0</version>
120			</plugin>
121            <plugin>
122				<groupId>org.codehaus.mojo</groupId>
123				<artifactId>findbugs-maven-plugin</artifactId>
124				<version>1.1.1</version>
125                <configuration>
126                  <omitVisitors>UnreadFields</omitVisitors>
127                </configuration>
128			</plugin>
129            <plugin>
130				<artifactId>maven-jxr-plugin</artifactId>
131				<version>2.1</version>
132			</plugin>
133            <plugin>
134				<artifactId>maven-project-info-reports-plugin</artifactId>
135				<version>2.1.1</version>
136			</plugin>
137            <plugin>
138				<artifactId>maven-pmd-plugin</artifactId>
139				<version>2.4</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>