java - "Missing artifact" errors in pom.xml -
this pom.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>cassandra</groupid> <artifactid>connector</artifactid> <version>0.0.1-snapshot</version> <name>cassandra</name> <description>cassandra connector</description> <dependencies> <dependency> <groupid>com.datastax.cassandra</groupid> <artifactid>cassandra-driver-core</artifactid> <version>2.1.5</version> </dependency> </dependencies> </project>
error shown @ line 12. have copied , pasted maven dependency here.
http://mvnrepository.com/artifact/com.datastax.cassandra/cassandra-driver-core/2.1.5
one way rid of error downloading bundle file on local machine below url & try below mvn:install command update on local repository.
mvn install:install-file -dfile="cassandra-driver-core-2.1.5.jar" -dgroupid=com.datastax.cassandra -dartifactid=cassandra-driver-core -dversion=2.1.5 -dpackaging=jar
or other way, if connecting maven repository nexus & having rights update repository can deploy bundle nexus using below mvn:deploy command.
mvn deploy:deploy-file -durl=http://<>:<>/nexus/content/groups/public -drepositoryid=nexuspublic -dfile="cassandra-driver-core-2.1.5.jar" -dgroupid=com.datastax.cassandra -dartifactid=cassandra-driver-core -dversion=2.1.5 -dpackaging=jar
Comments
Post a Comment