Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

macos에서 maven install시 아래와 같은 오류가 발생했을경우

(환경이 java9일떄 방생하는 문제인듯)


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigu)re/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: 

javax/xml/bind/JAXBException


--------------------------

pom.xml에 아래내용을 추가하여 해결


<dependency>

<groupId>javax.xml.bind</groupId>

        <artifactId>jaxb-api</artifactId>

        <version>2.3.0</version>

</dependency>