org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for project org.hibernate.tutorials:hibernate-tutorial at D:\t\000\pom.xml

Hibernate JIRA | Oleksandr Alesinskyy | 6 years ago
  1. 0

    The POM shown in the tutorial section of Hibernate Reference (http://docs.jboss.org/hibernate/stable/core/reference/en/html_single/#tutorial-firstapp-setup) is unusable {code:xml} <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.hibernate.tutorials</groupId> <artifactId>hibernate-tutorial</artifactId> <version>1.0.0-SNAPSHOT</version> <name>First Hibernate Tutorial</name> <build> <!-- we dont want the version to be part of the generated war file name --> <finalName>${artifactId}</finalName> </build> <dependencies> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> </dependency> <!-- Because this is a web app, we also have a dependency on the servlet api. --> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> </dependency> <!-- Hibernate uses slf4j for logging, for our purposes here use the simple backend --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> </dependency> <!-- Hibernate gives you a choice of bytecode providers between cglib and javassist --> <dependency> <groupId>javassist</groupId> <artifactId>javassist</artifactId> </dependency> </dependencies> </project> {code} An build attempt ( {{mvn clean install}} ) results in {quote} [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: org.hibernate.tutorials:hibernate-tutorial POM Location: D:\t\000\pom.xml Validation Messages: [0] 'dependencies.dependency.version' is missing for org.hibernate:hibernate-core:jar [1] 'dependencies.dependency.version' is missing for javax.servlet:servlet-api:jar [2] 'dependencies.dependency.version' is missing for org.slf4j:slf4j-simple:jar [3] 'dependencies.dependency.version' is missing for javassist:javassist:jar Reason: Failed to validate POM for project org.hibernate.tutorials:hibernate-tutorial at D:\t\000\pom.xml [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for project org.hibernate.tutorials:hibernate-tutorial at D:\t\000\pom.xml at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.InvalidProjectModelException: Failed to validate POM for project org.hibernate.tutorials:hibernate-tutorial at D:\t\000\pom.xml at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1077) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:880) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391) ... 12 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu Aug 05 13:24:06 CEST 2010 [INFO] Final Memory: 1M/15M [INFO] ------------------------------------------------------------------------ {quote} Maven 2.0.09 and 2.2.1. I guess the cause is that this POM was created by a naive "stripping-out" the POM from the "tutorials" module in the Hibernate distribution - but that POM is inherited from hibernate-parent. If this inheritance is lost all versions shall be specified explicitly.

    Hibernate JIRA | 6 years ago | Oleksandr Alesinskyy
    org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for project org.hibernate.tutorials:hibernate-tutorial at D:\t\000\pom.xml
  2. 0

    The POM shown in the tutorial section of Hibernate Reference (http://docs.jboss.org/hibernate/stable/core/reference/en/html_single/#tutorial-firstapp-setup) is unusable {code:xml} <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.hibernate.tutorials</groupId> <artifactId>hibernate-tutorial</artifactId> <version>1.0.0-SNAPSHOT</version> <name>First Hibernate Tutorial</name> <build> <!-- we dont want the version to be part of the generated war file name --> <finalName>${artifactId}</finalName> </build> <dependencies> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> </dependency> <!-- Because this is a web app, we also have a dependency on the servlet api. --> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> </dependency> <!-- Hibernate uses slf4j for logging, for our purposes here use the simple backend --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> </dependency> <!-- Hibernate gives you a choice of bytecode providers between cglib and javassist --> <dependency> <groupId>javassist</groupId> <artifactId>javassist</artifactId> </dependency> </dependencies> </project> {code} An build attempt ( {{mvn clean install}} ) results in {quote} [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: org.hibernate.tutorials:hibernate-tutorial POM Location: D:\t\000\pom.xml Validation Messages: [0] 'dependencies.dependency.version' is missing for org.hibernate:hibernate-core:jar [1] 'dependencies.dependency.version' is missing for javax.servlet:servlet-api:jar [2] 'dependencies.dependency.version' is missing for org.slf4j:slf4j-simple:jar [3] 'dependencies.dependency.version' is missing for javassist:javassist:jar Reason: Failed to validate POM for project org.hibernate.tutorials:hibernate-tutorial at D:\t\000\pom.xml [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for project org.hibernate.tutorials:hibernate-tutorial at D:\t\000\pom.xml at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.InvalidProjectModelException: Failed to validate POM for project org.hibernate.tutorials:hibernate-tutorial at D:\t\000\pom.xml at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1077) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:880) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391) ... 12 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu Aug 05 13:24:06 CEST 2010 [INFO] Final Memory: 1M/15M [INFO] ------------------------------------------------------------------------ {quote} Maven 2.0.09 and 2.2.1. I guess the cause is that this POM was created by a naive "stripping-out" the POM from the "tutorials" module in the Hibernate distribution - but that POM is inherited from hibernate-parent. If this inheritance is lost all versions shall be specified explicitly.

    Hibernate JIRA | 6 years ago | Oleksandr Alesinskyy
    org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for project org.hibernate.tutorials:hibernate-tutorial at D:\t\000\pom.xml
  3. 0

    Parse error reading POM. Reason: Unrecognised tag: 'hibernate.annotations.version'

    Stack Overflow | 3 years ago | Introspective
    org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. Reason: Unrecognised tag: 'hibernate.annotations.version' (position: START_TAG seen ...&lt;/packaging&gt;\n \n \t&lt;hibernate.annotations.version&gt;... @8:34) for project unknown at C:\Users\introspective\Workspace\SampleWSCxfStub\pom.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Maven: Error whan setting local log4j jar as dependency

    Stack Overflow | 3 years ago | Adam Matan
    org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for project ... at ...hudson_checkout/vespa_qa/pom_local.xml
  6. 0

    Debian msgpack install error java maven

    Stack Overflow | 2 years ago | Sarit
    org.apache.maven.reactor.MavenExecutionException: Not a v4.0.0 POM. for project unknown at /home/sarit/workspace/msgpack-java/pom.xml

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.maven.project.InvalidProjectModelException

      Failed to validate POM for project org.hibernate.tutorials:hibernate-tutorial at D:\t\000\pom.xml

      at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic()
    2. Maven
      DefaultMavenProjectBuilder.build
      1. org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1077)
      2. org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:880)
      3. org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
      4. org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
      4 frames
    3. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
      2. org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
      3. org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
      4. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
      5. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      5 frames
    4. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      1 frame
    5. org.apache.maven
      CompatibleMain.main
      1. org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames