Maven and graphql-java -
i trying run helloworld example http://graphql-java.readthedocs.io/en/stable/getting_started.html#hello-world
i have compilation issues:
information:java: errors occurred while compiling module 'graphqlapp' information:javac 1.8.0_131 used compile java sources information:25.07.17 22:41 - compilation completed 17 errors , 3 warnings in 1s 873ms warning:java: source value 1.5 obsolete , removed in future release warning:java: target value 1.5 obsolete , removed in future release warning:java: suppress warnings obsolete options, use -xlint:-options. /home/marcin/graphqlapp/src/main/java/helloworld.java error:(1, 15) java: package graphql not exist error:(2, 22) java: package graphql.schema not exist error:(3, 22) java: package graphql.schema not exist error:(7, 22) java: package graphql not exist error:(7, 1) java: static import classes , interfaces error:(8, 29) java: package graphql.schema not exist error:(8, 1) java: static import classes , interfaces error:(9, 29) java: package graphql.schema not exist error:(9, 1) java: static import classes , interfaces error:(14, 9) java: cannot find symbol symbol: class graphqlobjecttype location: class helloworld error:(17, 31) java: cannot find symbol symbol: variable graphqlstring location: class helloworld error:(16, 24) java: cannot find symbol symbol: method newfielddefinition() location: class helloworld error:(14, 39) java: cannot find symbol symbol: method newobject() location: class helloworld error:(22, 9) java: cannot find symbol symbol: class graphqlschema location: class helloworld error:(22, 32) java: cannot find symbol symbol: variable graphqlschema location: class helloworld error:(26, 9) java: cannot find symbol symbol: class graphql location: class helloworld error:(26, 27) java: cannot find symbol symbol: variable graphql location: class helloworld
my maven file:
<?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>graphqlapplication</groupid> <artifactid>graphqlapplication</artifactid> <version>1.0-snapshot</version> <repositories> <repository> <snapshots> <enabled>false</enabled> </snapshots> <id>bintray-andimarek-graphql-java</id> <name>bintray</name> <url>http://dl.bintray.com/andimarek/graphql-java</url> </repository> </repositories> <dependencies> <dependency> <groupid>com.graphql-java</groupid> <artifactid>graphql-java</artifactid> <version>3.0.0</version> </dependency> </dependencies> </project>
what wrong maven configuration?
to use latest build bintray repository change dependency version. can find releases here.
<dependencies> <dependency> <groupid>com.graphql-java</groupid> <artifactid>graphql-java</artifactid> <version>2017-07-25t02-45-22</version> </dependency> </dependencies>
if want use latest stable version (3.0.0) remove unnecessary repositories declaration , use way.
<!-- https://mvnrepository.com/artifact/com.graphql-java/graphql-java --> <dependency> <groupid>com.graphql-java</groupid> <artifactid>graphql-java</artifactid> <version>3.0.0</version> </dependency>
Comments
Post a Comment