How to upload while externaly powered ?

As long as your hardware doesn't interfere with Pin 0 and Pin 1 (Serial I/O) you should be able to plug in the USB cable and upload new sketches even while the external power is still selected. The power jumper only changes the power source and doesn't disable USB when you select external power.