The influential Archbishops of Krakow maintained several palaces in Poland in the 17th and 18th centuries :