Skip to content

fix: Fatal error compiling: invalid flag: --release#560

Merged
artursouza merged 2 commits into
dapr:masterfrom
pinxiong:issue#559
Jun 3, 2021
Merged

fix: Fatal error compiling: invalid flag: --release#560
artursouza merged 2 commits into
dapr:masterfrom
pinxiong:issue#559

Conversation

@pinxiong

@pinxiong pinxiong commented Jun 3, 2021

Copy link
Copy Markdown
Contributor

Description

see issue #559

I referred to Maven: "Fatal error compiling: invalid flag: --release -> [Help 1]"

So, I think the simplest and best way to solve this issue is to update the Pre-Requisites in README.md

After I upgraded the JDK version, the project build successfully

[INFO] Attaching repackaged archive /***/java-sdk/examples/target/dapr-java-sdk-examples-exec.jar with classifier exec
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for dapr-sdk-parent 1.2.0-SNAPSHOT:
[INFO] 
[INFO] dapr-sdk-parent .................................... SUCCESS [  6.395 s]
[INFO] dapr-sdk-autogen ................................... SUCCESS [ 23.212 s]
[INFO] dapr-sdk ........................................... SUCCESS [ 28.708 s]
[INFO] dapr-sdk-actors .................................... SUCCESS [ 17.252 s]
[INFO] dapr-sdk-springboot ................................ SUCCESS [  4.066 s]
[INFO] dapr-sdk-examples .................................. SUCCESS [  6.887 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:28 min
[INFO] Finished at: 2021-06-03T11:19:20+08:00
[INFO] ------------------------------------------------------------------------
xxxx:java-sdk xxxx$ java -version
java version "11.0.9" 2020-10-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.9+7-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.9+7-LTS, mixed mode)
xxxx:java-sdk xxxx$ mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /****/maven
Java version: 11.0.9, vendor: Oracle Corporation, runtime: /****/jdk-11.0.9.jdk/Contents/Home
Default locale: en_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #559

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

artursouza
artursouza previously approved these changes Jun 3, 2021
@artursouza artursouza self-requested a review June 3, 2021 05:45
@codecov

codecov Bot commented Jun 3, 2021

Copy link
Copy Markdown

Codecov Report

Merging #560 (4fba585) into master (b1e5438) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #560   +/-   ##
=========================================
  Coverage     80.52%   80.52%           
  Complexity      981      981           
=========================================
  Files            88       88           
  Lines          3024     3024           
  Branches        331      331           
=========================================
  Hits           2435     2435           
  Misses          423      423           
  Partials        166      166           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1e5438...4fba585. Read the comment docs.

@artursouza artursouza merged commit 9ce75d9 into dapr:master Jun 3, 2021
@artursouza artursouza added this to the v1.2 milestone Jun 3, 2021
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* fix: Fatal error compiling: invalid flag: --release

* Update README.md

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fatal error compiling occurred when building this project

2 participants