Merge "Only add Java project's jar file if they are exported."