[maven-release-plugin]  copy for tag 1.0.0-M1
diff --git a/distribution/pom.xml b/distribution/pom.xml
index 2179761..c110149 100644
--- a/distribution/pom.xml
+++ b/distribution/pom.xml
@@ -24,7 +24,7 @@
   <parent>
     <groupId>org.apache.directory.mavibot</groupId>
     <artifactId>mavibot-parent</artifactId>
-    <version>1.0.0-M1-SNAPSHOT</version>
+    <version>1.0.0-M1</version>
   </parent>
  
   <artifactId>distribution</artifactId>
@@ -36,30 +36,7 @@
   </properties>
 
   <build>
-    <finalName>mavibot-${project.version}</finalName>
-
-    <!-- Here, we create the src and bin packages -->
-    <plugins>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <configuration>
-          <descriptors>
-            <descriptor>src/main/assembly/bin.xml</descriptor>
-            <descriptor>src/main/assembly/src.xml</descriptor>
-          </descriptors>
-          <tarLongFileMode>gnu</tarLongFileMode>
-        </configuration>
-
-        <executions>
-          <execution>
-            <phase>package</phase>
-            <goals>
-              <goal>single</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-  
+    <plugins> 
       <plugin>
         <artifactId>maven-deploy-plugin</artifactId>
         <configuration>
@@ -77,5 +54,37 @@
     </dependency>
   </dependencies>
 
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+
+      <build>
+        <finalName>mavibot-${project.version}</finalName>
+       
+        <plugins>
+          <plugin>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <configuration>
+              <descriptors>
+                <descriptor>src/main/assembly/bin.xml</descriptor>
+                <descriptor>src/main/assembly/src.xml</descriptor>
+              </descriptors>
+              <tarLongFileMode>gnu</tarLongFileMode>
+            </configuration>
+
+            <executions>
+              <execution>
+                <phase>package</phase>
+                <goals>
+                  <goal>single</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
 </project>
 
diff --git a/pom.xml b/pom.xml
index 0ef514f..04acadc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -82,6 +82,7 @@
 
   <modules>
     <module>mavibot</module>
+    <module>distribution</module>
   </modules>
 
   <dependencyManagement>
@@ -300,10 +301,6 @@
           </plugin>
         </plugins>
       </build>
-
-      <modules>
-        <module>distribution</module>
-      </modules>
     </profile>
   </profiles>
 </project>