java - How to fix Malformed POM: Unrecognised tag: 'groupId'? -


i have school project i'am going change cql (caasandra query language), after doing need create specific cassandra java driver, problem couldn't run source code of driver on eclipse tried many things , search in internet nothing work every time have kind of problem:

[debug] looking lifecyle mappings packaging bundle classrealm[project>com.datastax.cassandra:cassandra-driver-core:2.1.9-snapshot, parent: classrealm[maven.api, parent: null]] [error] build not read 1 project -> [help 1] org.apache.maven.project.projectbuildingexception: problems encountered while processing poms: [error] malformed pom i:\_cassandra\java-driver-2.1\driver-core\pom.xml: unrecognised tag: 'groupid' (position: start_tag seen ...<dependencies>\n  <groupid>... @36:12)  @ i:\_cassandra\java-driver-2.1\driver-core\pom.xml, line 36, column 12 @ org.apache.maven.project.defaultprojectbuilder.build(defaultprojectbuilder.java:363) @ org.apache.maven.defaultmaven.collectprojects(defaultmaven.java:636) 

the error:

pom.xml: unrecognised tag: 'groupid'

means you've malformed pom file (pom.xml) in line 36, column 12. in other words placed groupid tag in wrong place.

since didn't posted project object model file, can still see part: <dependencies>\n <groupid> incorrect. if didn't change anything, running old syntax of pom file under newer maven.

to fix it, edit pom.xml , correct syntax. under dependencies tag should have dependency tags instead, can place groupid tag, example:

<dependencies>   <dependency>     <groupid>junit</groupid>     <artifactid>junit</artifactid>     <version>3.8.1</version>     <scope>test</scope>   </dependency> </dependencies> 

after correction re-run maven command (e.g. mvn compile/mvn test).


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -