Japanese automakers Nissan and Honda say they plan to share components for electric vehicles like batteries and jointly research software for autonomous driving.