Commit 5d54e52
committed
build: Update SMC library and corresponding maven plugin
Motivation:
A newer version of the SMC library and its corresponding maven plugin would:
- Enable Graphviz `.dot` file generatation for state machines.
- Enable use of logging in `.sm` files directly.
Modification:
- `Companion.java`: avoid using an enum for comparison which is no
longer generated by newer SMC.
- `pom.xml`:
- `version.smc` updated to 7.6.0.
- Top level dependency artifact is now `smc` of type `pom` rather than
`statemap`.
- `modules/dcache/pom.xml`:
- Runtime dependency is `library` artifact instead of `statemap`.
- `smc-maven-plugin` now obtained from `net.sf.smc` and version-pegged
to `${version.smc}`.
- Build dependency is `main` instead of `smc`.
- `<execution>` blocks have an explicit `<id>`.
- `<phase>generate-sources</phase>` is specified explicitly.
- `<targetLanguage>` is now required.
- Sources must be listed explicitly in a `<sources>` block rather than
wildcarded.
- Add a new `<execution>` block to generate the Graphviz files, relocating `<targetLanguage>java7</targetLanguage>` from plugin-wide to execution-local.
- Add the generated `.dot` files as resources that are shipped in the `.jar` file.
Results:
- Graphviz files corresponding to processed `.sm` state machine files are automatically generated and packaged as part of the build.
Target: master
Patch: https://rb.dcache.org/r/14528/
Requires-notes: NO
Reqiores-book: NO
Acked-by: Tigran Mkrtchyan1 parent 39c7320 commit 5d54e52
3 files changed
Lines changed: 45 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| |||
384 | 385 | | |
385 | 386 | | |
386 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
387 | 396 | | |
388 | 397 | | |
389 | | - | |
| 398 | + | |
390 | 399 | | |
391 | | - | |
| 400 | + | |
392 | 401 | | |
393 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
394 | 419 | | |
395 | 420 | | |
396 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
397 | 432 | | |
398 | 433 | | |
399 | 434 | | |
| |||
402 | 437 | | |
403 | 438 | | |
404 | 439 | | |
405 | | - | |
| 440 | + | |
406 | 441 | | |
407 | 442 | | |
408 | 443 | | |
| |||
482 | 517 | | |
483 | 518 | | |
484 | 519 | | |
485 | | - | |
| 520 | + | |
486 | 521 | | |
487 | | - | |
| 522 | + | |
488 | 523 | | |
489 | 524 | | |
490 | 525 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
| 647 | + | |
648 | 648 | | |
| 649 | + | |
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
| |||
0 commit comments