Add source and javadoc to Maven release profile

git-svn-id: https://google-guice.googlecode.com/svn/trunk@1433 d779f126-a31b-0410-b53b-1d3aecad763e
diff --git a/pom.xml b/pom.xml
index 0744078..cba3ca3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -336,6 +336,38 @@
   <profiles>
     <profile>
       <!--
+       | Release profile: capture source and javadoc
+      -->
+      <id>release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-source-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>attach-sources</id>
+                <goals>
+                  <goal>jar</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <artifactId>maven-javadoc-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>attach-javadocs</id>
+                <goals>
+                  <goal>jar</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <!--
        | Deployment profile for the Sonatype Grid
       -->
       <id>sonatype-grid</id>