updated build script with Maven Publish Plugin solution