Skip to content

Allow execution of DemoFilesGenerator with mvn compile exec:exec#433

Open
NathanDissoubray wants to merge 2 commits into
mainfrom
ndi-allow_mvn_exec
Open

Allow execution of DemoFilesGenerator with mvn compile exec:exec#433
NathanDissoubray wants to merge 2 commits into
mainfrom
ndi-allow_mvn_exec

Conversation

@NathanDissoubray

@NathanDissoubray NathanDissoubray commented Jul 21, 2026

Copy link
Copy Markdown

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?

None

What kind of change does this PR introduce?

Feature, docs

What is the current behavior?

Cannot execute DemoFilesGenerator easily.
Working method is:

mvn compile dependency:copy-dependencies -DoutputDirectory=target/dependency
java -cp "target/classes:target/dependency/*" com.powsybl.viewer.demo.DemoFilesGenerator

What is the new behavior (if this is a feature change)?

Can execute generator with mvn compile exec:exec. Added doc in the readme.

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

Original working command from @massimo-ferraro, thanks for helping with finding a way to make it work.

Needs #426 to be merged first

Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
@NathanDissoubray NathanDissoubray self-assigned this Jul 21, 2026
@sonarqubecloud

Copy link
Copy Markdown

@NathanDissoubray NathanDissoubray changed the title Allow execution with mvn compile exec:exec Allow execution of DemoFilesGenerator with mvn compile exec:exec Jul 21, 2026

@massimo-ferraro massimo-ferraro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems fine. But for running correctly this command, in this branch, you need to change the NadDemoFiles class, for removing trailing spaces, and saving the SLD diagrams in the correct folder. You already did these fixes in another PR, the one that updates the dependencies. Maybe it could be worth to say it in the PR description, that you require those fixes, and that PR, to actually be able to run the command and generate the demo files

@NathanDissoubray

Copy link
Copy Markdown
Author

Right, I had assumed the other PR would be merged first but I indeed forgot to write it, thanks for the reminder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants