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

Set verbose level for SRE gives error - Document proper dependencies in Maven projects #1080

Closed
ssardina opened this issue Jun 24, 2021 · 12 comments

Comments

@ssardina
Copy link
Contributor

ssardina commented Jun 24, 2021

Description of your issue:

image

I am using SARL 0.11.0 and the class BootMAS has this:

image

@ssardina
Copy link
Contributor Author

In fact, I used to have this line which worked well:

		sre.verboseLevel = 7

@gallandarakhneorg
Copy link
Member

gallandarakhneorg commented Jun 24, 2021

Dear @ssardina . Could you provide the dependencies' list from your pom.xml file?
It looks like the Janus SRE is not in the classpath, and the default bootstrap (that does nothing) is used.

@ssardina
Copy link
Contributor Author

Of course, sorry, here is the full pom file.

pom.xml.txt

@ssardina
Copy link
Contributor Author

And if I comment that line about verbose setting:

image

@gallandarakhneorg
Copy link
Member

Please add the following dependency into your pom file, to be sure that you are using the SRE at run-time:

<dependency>
          <groupId>io.janusproject</groupId>
          <artifactId>io.janusproject.kernel</artifactId>
          <version>3.${sarl.version}</version>
</dependency>

Anyway, I just realize that this need of dependency is not explained in the SARL documentation.

@ssardina
Copy link
Contributor Author

Ohhh you know I always had that dependency, and I thought I did not need it anymore with the new SRE!! I am so....

@ssardina
Copy link
Contributor Author

I even deleted that part today when I saw this:

http://www.sarl.io/docs/official/tools/MavenSarlPlugin.html

@ssardina
Copy link
Contributor Author

But you are totally right, one thing is the SARL compiler, another is the runtime

@ssardina ssardina reopened this Jun 24, 2021
@ssardina
Copy link
Contributor Author

Sorry didn't realized you left it for the doc. Good idea.

@ssardina ssardina changed the title Set verbose level for SRE gives error? Set verbose level for SRE gives error - Document proper dependencies in Maven projects Jun 24, 2021
@gallandarakhneorg
Copy link
Member

No problem :-)
I have to update all the pages in the documentation in order to make very clear the dependency for compilation and those for running.
You issue will remind us to do so :-)

@gallandarakhneorg
Copy link
Member

Two actions are ongoing for solving this issue:

  • The documentation is updated to be sure that the dependency tree is clear.
  • The maven-sarl-plugin determines if a SRE is in the class path of the project. If there is no SRE in the classpath, a warning is printed out to notify that the SARL program cannot be run outside a SRE, e.g. , by usig the janus command line tool.

@gallandarakhneorg
Copy link
Member

This issue is also related to Issue #1077.

gallandarakhneorg added a commit that referenced this issue Jul 17, 2023
…Maven SARL project.

see #1080

Signed-off-by: Stéphane Galland <galland@arakhne.org>
gallandarakhneorg added a commit that referenced this issue Jul 17, 2023
…d or not depending on the launching approach.

close #1080

Signed-off-by: Stéphane Galland <galland@arakhne.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants