Add assembly plugin configuration to create project and bin distributions

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@559734 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/commons/pom/pom.xml b/commons/pom/pom.xml
index 4b39334..89d31af 100644
--- a/commons/pom/pom.xml
+++ b/commons/pom/pom.xml
@@ -54,6 +54,11 @@
                     <artifactId>maven-gpg-plugin</artifactId>
                     <version>1.0-alpha-3</version>
                 </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-assembly-plugin</artifactId>
+                    <version>2.2-beta-1</version>
+                </plugin>
             </plugins>
         </pluginManagement>
     </build>
@@ -85,6 +90,25 @@
                             </execution>
                         </executions>
                     </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-assembly-plugin</artifactId>
+                        <configuration>
+                            <descriptorRefs>
+                                <descriptorRef>bin</descriptorRef>
+                                <descriptorRef>project</descriptorRef>
+                            </descriptorRefs>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <id>make-assembly</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>attached</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
                 </plugins>
             </build>
         </profile>