Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building with errors in MacOS #6

Closed
arademaker opened this Issue Mar 1, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@arademaker
Copy link

arademaker commented Mar 1, 2019

Some warnings and errors in tests and in the generation of gwn-scala-api-assembly-0.2.jar file!

$ ./gwn
Getting org.scala-sbt sbt 1.0.0  (this may take some time)...
downloading https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.0.0/sbt-1.0.0.jar ...
	[SUCCESSFUL ] org.scala-sbt#sbt;1.0.0!sbt.jar (776ms)
...
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /Users/ar/work/gwn-scala-api/project
[info] Updating {file:/Users/ar/work/gwn-scala-api/project/}gwn-scala-api-build...
...
[warn] /Users/ar/work/gwn-scala-api/src/main/scala/org/globalwordnet/wnapi/rdf.scala:26:34: object JavaConversions in package collection is deprecated (since 2.12.0): use JavaConverters
[warn]       model.listObjectsOfProperty(resource, p)
[warn]                                  ^
[warn] /Users/ar/work/gwn-scala-api/src/main/scala/org/globalwordnet/wnapi/rdf.scala:32:34: object JavaConversions in package collection is deprecated (since 2.12.0): use JavaConverters
[warn]       model.listObjectsOfProperty(resource, r).flatMap({
[warn]                                  ^
[warn] /Users/ar/work/gwn-scala-api/src/main/scala/org/globalwordnet/wnapi/rdf.scala:40:37: object JavaConversions in package collection is deprecated (since 2.12.0): use JavaConverters
[warn]       model.listSubjectsWithProperty(p, resource)
[warn]                                     ^
[warn] /Users/ar/work/gwn-scala-api/src/main/scala/org/globalwordnet/wnapi/rdf.scala:44:34: object JavaConversions in package collection is deprecated (since 2.12.0): use JavaConverters
[warn]       model.listObjectsOfProperty(resource, p).flatMap({
[warn]                                  ^
[warn] /Users/ar/work/gwn-scala-api/src/main/scala/org/globalwordnet/wnapi/rdf.scala:156:51: object JavaConversions in package collection is deprecated (since 2.12.0): use JavaConverters
[warn]     LexicalResource(model.listSubjectsWithProperty(RDF.`type`, LIME.Lexicon).map(readLexicon).toSeq)
[warn]                                                   ^
[warn] /Users/ar/work/gwn-scala-api/src/main/scala/org/globalwordnet/wnapi/rdf.scala:718:23: object JavaConversions in package collection is deprecated (since 2.12.0): use JavaConverters
[warn]     for(stat <- model.listStatements) {
[warn]                       ^
[warn] /Users/ar/work/gwn-scala-api/src/main/scala/org/globalwordnet/wnapi/rdf.scala:719:42: object JavaConversions in package collection is deprecated (since 2.12.0): use JavaConverters
[warn]        if(stat.getSubject().isAnon() && !remap.containsKey(stat.getSubject())) {
[warn]                                          ^
[warn] /Users/ar/work/gwn-scala-api/src/main/scala/org/globalwordnet/wnapi/rdf.scala:725:41: object JavaConversions in package collection is deprecated (since 2.12.0): use JavaConverters
[warn]        if(stat.getObject().isAnon() && !remap.containsKey(stat.getObject())) {
[warn]                                         ^
[warn] /Users/ar/work/gwn-scala-api/src/main/scala/org/globalwordnet/wnapi/rdf.scala:734:25: object JavaConversions in package collection is deprecated (since 2.12.0): use JavaConverters
[warn]       for(stat <- model.listStatements) {
[warn]                         ^
[warn] 9 warnings found
[info] Done compiling.
[warn] Multiple main classes detected.  Run 'show discoveredMainClasses' to see the list
[info] Compiling 10 Scala sources to /Users/ar/work/gwn-scala-api/target/scala-2.12/test-classes ...
[info] Including: httpcore-4.2.5.jar
[info] Including: jackson-core-2.3.3.jar
[info] Including: jena-iri-3.0.0.jar
[info] Including: commons-cli-1.3.jar
[info] Including: xercesImpl-2.11.0.jar
[info] Including: jena-shaded-guava-3.0.0.jar
[info] Including: jena-arq-3.0.0.jar
[info] Including: scala-library.jar
[info] Including: jena-base-3.0.0.jar
[info] Done compiling.
Error Count: 0
[info] JsonSpec:
[info] Json reader
[info] - should successfully read a JSON file
[info] - should produce 2 lexicons
[info] - should get features of lexicon
[info] - should produce 3 english entries
[info] - should produce 2 synset
[info] - should produce an entry for grandfather
[info] - should produce a sense
[info] - should produce a sense relation
[info] - should produce syntactic behavior
[info] - should produce a synset
[info] JSON Writer
[info] - should write a file
[info] - should roundtrip
Synset[wn30-02121620-n](i46593)
Synset[wn31-02124272-n](i46593, hypernym -> wn31-02124272-n)
0 [pool-5-thread-18-ScalaTest-running-RDFSpec] DEBUG org.apache.jena.riot.system.stream.JenaIOEnvironment  - Failed to find configuration: location-mapping.ttl;location-mapping.rdf;location-mapping.n3;etc/location-mapping.rdf;etc/location-mapping.n3;etc/location-mapping.ttl
0 [pool-5-thread-18-ScalaTest-running-RDFSpec] DEBUG org.apache.jena.riot.system.stream.JenaIOEnvironment  - Failed to find configuration: location-mapping.ttl;location-mapping.rdf;location-mapping.n3;etc/location-mapping.rdf;etc/location-mapping.n3;etc/location-mapping.ttl
[info] XMLSpec:
[info] XML reader
[info] - should successfully read an XML file
[info] - should produce 2 lexicons
[info] - should get features of lexicon
[info] - should produce 3 english entries
[info] - should produce 3 synset
[info] - should produce an entry for grandfather
[info] - should produce a sense
[info] - should produce a sense relation
[info] - should produce syntactic behavior
[info] - should produce a synset
[info] XML Writer
[info] - should write a file
[info] - should roundtrip
[info] PLWNTest:
[info] plWordNet Reader
[info] DebVisDicSpec:
[info] DebVisDic reader
[info] - should successfully read a DebVisDic file
[info] - should produce 1 lexicon
[info] - should read the test file
[info] - should contain entry poidza
[info] - should contain synset ENG20-00017381-a
[info] - should roundtrip
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-stretching-noun-1, http://www.w3.org/2006/03/wn/wn20/schema/word, http://www.w3.org/2006/03/wn/wn20/instances/word-stretching]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-stretching-noun-1, http://www.w3.org/2006/03/wn/wn20/schema/tagCount, "1"@en-US]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-stretching-noun-1, http://www.w3.org/2000/01/rdf-schema#label, "stretching"@en-US]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-stretching-noun-1, http://www.w3.org/1999/02/22-rdf-syntax-ns#type, http://www.w3.org/2006/03/wn/wn20/schema/NounWordSense]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-stretching-noun-1, http://www.w3.org/2006/03/wn/wn20/schema/derivationallyRelated, http://www.w3.org/2006/03/wn/wn20/instances/wordsense-stretch-verb-2]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-grandfather-noun-1, http://www.w3.org/2006/03/wn/wn20/schema/word, http://www.w3.org/2006/03/wn/wn20/instances/word-grandfather]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-grandfather-noun-1, http://www.w3.org/2006/03/wn/wn20/schema/tagCount, "4"@en-US]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-grandfather-noun-1, http://www.w3.org/2000/01/rdf-schema#label, "grandfather"@en-US]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-grandfather-noun-1, http://www.w3.org/1999/02/22-rdf-syntax-ns#type, http://www.w3.org/2006/03/wn/wn20/schema/NounWordSense]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-stretch-verb-2, http://www.w3.org/2006/03/wn/wn20/schema/word, http://www.w3.org/2006/03/wn/wn20/instances/word-stretch]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-stretch-verb-2, http://www.w3.org/2006/03/wn/wn20/schema/tagCount, "11"@en-US]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-stretch-verb-2, http://www.w3.org/2000/01/rdf-schema#label, "stretch"@en-US]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-stretch-verb-2, http://www.w3.org/1999/02/22-rdf-syntax-ns#type, http://www.w3.org/2006/03/wn/wn20/schema/VerbWordSense]
[http://www.w3.org/2006/03/wn/wn20/instances/wordsense-stretch-verb-2, http://www.w3.org/2006/03/wn/wn20/schema/frame, "Somebody ----s"@en-US]
[info] OMWNSpec:
[info] OMWN
[info] - should read a file
[info] WNDBSpec:
[info] - should output a correct data.noun file
[info] - should output a correct index.noun file
[info] RDFSpec:
[info] RDF reader
[info] - should successfully read an RDF file
[info] - should produce 2 lexicons
[info] - should get features of lexicon *** FAILED ***
[info]   "example-[sv]" was not equal to "example-[en]" (test_rdf.scala:17)
[info] - should produce 3 english entries
[info] - should produce 2 synset
[info] - should produce an entry for grandfather
[info] - should produce a sense
[info] - should produce a sense relation
[info] - should produce syntactic behavior
[info] - should produce a synset
[info] RDF Writer
[info] - should write a file
[info] roundtripping
[info] - should work
[info] - should produce 2 lexicons
[info] - should get features of lexicon
[info] - should produce 3 english entries
[info] - should produce 2 synset
[info] - should produce an entry for grandfather
[info] - should produce a sense
[info] - should produce a sense relation
[info] - should produce syntactic behavior
[info] - should produce a synset
[info] W3CSpec:
[info] RDF reader
[info] - should successfully read an RDF file
[info] - should produce 1 lexicons
[info] - should get features of lexicon
[info] - should produce 2 english entries
[info] - should produce 2 synset
[info] - should produce an entry for grandfather
[info] - should produce a sense
[info] - should produce a sense relation
[info] - should produce syntactic behavior
[info] - should produce a synset
[info] MergeTest:
[info] merge
[info] - should join two lexicons
[info] CoverageTest:
[info] XML reader
[info] - should read the coverage xml
[info] - should provide coverage
[info] - should write the coverage model
[info] - should successfully read the same data
[info] JSON reader
[info] - should write the coverage model
[info] - should successfully read the same data
[info] RDF reader
[info] - should write the coverage model
[info] - should successfully read the same data
[info] Run completed in 1 second, 726 milliseconds.
[info] Total number of tests run: 73
[info] Suites: completed 10, aborted 0
[info] Tests: succeeded 72, failed 1, canceled 0, ignored 0, pending 0
[info] *** 1 TEST FAILED ***
[error] Failed tests:
[error] 	org.globalwordnet.api.serialize.RDFSpec
[info] Including: slf4j-log4j12-1.7.12.jar
[info] Including: log4j-1.2.17.jar
[info] Including: jackson-databind-2.3.3.jar
[info] Including: commons-codec-1.6.jar
[info] Including: commons-csv-1.0.jar
[info] Including: httpclient-4.2.6.jar
[info] Including: jsonld-java-0.5.1.jar
[info] Including: xml-apis-1.4.01.jar
[info] Including: jena-core-3.0.0.jar
[info] Including: jackson-annotations-2.3.0.jar
[info] Including: slf4j-api-1.7.12.jar
[info] Including: httpclient-cache-4.2.6.jar
[info] Including: scopt_2.12-3.7.0.jar
[info] Including: scala-xml_2.12-1.0.6.jar
[info] Including: libthrift-0.9.2.jar
[info] Including: spray-json_2.12-1.3.2.jar
[info] Including: commons-lang3-3.4.jar
[error] (test:test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 157 s, completed Mar 1, 2019 11:41:50 AM
/Users/ar/work/gwn-scala-api
Error: Unable to access jarfile ./target/scala-2.12/gwn-scala-api-assembly-0.2.jar

@jmccrae jmccrae closed this in 8764ea8 Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.