dice-group / dice-group/LD2NL

Unable to build the package

Open
#17 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
11
Forks
6
PR merge metrics
No merged PRs in 30d

Description

I am using windows 11 &
java version "21.0.1" 2023-10-17 LTS
Java(TM) SE Runtime Environment (build 21.0.1+12-LTS-29)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.1+12-LTS-29, mixed mode, sharing)

I tried to run the command
`mvn -T 1C clean install test`

And I got the following error:
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] LiteralConverterTest.init:57 ExceptionInInitializer
[ERROR] PropertyVerbalizerTest.birthPlace:40 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[ERROR] PropertyVerbalizerTest.bornIn:79 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[ERROR] PropertyVerbalizerTest.cross:92 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[ERROR] PropertyVerbalizerTest.hasColor:53 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[ERROR] PropertyVerbalizerTest.isGoldMedalWinner:169 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[ERROR] PropertyVerbalizerTest.isHardWorking:66 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[ERROR] PropertyVerbalizerTest.knownFor:143 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[ERROR] PropertyVerbalizerTest.name:156 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[ERROR] PropertyVerbalizerTest.producedBy:105 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[ERROR] PropertyVerbalizerTest.restingPlace:26 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[ERROR] PropertyVerbalizerTest.workedFor:131 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[ERROR] PropertyVerbalizerTest.worksFor:118 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[ERROR] TripleConverterTest.init:55 ┬╗ NoClassDefFound Could not initialize class org.apache.jena.rdf.model.ModelFactory
[INFO]
[ERROR] Tests run: 14, Failures: 0, Errors: 14, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Linked Data 2 Natural Language 0.4.2-SNAPSHOT:
[INFO]
[INFO] Linked Data 2 Natural Language ..................... SUCCESS [ 0.325 s]
[INFO] Triple2NL .......................................... FAILURE [ 16.097 s]
[INFO] SPARQL2NL .......................................... SKIPPED
[INFO] AVATAR ............................................. SKIPPED
[INFO] OWL2NL ............................................. SKIPPED
[INFO] Evaluation ......................................... SKIPPED
[INFO] controller ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.630 s (Wall Clock)
[INFO] Finished at: 2024-01-04T19:25:43+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on project triple2nl:
[ERROR]
[ERROR] Please refer to C:\Users\Admin'\Desktop\DICE_job\Caglar Demir\LD2NL task\LD2NL\Triple2NL\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :triple2nl

Could you please tell me how to resolve it?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `mvn -T 1C clean install test` on the reported Java 21 and Windows environment, then inspect the `target/surefire-reports` files for the first `ModelFactory` initialization failure. Review `LiteralConverterTest` and the listed `PropertyVerbalizerTest` and `TripleConverterTest` failures. Done means the affected tests and the full Maven build complete successfully, with the cause and resolution documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.