Skip to content

BUILD Failure + missing <version> tag for maven-surefire-plugin in pom.xml #6

Description

@florian-marc

Hello,
I've been trying to install MOTS on my ubuntu computer. First of all, I'd like to say that it's the first time I'm installing a package on a linux system, and that I don't know much about bash and shell.
I'm running Ubuntu Desktop 18.04, java 10.0.2, javac 10.0.2 and Maven 3.5.2.
As a beginner, I'm struggling to install MOTS. When I run install.sh, I get the following build failure :

Tests run: 46, Failures: 1, Errors: 15, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.426 s
[INFO] Finished at: 2018-10-08T00:35:53+02:00
[INFO] Final Memory: 15M/57M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project mots: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/flof/PR/MOTS/target/surefire-reports for the individual test results.
[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
Installation of MOTS succeed in the target directory !

After making research on stack overflow, I found out the error might be caused by the fact the version tag for maven-surefire-plugin was missing in the pom.xml file, i.e. :

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.19.1</version>
</plugin>

I've also noticed the source and target version for maven-compiler-plugin was version 1.8. I'm running openjdk 10. Is this an issue? Should I try to run openjdk 1.8?

Also, will install.sh install mots.X.Y.Z.jar in the folder?

If there's any information missing, please let me know.
Thank you in advance for your time.

EDIT : After looking into the tests runned by the installer, it looks like the build fails here :

[main] INFO main.java.liasd.asadera.control.AbstractController - Multithread true
[main] INFO main.java.liasd.asadera.model.task.process.SummarizeProcess - Corpus 0 read
Exception in thread "class main.java.liasd.asadera.model.task.process.SummarizeProcess 0" java.lang.NoClassDefFoundError: org/omg/DynamicAny/DynAnyPackage/InvalidValue
        at main.java.liasd.asadera.model.task.process.indexBuilder.ILP.BiGram_ILP.buildWeightsAndSentences(BiGram_ILP.java:112)
        at main.java.liasd.asadera.model.task.process.indexBuilder.ILP.BiGram_ILP.processIndex(BiGram_ILP.java:90)
        at main.java.liasd.asadera.model.task.process.SummarizeProcess.process(SummarizeProcess.java:162)
        at main.java.liasd.asadera.model.task.process.SummarizeProcess.run(SummarizeProcess.java:227)
        at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.ClassNotFoundException: org.omg.DynamicAny.DynAnyPackage.InvalidValue
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
        ... 5 more
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE! - in test.java.liasd.asadera.model.task.process.SumBigram_KnapsackTest
build(test.java.liasd.asadera.model.task.process.SumBigram_KnapsackTest)  Time elapsed: 0.015 sec  <<< FAILURE!
java.lang.AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions