Passive sonar is widely used for target detection, identification and classification based on the target radiated acoustic signal. Under the influence of Doppler, generated by relative motion between the moving target and the sonar array, the received ship-radiated acoustic signals are non-stationary and time-varying, which has a negative effect on target detection and other fields. In order to reduce the influence of Doppler and improve the performance of target detection, a coherent integration method based on cross-power spectrum is proposed in this paper. It can be concluded that the frequency shift and phase change in the cross-power spectrum obtained by each pair of data segments can be corrected with the compensations of time scale (Doppler) factor and time delay. Moreover, the time scale factor and time delay can be estimated from the amplitude and phase of the original cross-power spectrum, respectively. Therefore, coherent integration can be implemented with the compensated cross-power spectra. Simulation and experimental data processing results show that the proposed method can provide sufficient processing gains and effectively extract the discrete spectra for the detection of moving targets.