java - Cannot import json-simple with Maven -
i trying import json-simple maven using :
<?xml version="1.0" encoding="utf-8"?> <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>jsontest</groupid> <artifactid>jsontest</artifactid> <version>1.0-snapshot</version> <dependencies> <dependency> <groupid>com.googlecode.json-simple</groupid> <artifactid>json-simple</artifactid> <version>1.1.1</version> </dependency> </dependencies>
i tried use library, not appear me. (there should package called json)
then found out getting error : failed read artifact descriptor com.googlecode.json-simple:json-simple:jar:1.1.1
i pretty new maven, there missing ?
mvn install:install-file -dfile=jarlocation/json-simple.1.1.1.jar -dgroupid=com.googlecode.json-simple -dartifactid=json-simple -dversion=1.1.1 -dpackaging=jar
run command in command prompt(cmd), available in local maven repository.
Comments
Post a Comment