my maven project give error when adding javax.xml.bind dependency code example

Example 1: my maven project give error when adding javax.xml.bind dependency

<dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
    <version>2.2.7-SNAPSHOT</version>
</dependency>
<dependency>
    <groupId>com.sun.xml.bind</groupId>
    <artifactId>jaxb-impl</artifactId>
    <version>2.2.5-b10</version>
</dependency>

Example 2: my maven project give error when adding javax.xml.bind dependency

<repository>
    <id>central</id>
    <url>http://repo.maven.apache.org/maven2/</url>
</repository>

Tags:

Java Example