I am now able to create the AMP file. I had to uncomment the maven-assmebly-plugin in the main pom.xml. I thought that it is the pom.xml under the platform-jar. But the main project level pom.xml had this plugin commented. Once I uncommented, it created the AMP file.

However, I still have this error in my platform-jar and share-jar pom.xml