Wednesday 15 May 2013

maven - Getting "The POM for is invalid, transitive dependencies (if any) will not be available" only in Eclipse -



maven - Getting "The POM for <name> is invalid, transitive dependencies (if any) will not be available" only in Eclipse -

i have upgraded jaxb 2.2.11 , noticed in eclipse console next message:

10/15/14, 11:42:46 pm gmt+2: [info] creating new launch configuration 10/15/14, 11:42:58 pm gmt+2: [info] c:\projects\workspaces\mj2p\maven-jaxb2-plugin-project\tests\jaxb-1044 10/15/14, 11:42:58 pm gmt+2: [info] mvn -b -x -e clean install 10/16/14, 12:09:07 gmt+2: [warn] pom com.sun.xml.bind:jaxb-impl:jar:2.2.11 invalid, transitive dependencies (if any) not available: 1 problem encountered while building effective model com.sun.xml.bind:jaxb-impl:2.2.11 [error] 'dependencymanagement.dependencies.dependency.systempath' com.sun:tools:jar must specify absolute path ${tools.jar} @ 10/16/14, 12:09:07 gmt+2: [warn] pom com.sun.xml.bind:jaxb-xjc:jar:2.2.11 invalid, transitive dependencies (if any) not available: 1 problem encountered while building effective model com.sun.xml.bind:jaxb-xjc:2.2.11 [error] 'dependencymanagement.dependencies.dependency.systempath' com.sun:tools:jar must specify absolute path ${tools.jar} @ 10/16/14, 12:09:07 gmt+2: [warn] pom com.sun.xml.bind:jaxb-core:jar:2.2.11 invalid, transitive dependencies (if any) not available: 1 problem encountered while building effective model com.sun.xml.bind:jaxb-core:2.2.11 [error] 'dependencymanagement.dependencies.dependency.systempath' com.sun:tools:jar must specify absolute path ${tools.jar} @

what puzzles me not getting warning in console. poms in question seems correct. sure using same maven installation in console , in eclipse (m2e). repository seems correct.

does happen know, causing this?

please note not duplicate (almost identically-named) question:

the pom <name> invalid, transitive dependencies (if any) not available

this question differences between maven execution in console , eclipse.

the pom com.sun.xml.bind.jaxb-impl has com.sun.xml.bind:jaxb-parent has parent.

jaxb-parent pom has next section:

<profile> <id>default-tools.jar</id> <activation> <file> <exists>${java.home}/../lib/tools.jar</exists> </file> </activation> <properties> <tools.jar>${java.home}/../lib/tools.jar</tools.jar> </properties> </profile> <profile> <id>default-tools.jar-mac</id> <activation> <file> <exists>${java.home}/../classes/classes.jar</exists> </file> </activation> <properties> <tools.jar>${java.home}/../classes/classes.jar</tools.jar> </properties> </profile>

in eclipse, neither of profile seems activated due ${tools.jar} not have value.

one possibility java_home value set incorrectly.

eclipse maven jaxb m2e

1 comment:

  1. Breedlove: Maven - Getting "The Pom For Is Invalid, Transitive Dependencies (If
    Any) Will Not Be Available" Only In Eclipse - >>>>> Download Now

    >>>>> Download Full

    Breedlove: Maven - Getting "The Pom For Is Invalid, Transitive Dependencies (If
    Any) Will Not Be Available" Only In Eclipse - >>>>> Download LINK

    >>>>> Download Now

    Breedlove: Maven - Getting "The Pom For Is Invalid, Transitive Dependencies (If
    Any) Will Not Be Available" Only In Eclipse - >>>>> Download Full

    >>>>> Download LINK V0

    ReplyDelete