0

I am a newbie to Eclipse.I got this below error when I modified my cucumber project, I added functionality of reading data from excel and writing to excel, until then it worked fine.Tried everything mentioned in other answers. The POM for com.sun.xml.bind:jaxb-core:jar:2.2.11 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for com.sun.xml.bind:jaxb-core:2.2.11 [ERROR] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${tools.jar} @

Any help would be appreciated.

nitind
  • 19,089
  • 4
  • 34
  • 43
Raga
  • 1
  • 1
  • 1

2 Answers2

1

use 2.3.0 version or higher to resolve this error

    <dependency>
    <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-core</artifactId>
        <version>2.3.0</version>
    </dependency>
    <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-impl</artifactId>
        <version>2.3.0</version>
    </dependency>


    <!-- Java 6 = JAX-B Version 2.0   -->
    <!-- Java 7 = JAX-B Version 2.2.3 -->
    <!-- Java 8 = JAX-B Version 2.2.8 -->
    <!-- Java 9+ = JAX-B Version 2.3.0 -->

Reference: github java-logging-support

Mugeesh Husain
  • 394
  • 4
  • 13
-2

Please re-install your maven dependencies,

  1. mvn clean
  2. mvn install

your 2.2.11 is existing in the maven repo so reinstalling will resolve your problem

enter image description here

Jayanth Bala
  • 758
  • 1
  • 5
  • 11