I am trying to upgrade a project from JDK 7 to JDK 8. In order to fix some issues during compile time, I needed to upgrade Maven to 3.6.3 as well. The other issue is fixed with this upgrade however, I am getting the below error during mvn install Failed to execute goal on project jbossha-PATCH: Could not resolve dependencies for project com.company.wae:jbossha-PATCH:jar:5.1.0.GA: Could not find artifact sun-jaxb:jaxb-api:jar:2.2 in central (https://repo.maven.apache.org/maven2) -> [Help 1] When I check my m2 repo, the jax-api.jar is present under sun-jaxb folder. If I delete sun-jaxb, it is created again with jax-api.jar. This dependency is present in a lot pom.xml within the project. Why the error is saying that it can not find the artifact and is there a way to solve this issue? Continue reading...