apache / royale-compiler

Apache Royale Compiler
https://royale.apache.org/
Apache License 2.0
95 stars 49 forks source link

Error building royale-compiler : "Security Manager is deprecated..." #223

Closed phreed closed 8 months ago

phreed commented 1 year ago

For both develop and release/0.9.10 branches. When building on Windows 11 with Oracle Java 19.0.2 and Maven 3.9.1

./mvnw clean install

This produces the following:

[INFO] Reactor Summary for Apache Royale: Compiler: Parent 0.9.11-SNAPSHOT:
[INFO]
[INFO] Apache Royale: Compiler: Parent .................... SUCCESS [  6.847 s]
[INFO] Apache Royale: Compiler: Compiler-Common ........... SUCCESS [ 17.743 s]
[INFO] Apache Royale: Compiler: Test Utils ................ SUCCESS [  1.454 s]
[INFO] Apache Royale: Compiler: Externc ................... SUCCESS [ 19.307 s]
[INFO] Apache Royale: Compiler: playerglobal.swc support .. SUCCESS [  2.219 s]
[INFO] Apache Royale: Compiler: Compiler .................. FAILURE [  4.279 s]
[INFO] Apache Royale: Compiler: Compiler-JX ............... SKIPPED
[INFO] Apache Royale: Compiler: SWFUtils .................. SKIPPED
[INFO] Apache Royale: Compiler: Debugger .................. SKIPPED
[INFO] Apache Royale: Compiler: AS3/MXML Code Formatter ... SKIPPED
[INFO] Apache Royale: Compiler: AS3/MXML Code Linter ...... SKIPPED
[INFO] Apache Royale: Compiler: OEM Layer ................. SKIPPED
[INFO] Apache Royale: Royale Ant Tasks .................... SKIPPED
[INFO] Apache Royale: RoyaleUnit Ant Tasks ................ SKIPPED
[INFO] Apache Royale: Royale Maven Plugin ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

Followed by the error message:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antlr-plugin:2.0-beta-1:
     generate (generate-as-parser) on project compiler: 
Execution generate-as-parser of goal org.apache.maven.plugins:maven-antlr-plugin:2.0-beta-1:generate failed: 

The Security Manager is deprecated and will be removed in a future release -> [Help 1]
phreed commented 1 year ago

The Security Manager is deprecated.
https://openjdk.org/jeps/411

phreed commented 1 year ago

I modified the pom.xml (and compiler/pom.xml) to

<plugin>
  <groupId>org.omnifaces</groupId>
  <artifactId>antlr-maven-plugin</artifactId>
  <version>2.4</version>
</plugin>

from

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-antlr-plugin</artifactId>
    <version>2.0-beta-1</version>
</plugin>

This corrected the compilation error.

Should I post a pull request?