A cellular process that results in the aggregation, arrangement and bonding together of a set of components to form a cell junction. [ GOC:mah ]