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

Maven build is broken #1033

Closed
cmnrd opened this issue Mar 11, 2022 · 3 comments
Closed

Maven build is broken #1033

cmnrd opened this issue Mar 11, 2022 · 3 comments
Labels
bug Something isn't working build system
Milestone

Comments

@cmnrd
Copy link
Collaborator

cmnrd commented Mar 11, 2022

I don't know why this does not show up in CI (perhaps due to the caching of dependencies that is done apparently?), but when I run mvn I get this error:

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java (mwe2Launcher) on project org.lflang: Execution mwe2Launcher of goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java failed: Plugin org.codehaus.mojo:exec-maven-plugin:3.0.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.codehaus.mojo:exec-maven-plugin:jar:3.0.0 -> org.eclipse.emf:org.eclipse.emf.mwe2.launch:jar:2.12.2 -> org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:[2.12.2]: No versions available for org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:[2.12.2] within specified range -> [Help 1]

I tried this also on a fresh clone of LF to be sure that it is not related to any build artifacts that I have, but the error persists.

@cmnrd cmnrd added bug Something isn't working build system labels Mar 11, 2022
@cmnrd cmnrd added this to the 0.1.0 milestone Mar 11, 2022
@cmnrd
Copy link
Collaborator Author

cmnrd commented Mar 11, 2022

Looks like deleting ~/.m2 helps, but now I get this:

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 s - in org.lflang.tests.runtime.CppRos2Test
runWithRos2  Time elapsed: 0.007 s

Results:

Errors: 
  CTest>RuntimeTest.runTypeParameterTests:102 » TestAborted Assumption failed: T...
  CppTest>RuntimeTest.runAsFederated:118 » TestAborted Assumption failed: Target...
  CppTest>RuntimeTest.runDockerFederatedTests:184 » TestAborted Assumption faile...
  CppTest>RuntimeTest.runDockerTests:170 » TestAborted Assumption failed: Target...
  CppTest.runFederatedTests:88->RuntimeTest.runFederatedTests:147 » TestAborted ...
  CppTest>RuntimeTest.runTypeParameterTests:102 » TestAborted Assumption failed:...
  CppTest>RuntimeTest.runWithThreadingOff:194 » TestAborted Assumption failed: T...
  PythonTest>RuntimeTest.runTypeParameterTests:102 » TestAborted Assumption fail...
  RustTest>RuntimeTest.runAsFederated:118 » TestAborted Assumption failed: Targe...
  RustTest>RuntimeTest.runDockerFederatedTests:184 » TestAborted Assumption fail...
  RustTest>RuntimeTest.runDockerTests:170 » TestAborted Assumption failed: Targe...
  RustTest>RuntimeTest.runFederatedTests:147 » TestAborted Assumption failed: Ta...
  RustTest>RuntimeTest.runWithThreadingOff:194 » TestAborted Assumption failed: ...
  TypeScriptTest>RuntimeTest.runAsFederated:118 » TestAborted Assumption failed:...
  TypeScriptTest>RuntimeTest.runDockerFederatedTests:185 » TestAborted Assumptio...
  TypeScriptTest.runFederatedTests:63->RuntimeTest.runFederatedTests:147 » TestAborted
  TypeScriptTest>RuntimeTest.runTypeParameterTests:102 » TestAborted Assumption ...
  TypeScriptTest>RuntimeTest.runWithThreadingOff:194 » TestAborted Assumption fa...

Tests run: 158, Failures: 0, Errors: 18, Skipped: 2

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Lingua Franca 0.1.0-SNAPSHOT:
[INFO] 
[INFO] Lingua Franca ...................................... SUCCESS [  0.096 s]
[INFO] Lingua Franca Core ................................. SUCCESS [01:33 min]
[INFO] Lingua Franca Generic IDE .......................... SUCCESS [  2.287 s]
[INFO] Lingua Franca UI ................................... SUCCESS [  1.911 s]
[INFO] Lingua Franca Diagrams ............................. SUCCESS [  2.061 s]
[INFO] Lingua Franca Tests ................................ FAILURE [ 11.748 s]
[INFO] Lingua Franca UI Tests ............................. SKIPPED
[INFO] Lingua Franca Product .............................. SKIPPED
[INFO] Lingua Franca SDK .................................. SKIPPED
[INFO] Lingua Franca Update Site .......................... SKIPPED
[INFO] Lingua Franca Epoch IDE ............................ SKIPPED
[INFO] Lingua Franca Target Platform ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:45 min
[INFO] Finished at: 2022-03-11T16:05:50+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:2.6.0:test (default-test) on project org.lflang.tests: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/cmenard/projects/lf/lingua-franca/org.lflang.tests/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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :org.lflang.tests

@cmnrd
Copy link
Collaborator Author

cmnrd commented Mar 11, 2022

Ok, apparently mvn package works. But mvn install, which I used, does not work.

@lhstrh
Copy link
Member

lhstrh commented Mar 11, 2022

Adding the clean flag resolves this issue. So, use mvn clean install. Thanks @housengw for figuring this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build system
Projects
None yet
Development

No branches or pull requests

2 participants