modify login function

Change-Id: I4546373862406cf379c97de0ed83eb3d6dc03a5c
Signed-off-by: “shentao” <shentao@chinamobile.com>
diff --git a/openo-portal/portal-package/pom.xml b/openo-portal/portal-package/pom.xml
index a1a45ee..e93b04a 100644
--- a/openo-portal/portal-package/pom.xml
+++ b/openo-portal/portal-package/pom.xml
@@ -26,6 +26,10 @@
   <artifactId>portal-package</artifactId>
   <packaging>war</packaging>
 
+  <properties>
+    <packagename>openo-portal</packagename>
+  </properties>
+
   <dependencies>
     <dependency>
       <groupId>org.openo.gso.gui</groupId>
@@ -113,7 +117,7 @@
             </goals>
             <configuration>
               <tasks name="${project.artifactId}">
-                <zip destfile="target/openo-portal-${project.version}.zip" update="true">
+                <zip destfile="target/${packagename}-${project.version}.zip" update="true">
                   <zipfileset dir="target" includes="*.war"/>
                 </zip>
               </tasks>
@@ -121,6 +125,27 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>attach-artifacts</id>
+            <phase>package</phase>
+            <goals>
+              <goal>attach-artifact</goal>
+            </goals>
+            <configuration>
+              <artifacts>
+                <artifact>
+                  <file>target/${packagename}-${project.version}.zip</file>
+                  <type>zip</type>
+                </artifact>
+              </artifacts>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 </project>