I am creating a sample project with maven for spring and hibernate. I am very new to this development. After placing the dependency such as
<dependencies>
<dependency>
<groupid>org.hibernate</groupid>
<artifactid>hibernate-core</artifactid>
<version>3.3.1.GA</version>
</dependency>
<dependency>
<groupid>org.springframework</groupid>
<artifactid>spring</artifactid>
<version>${springVersion}</version>
</dependency>
In eclipse it gives an error as Multiple annotations found at this line:
- Project build error: 'dependencies.dependency.groupId' for null:null:jar is
missing.
- Project build error: 'dependencies.dependency.artifactId' for null:null:jar is
missing.
I guess, the jar files for spring and hibernate are missing. Can someone let me know how to resolve this issue.
Because your
pom.xmlhas the invalid formatIt should be
<groupId>instead of<groupid><artifactId>instead of<artifactid>You can check the correct format of
pom.xmlat here