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

build: no ocrd-0.1-jar-with-dependencies.jar #9

Open
jbarth-ubhd opened this issue Aug 10, 2022 · 1 comment
Open

build: no ocrd-0.1-jar-with-dependencies.jar #9

jbarth-ubhd opened this issue Aug 10, 2022 · 1 comment

Comments

@jbarth-ubhd
Copy link

jbarth-ubhd commented Aug 10, 2022

Tried with Eclipse 2022-03 & Spring Tools 4.15.2.RELEASE :

...
Run from new projects's context menu Maven->Update project
New Java code from RAML is generated in /target/generated-sources/raml-jaxrs

There is no directory raml-jaxrs after running this steps,
also no target/ocrd-0.1-jar-with-dependencies.jar (no jar at all, but 0 errors).

Eclipse export to Runnable JAR file is not possible due to lacking Launch configuration.

Maven Build→ocrd-postcorrection complains No goals have been specified for this build,
don't know how to configure Spring Boot App in Run Configurations (if necessarry).

@jbarth-ubhd
Copy link
Author

jbarth-ubhd commented Aug 10, 2022

mvn package says

...
Failed tests:   testIds(de.lmu.cis.ocrd.ocropus.test.WorkspaceTest): (..)

Tests run: 277, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:05 min
[INFO] Finished at: 2022-08-10T13:13:15+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project ocrd: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/jb/ocrd-postcorrection/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
-------------------------------------------------------------------------------
Test set: de.lmu.cis.ocrd.ocropus.test.WorkspaceTest
-------------------------------------------------------------------------------
Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.059 sec <<< FAILURE!
testIds(de.lmu.cis.ocrd.ocropus.test.WorkspaceTest)  Time elapsed: 0.022 sec  <<< FAILURE!
java.lang.AssertionError: 
Expected: is "1"
     but: was "0001.llocs.1:1"
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
        at org.junit.Assert.assertThat(Assert.java:964)
        at org.junit.Assert.assertThat(Assert.java:930)
        at de.lmu.cis.ocrd.ocropus.test.WorkspaceTest.testIds(WorkspaceTest.java:93)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant